Mercurial > codedump
comparison win95kggui/dep/ft2play/CMakeLists.txt @ 126:8e4ee43d3b81
remove submodules
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Sun, 01 Oct 2023 03:48:43 -0400 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 125:5cc85ef3a675 | 126:8e4ee43d3b81 |
|---|---|
| 1 cmake_minimum_required(VERSION 3.7) | |
| 2 | |
| 3 project(ft2play C) | |
| 4 | |
| 5 find_package(SDL2 REQUIRED) | |
| 6 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${ft2play_SOURCE_DIR}/ft2play/release/other/") | |
| 7 | |
| 8 file(GLOB ft2play_SRC | |
| 9 "${ft2play_SOURCE_DIR}/audiodrivers/sdl/*.c" | |
| 10 "${ft2play_SOURCE_DIR}/*.c" | |
| 11 "${ft2play_SOURCE_DIR}/ft2play/src/*.c" | |
| 12 ) | |
| 13 | |
| 14 add_executable(ft2play ${ft2play_SRC}) | |
| 15 | |
| 16 target_include_directories(ft2play SYSTEM | |
| 17 PRIVATE ${SDL2_INCLUDE_DIRS}) | |
| 18 | |
| 19 if("${SDL2_LIBRARIES}" STREQUAL "") | |
| 20 message(WARNING "SDL2_LIBRARIES wasn't set, manually setting to SDL2::SDL2") | |
| 21 set(SDL2_LIBRARIES "SDL2::SDL2") | |
| 22 endif() | |
| 23 | |
| 24 target_link_libraries(ft2play | |
| 25 PRIVATE m pthread ${SDL2_LIBRARIES}) | |
| 26 | |
| 27 target_compile_definitions(ft2play | |
| 28 PRIVATE AUDIODRIVER_SDL) | |
| 29 | |
| 30 install(TARGETS ft2play | |
| 31 RUNTIME DESTINATION bin) |
