Skip to content
Snippets Groups Projects
Commit 7253576a authored by Markus Blatt's avatar Markus Blatt
Browse files

Install package configuration files to a place under

CMAKE_INSTALL_PREFIX that will be searched automatically.

[[Imported from SVN: r6690]]
parent b8085a43
No related branches found
No related tags found
No related merge requests found
#compute installation prefix relative to this file
get_filename_component(_dir "${CMAKE_CURRENT_LIST_FILE}" PATH)
get_filename_component(_prefix "${_dir}/../.." ABSOLUTE)
get_filename_component(_prefix "${_dir}/../../.." ABSOLUTE)
#import the target
include("${_prefix}/lib/cmake/@DUNE_MOD_NAME_CMAKE@Targets.cmake")
......
......@@ -841,7 +841,7 @@ echo "- $PROJECT/$CMAKE_NAME""Config.cmake.in"
cat> "$PROJECT/$CMAKE_NAME""Config.cmake.in" <<EOF
#compute installation prefix relative to this file
get_filename_component(_dir "\${CMAKE_CURRENT_LIST_FILE}" PATH)
get_filename_component(_prefix "\${_dir}/../.." ABSOLUTE)
get_filename_component(_prefix "\${_dir}/../../.." ABSOLUTE)
#import the target
#include("\${_prefix}/lib/cmake/@DUNE_MOD_NAME@-targets.cmake")
......
......@@ -274,7 +274,7 @@ MACRO(finalize_dune_project)
#install cmake-config files
install(FILES ${PROJECT_BINARY_DIR}/${DUNE_MOD_NAME_CMAKE}Config.cmake
${PROJECT_BINARY_DIR}/${DUNE_MOD_NAME_CMAKE}Version.cmake
DESTINATION lib/cmake)
DESTINATION lib/cmake/${DUNE_MOD_NAME_CMAKE})
#install config.h
install(FILES config.h.cmake DESTINATION share/${DUNE_MOD_NAME})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment