This repository was archived by the owner on Feb 14, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -353,6 +353,13 @@ export(PACKAGE ${PROJECT_NAME})
353
353
# PROJECT CONFIG
354
354
# Add the targets, libraries and tests.
355
355
# +============================================================================
356
+ include (CMakePackageConfigHelpers)
357
+
358
+ configure_package_config_file(
359
+ "${CMAKE_CURRENT_SOURCE_DIR} /${PROJECT_NAME_LOWER} -config.cmake.in"
360
+ "${CMAKE_CURRENT_BINARY_DIR} /${PROJECT_NAME_LOWER} -config.cmake"
361
+ INSTALL_DESTINATION "${INSTALL_CMAKE_DIR} " )
362
+
356
363
configure_file (
357
364
"${CMAKE_CURRENT_SOURCE_DIR} /${PROJECT_NAME_LOWER} -config.cmake.in"
358
365
"${CMAKE_CURRENT_BINARY_DIR} /${PROJECT_NAME_LOWER} -config.cmake" @ONLY
@@ -368,13 +375,14 @@ file(
368
375
)
369
376
370
377
install (
371
- FILES "${CMAKE_CURRENT_BINARY_DIR} /${PROJECT_NAME_LOWER} -config.cmake"
378
+ FILES
379
+ # "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME_LOWER}-config.cmake"
372
380
"${CMAKE_CURRENT_SOURCE_DIR} /cmake_modules/TudatFindBoost.cmake"
373
381
DESTINATION "${INSTALL_CMAKE_DIR} "
374
382
)
375
383
376
384
# Take care of versioning.
377
- include (CMakePackageConfigHelpers)
385
+
378
386
# NOTE: SameMinorVersion available only
379
387
# since CMake 3.11.
380
388
if (${CMAKE_VERSION} VERSION_LESS "3.11.0" )
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ include(CMakeFindDependencyMacro)
16
16
#set(_TUDAT_FIND_BOOST_UNIT_TEST_FRAMEWORK ON)
17
17
#include(TudatFindBoost)
18
18
19
+ @PACKAGE_INIT@
20
+
19
21
# Tell the user project where to find our headers and libraries
20
22
set (Tudat_VERSION "@Tudat_VERSION@" )
21
23
set (Tudat_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR} /@RELATIVE_INSTALL_INCLUDE_DIR@" )
You can’t perform that action at this time.
0 commit comments