Browse Source

doc/snippets: CMake 2.8.12 is amazing, isn't it.

pull/231/head
Vladimír Vondruš 8 years ago
parent
commit
56db82dc11
  1. 6
      doc/snippets/CMakeLists.txt

6
doc/snippets/CMakeLists.txt

@ -50,6 +50,12 @@ if(WITH_SDL2APPLICATION)
add_executable(getting-started-blue getting-started-blue.cpp)
target_link_libraries(getting-started PRIVATE MagnumSdl2Application)
target_link_libraries(getting-started-blue PRIVATE MagnumSdl2Application)
# Otherwise it's not linked correctly. I have no idea why, but whatever.
if(CMAKE_VERSION VERSION_LESS 3.0)
find_package(SDL2 REQUIRED)
target_link_libraries(getting-started PRIVATE SDL2::SDL2)
target_link_libraries(getting-started-blue PRIVATE SDL2::SDL2)
endif()
set_target_properties(
getting-started
getting-started-blue

Loading…
Cancel
Save