aboutsummaryrefslogtreecommitdiff
path: root/ports/ompl/0001_Export_targets.patch
blob: 6d599aec32ea0f973c376f65e37b3429d852b683 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a9bb05f..31fab8c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -215,6 +215,10 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/omplConfig.cmake
     ${CMAKE_CURRENT_BINARY_DIR}/omplConfigVersion.cmake
     DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/ompl/cmake
     COMPONENT ompl)
+install(EXPORT ompl
+    DESTINATION "share/ompl"
+    FILE ompl-targets.cmake
+)
 
 # script to install ompl on Ubuntu
 configure_file("${CMAKE_CURRENT_SOURCE_DIR}/install-ompl-ubuntu.sh.in"
diff --git a/src/ompl/CMakeLists.txt b/src/ompl/CMakeLists.txt
index 9ea130e..6dda4df 100644
--- a/src/ompl/CMakeLists.txt
+++ b/src/ompl/CMakeLists.txt
@@ -83,6 +83,7 @@ endif (MSVC)
 
 # install the library
 install(TARGETS ompl
+    EXPORT ompl
     DESTINATION ${CMAKE_INSTALL_LIBDIR}
     COMPONENT ompl)
 if (NOT MSVC)