Mac and Linux SDL2 binary snapshots
Edward Rudd
2016-06-17 c170f0aa41471a6ba5709a72fe199b2b85da696d

create an SDL2 interface target for easier CMake 3.2+ handling

1 files modified
6 ■■■■■ changed files
SDL2Config.cmake 6 ●●●●● patch | view | raw | blame | history
SDL2Config.cmake
@@ -36,3 +36,9 @@
endif()
mark_as_advanced(SDL2_INCLUDE_DIR SDL2_LIBRARY SDL2_main_LIBRARY)
if(NOT TARGET SDL2 AND CMAKE_VERSION VERSION_GREATER 3.0.0)
    add_library(SDL2 INTERFACE)
    target_link_libraries(SDL2 INTERFACE ${SDL2_LIBRARIES})
    target_include_directories(SDL2 INTERFACE ${SDL2_INCLUDE_DIRS})
endif()