aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorsalaaad2 <arthurdurant263@gmail.com>2022-06-09 22:58:20 +0200
committersalaaad2 <arthurdurant263@gmail.com>2022-06-09 22:59:32 +0200
commit947af225e80e48c46ef83f0b7cdb1e1274ba96dd (patch)
treeebc235563cfb223d0fa7100eb5c8b4d760fdf281 /CMakeLists.txt
parentstructure, namespaces, cool stuff overall (diff)
downloadyabs-947af225e80e48c46ef83f0b7cdb1e1274ba96dd.tar.gz
yabs-947af225e80e48c46ef83f0b7cdb1e1274ba96dd.tar.bz2
yabs-947af225e80e48c46ef83f0b7cdb1e1274ba96dd.tar.xz
yabs-947af225e80e48c46ef83f0b7cdb1e1274ba96dd.tar.zst
yabs-947af225e80e48c46ef83f0b7cdb1e1274ba96dd.zip
make everything better
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt17
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)