diff options
author | salaaad2 <arthurdurant263@gmail.com> | 2022-05-21 19:13:27 +0200 |
---|---|---|
committer | salaaad2 <arthurdurant263@gmail.com> | 2022-05-21 19:13:27 +0200 |
commit | 10d3f3e0d57b5061a068a144dbbfb2ccefe669bf (patch) | |
tree | 74b3f2c7eb0ae707d3552c754c9990a071caa8e8 /CMakeLists.txt | |
download | yabs-10d3f3e0d57b5061a068a144dbbfb2ccefe669bf.tar.gz yabs-10d3f3e0d57b5061a068a144dbbfb2ccefe669bf.tar.bz2 yabs-10d3f3e0d57b5061a068a144dbbfb2ccefe669bf.tar.xz yabs-10d3f3e0d57b5061a068a144dbbfb2ccefe669bf.tar.zst yabs-10d3f3e0d57b5061a068a144dbbfb2ccefe669bf.zip |
first test: city
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..2228b39 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,21 @@ +cmake_minimum_required(VERSION 3.15) +project(wip-shooter) + +find_package(SDL2 REQUIRED) # Requires at least version 3.0 +include_directories(${SDL2_INCLUDE_DIRS}) + +set(CMAKE_C_STANDARD 11) # Requires C11 standard + +set (CMAKE_CXX_STANDARD 17) + +add_executable(${PROJECT_NAME} + src/city.c) + +target_link_libraries(${PROJECT_NAME} ${SDL2_LIBRARIES}) + +# Checks if OSX and links appropriate frameworks (only required on MacOS) +if (APPLE) + target_link_libraries(${PROJECT_NAME} "-framework IOKit") + target_link_libraries(${PROJECT_NAME} "-framework Cocoa") + target_link_libraries(${PROJECT_NAME} "-framework OpenGL") +endif() |