Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
libcifpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
libcifpp
Commits
bb2f8131
Commit
bb2f8131
authored
Aug 10, 2021
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Newer CMakeLists.txt file, now creating more correct config files.
parent
ec91d0fb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
10 deletions
+24
-10
CMakeLists.txt
+13
-9
cmake/cifppConfig.cmake
+0
-1
cmake/cifppConfig.cmake.in
+11
-0
No files found.
CMakeLists.txt
View file @
bb2f8131
...
...
@@ -151,6 +151,15 @@ install(FILES
)
include
(
CMakePackageConfigHelpers
)
set
(
INCLUDE_INSTALL_DIR include
)
set
(
LIBRARY_INSTALL_DIR lib
)
configure_package_config_file
(
cmake/cifppConfig.cmake.in
${
CMAKE_CURRENT_BINARY_DIR
}
/cifpp/cifppConfig.cmake
INSTALL_DESTINATION lib/cmake/cifpp
PATH_VARS INCLUDE_INSTALL_DIR LIBRARY_INSTALL_DIR SHARE_INSTALL_DIR
)
write_basic_package_version_file
(
"
${
CMAKE_CURRENT_BINARY_DIR
}
/cifpp/cifppConfigVersion.cmake"
VERSION
${
PROJECT_VERSION
}
...
...
@@ -159,12 +168,7 @@ write_basic_package_version_file(
export
(
EXPORT cifppTargets
FILE
"
${
CMAKE_CURRENT_BINARY_DIR
}
/cifpp/cifppTargets.cmake"
NAMESPACE CifPP::
)
configure_file
(
cmake/cifppConfig.cmake
"
${
CMAKE_CURRENT_BINARY_DIR
}
/cifpp/cifppConfig.cmake"
COPYONLY
NAMESPACE cifpp::
)
set
(
ConfigPackageLocation lib/cmake/cifpp
)
...
...
@@ -172,15 +176,15 @@ install(EXPORT cifppTargets
FILE
cifppTargets.cmake
NAMESPACE
CifPP
::
cifpp
::
DESTINATION
${
ConfigPackageLocation
}
)
install
(
FILES
cmake/cifppConfig.cmake
"
${
CMAKE_CURRENT_BINARY_DIR
}
/cifpp/cifppConfigVersion.cmake"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/cifpp/cifppConfig.cmake"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/cifpp/cifppConfigVersion.cmake"
DESTINATION
${
ConfigPackageLocation
}
COMPONENT
...
...
cmake/cifppConfig.cmake
deleted
100644 → 0
View file @
ec91d0fb
include
(
"
${
CMAKE_CURRENT_LIST_DIR
}
/cifppTargets.cmake"
)
cmake/cifppConfig.cmake.in
0 → 100644
View file @
bb2f8131
# set(cifpp_VERSION @VERSION@)
@PACKAGE_INIT@
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/cifppTargets.cmake")
set_and_check(CIFPP_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@")
set_and_check(CIFPP_LIBRARY_DIR "@PACKAGE_LIBRARY_INSTALL_DIR@")
set_and_check(CIFPP_SHARE_DIR "@PACKAGE_SHARE_INSTALL_DIR@")
check_required_components(cifpp)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment