early-access version 2853
This commit is contained in:
15
externals/vcpkg/ports/octomap/vcpkg-cmake-wrapper.cmake
vendored
Executable file
15
externals/vcpkg/ports/octomap/vcpkg-cmake-wrapper.cmake
vendored
Executable file
@@ -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()
|
||||
Reference in New Issue
Block a user