aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt17
1 files changed, 5 insertions, 12 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8af6e9c..aa535c8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,24 +1,17 @@
cmake_minimum_required(VERSION 3.15)
-project(wip-shooter)
-
-find_package(SDL2 REQUIRED) # Requires at least version 3.0
-include_directories(${SDL2_INCLUDE_DIRS})
+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/level.c)
-
-
-target_link_libraries(${PROJECT_NAME} ${SDL2_LIBRARIES})
+ src/rfps_utils.cpp
+ src/main.cpp)
-target_compile_options(${PROJECT_NAME}
- PRIVATE -O3
- PRIVATE -march=native
-)
+target_link_libraries(${PROJECT_NAME} raylib m)
# Checks if OSX and links appropriate frameworks (only required on MacOS)
if (APPLE)