aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/octomap/vcpkg-cmake-wrapper.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/octomap/vcpkg-cmake-wrapper.cmake')
-rw-r--r--vcpkg/ports/octomap/vcpkg-cmake-wrapper.cmake15
1 files changed, 15 insertions, 0 deletions
diff --git a/vcpkg/ports/octomap/vcpkg-cmake-wrapper.cmake b/vcpkg/ports/octomap/vcpkg-cmake-wrapper.cmake
new file mode 100644
index 0000000..2dd237e
--- /dev/null
+++ b/vcpkg/ports/octomap/vcpkg-cmake-wrapper.cmake
@@ -0,0 +1,15 @@
+_find_package(${ARGS})
+
+if(TARGET octomap AND NOT TARGET octomap-static)
+ add_library(octomap-static INTERFACE IMPORTED)
+ set_target_properties(octomap-static PROPERTIES INTERFACE_LINK_LIBRARIES "octomap")
+
+ add_library(octomath-static INTERFACE IMPORTED)
+ set_target_properties(octomath-static PROPERTIES INTERFACE_LINK_LIBRARIES "octomath")
+elseif(TARGET octomap-static AND NOT TARGET octomap)
+ add_library(octomap INTERFACE IMPORTED)
+ set_target_properties(octomap PROPERTIES INTERFACE_LINK_LIBRARIES "octomap-static")
+
+ add_library(octomath INTERFACE IMPORTED)
+ set_target_properties(octomath PROPERTIES INTERFACE_LINK_LIBRARIES "octomath-static")
+endif()