Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Olm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nheko Reborn
Olm
Commits
21ba95ad
Commit
21ba95ad
authored
Feb 22, 2021
by
Hubert Chathi
Browse files
Options
Downloads
Patches
Plain Diff
create and install a pkg-config file on Unix-like systems
parent
cabefb17
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+11
-1
11 additions, 1 deletion
CMakeLists.txt
olm.pc.in
+10
-0
10 additions, 0 deletions
olm.pc.in
with
21 additions
and
1 deletion
CMakeLists.txt
+
11
−
1
View file @
21ba95ad
...
...
@@ -64,10 +64,14 @@ set_target_properties(olm PROPERTIES
LIBRARY_OUTPUT_DIRECTORY
${
CMAKE_BINARY_DIR
}
/
${
CMAKE_INSTALL_LIBDIR
}
RUNTIME_OUTPUT_DIRECTORY
${
CMAKE_BINARY_DIR
}
/
${
CMAKE_INSTALL_LIBDIR
}
)
include
(
GNUInstallDirs
)
# Make a pkg-config file
configure_file
(
${
PROJECT_NAME
}
.pc.in
${
PROJECT_NAME
}
.pc @ONLY NEWLINE_STYLE UNIX
)
#
# Installation
#
include
(
GNUInstallDirs
)
set
(
INSTALL_CONFIGDIR
${
CMAKE_INSTALL_LIBDIR
}
/cmake/Olm
)
install
(
TARGETS olm
EXPORT olm-targets
...
...
@@ -86,6 +90,12 @@ install(FILES
${
CMAKE_CURRENT_SOURCE_DIR
}
/include/olm/sas.h
DESTINATION
${
CMAKE_INSTALL_INCLUDEDIR
}
/olm
)
if
(
UNIX AND NOT APPLE
)
install
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
PROJECT_NAME
}
.pc
DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
/pkgconfig
)
endif
()
# Export the targets to a script.
install
(
EXPORT olm-targets
FILE OlmTargets.cmake
...
...
This diff is collapsed.
Click to expand it.
olm.pc.in
0 → 100644
+
10
−
0
View file @
21ba95ad
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
Name: olm
Description: implementation of the Double Ratchet cryptographic ratchet in C++
Version: @PROJECT_VERSION@
Cflags: -I${includedir}
Libs: -L${libdir} -lolm
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment