From 947af225e80e48c46ef83f0b7cdb1e1274ba96dd Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Thu, 9 Jun 2022 22:58:20 +0200 Subject: make everything better --- CMakeLists.txt | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'CMakeLists.txt') 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) -- cgit v1.2.3