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