mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-26 01:29:00 +08:00
28 lines
877 B
Diff
28 lines
877 B
Diff
|
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)
|