vcpkg/ports/flecs/vcpkg-cmake-wrapper.cmake
myd7349 2d2f0230e7
[flecs] Add new port (#24980)
* [flecs] Add new port

Fix #10774.

* [flecs] Add version stuffs

* [flecs] Disable UWP support

GetModuleHandle doesn't support UWP.

* [flecs] Overwrite version

* [flecs] Add vcpkg-cmake-wrapper.cmake

* [flecs] Overwrite version
2022-05-31 15:35:57 -07:00

10 lines
460 B
CMake

_find_package(${ARGS})
if(TARGET flecs::flecs AND NOT TARGET flecs::flecs_static)
add_library(flecs::flecs_static INTERFACE IMPORTED)
set_target_properties(flecs::flecs_static PROPERTIES INTERFACE_LINK_LIBRARIES flecs::flecs)
elseif(TARGET flecs::flecs_static AND NOT TARGET flecs::flecs)
add_library(flecs::flecs INTERFACE IMPORTED)
set_target_properties(flecs::flecs PROPERTIES INTERFACE_LINK_LIBRARIES flecs::flecs_static)
endif()