From df4d3026f27c9c55e75aff1232af22962936e5ea Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Thu, 9 Jun 2022 19:25:27 +0200 Subject: my bad lol --- CMakeLists.txt | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'CMakeLists.txt') 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) -- cgit v1.2.3