diff options
Diffstat (limited to '')
-rw-r--r-- | CMakeLists.txt | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 68c5abc..9429c52 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,15 +3,24 @@ project(shooter) find_package(raylib 3.0 REQUIRED) # Requires at least version 3.0 -set(CMAKE_C_STANDARD 11) # Requires C11 standard - set (CMAKE_CXX_STANDARD 17) add_executable(${PROJECT_NAME} + src/yabs_core.cpp src/yabs_utils.cpp - src/main.cpp) + src/main.cpp +) + +target_link_libraries(${PROJECT_NAME} + raylib + m +) -target_link_libraries(${PROJECT_NAME} raylib m) +target_compile_options(${PROJECT_NAME} + PRIVATE "-O3" + PRIVATE "-march=native" + PRIVATE "-Wall" +) # Checks if OSX and links appropriate frameworks (only required on MacOS) if (APPLE) |