mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 17:51:47 +08:00
5459adf5de
* + added support for dascandy/pixel * [pixel] Cleanup comments * [SDL2] Add SDL2::SDL2{,-static} wrapper * [pixel] update to v0.2 - fixes linking problem against SDL2 * [pixel] Bump control version
9 lines
444 B
CMake
9 lines
444 B
CMake
_find_package(${ARGS})
|
|
if(TARGET SDL2::SDL2 AND NOT TARGET SDL2::SDL2-static)
|
|
add_library( SDL2::SDL2-static INTERFACE IMPORTED)
|
|
set_target_properties(SDL2::SDL2-static PROPERTIES INTERFACE_LINK_LIBRARIES "SDL2::SDL2")
|
|
elseif(TARGET SDL2::SDL2-static AND NOT TARGET SDL2::SDL2)
|
|
add_library( SDL2::SDL2 INTERFACE IMPORTED)
|
|
set_target_properties(SDL2::SDL2 PROPERTIES INTERFACE_LINK_LIBRARIES "SDL2::SDL2-static")
|
|
endif()
|