Skip to content
Snippets Groups Projects
Commit ed9d19fd authored by Mederic Fourmy's avatar Mederic Fourmy
Browse files

Trying to create a .cmake.in file

parent 8386d669
No related branches found
No related tags found
2 merge requests!451After cmake and const refactor,!445Resolve "Refactoring WOLF installation system"
Pipeline #10032 canceled
...@@ -496,6 +496,27 @@ INSTALL(FILES ${PLUGIN_NAME}.found ...@@ -496,6 +496,27 @@ INSTALL(FILES ${PLUGIN_NAME}.found
INSTALL(FILES "${WOLF_CONFIG_DIR}/config.h" INSTALL(FILES "${WOLF_CONFIG_DIR}/config.h"
DESTINATION include/iri-algorithms/wolf/plugin_core/core/internal) DESTINATION include/iri-algorithms/wolf/plugin_core/core/internal)
# Configure the package installation
set(INCLUDE_INSTALL_DIR include/ CACHE )
set(LIB_INSTALL_DIR lib/ CACHE )
configure_package_config_file(
${CMAKE_SOURCE_DIR}/cmake_modules/${PLUGIN_NAME}Config.cmake.in
${CMAKE_SOURCE_DIR}/cmake_modules/${PLUGIN_NAME}Config.cmake
INSTALL_DESTINATION ${LIB_INSTALL_DIR}/${PLUGIN_NAME}/cmake
PATH_VARS INCLUDE_INSTALL_DIR LIB_INSTALL_DIR)
install(
FILES
${CMAKE_CURRENT_BINARY_DIR}/${PLUGIN_NAME}Config.cmake
DESTINATION
${LIB_INSTALL_DIR}/${PLUGIN_NAME}/cmake)
# configure_file("${CMAKE_SOURCE_DIR}/cmake_modules/${PLUGIN_NAME}Config.cmake"
# "${CMAKE_BINARY_DIR}/${PLUGIN_NAME}Config.cmake" @ONLY)
#install Find*.cmake #install Find*.cmake
# configure_file("${CMAKE_SOURCE_DIR}/cmake_modules/${PLUGIN_NAME}Config.cmake" # configure_file("${CMAKE_SOURCE_DIR}/cmake_modules/${PLUGIN_NAME}Config.cmake"
# "${CMAKE_BINARY_DIR}/${PLUGIN_NAME}Config.cmake" @ONLY) # "${CMAKE_BINARY_DIR}/${PLUGIN_NAME}Config.cmake" @ONLY)
......
set(FOO_VERSION 0.0.1)
@PACKAGE_INIT@
set_and_check(${PLUGIN_NAME}_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@")
set_and_check(${PLUGIN_NAME}_LIB_INSTALL_DIR "@PACKAGE_LIB_INSTALL_DIR@")
check_required_components(${PLUGIN_NAME})
\ No newline at end of file
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