From 76afcafdba3a4eff27fb1737949bd0e9d5d80222 Mon Sep 17 00:00:00 2001 From: Jeremie Deray <jeremie.deray@pal-robotics.com> Date: Wed, 10 Aug 2016 18:17:35 +0200 Subject: [PATCH] install wolfConfig.cmake & export project --- src/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 8787fb82f..bc823e7ae 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -397,6 +397,14 @@ INSTALL(FILES ${HDRS_SOLVER} INSTALL(FILES ../cmake_modules/Findwolf.cmake DESTINATION "lib/cmake/${PROJECT_NAME}") +#install Find*.cmake +configure_file("${CMAKE_SOURCE_DIR}/cmake_modules/wolfConfig.cmake" + "${CMAKE_BINARY_DIR}/wolfConfig.cmake" @ONLY) + +INSTALL(FILES "${CMAKE_BINARY_DIR}/wolfConfig.cmake" DESTINATION "lib/cmake/${PROJECT_NAME}") + +export(PACKAGE ${PROJECT_NAME}) + #Build examples & tests MESSAGE("Building examples and tests.") ADD_SUBDIRECTORY(examples) -- GitLab