diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-10-01 11:05:42 +0200 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-10-01 11:05:42 +0200 |
commit | 8e66301577551bc5b8a2e169be173e71de2f5e4e (patch) | |
tree | 52797ebfe53007eaf502c9cf9aafbd34817f5d0b /mwe/gameloop/CMakeLists.txt | |
parent | 2d13805218eb34b6e06205c1b65c341ebcdad504 (diff) | |
parent | f4560e02f703f1c6f857c8e5af63fa9fc4ca6438 (diff) |
Merge branch 'master' into niels/resource-manager
Diffstat (limited to 'mwe/gameloop/CMakeLists.txt')
-rw-r--r-- | mwe/gameloop/CMakeLists.txt | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/mwe/gameloop/CMakeLists.txt b/mwe/gameloop/CMakeLists.txt new file mode 100644 index 0000000..233ba98 --- /dev/null +++ b/mwe/gameloop/CMakeLists.txt @@ -0,0 +1,26 @@ +cmake_minimum_required(VERSION 3.5) +project(gameloop) + +# Set the C++ standard (optional, but good practice) +set(CMAKE_CXX_STANDARD 11) +set(CMAKE_CXX_STANDARD_REQUIRED True) + +# Find the SDL2 package +find_package(SDL2 REQUIRED) + +add_executable(gameloop + src/loopManager.cpp + src/window.cpp + src/main.cpp + src/eventManager.cpp + src/gameObject.cpp + src/timer.cpp +) + +# Link the SDL2 library to your project +target_link_libraries(gameloop ${SDL2_LIBRARIES}) + +# Include SDL2 header files and project headers +target_include_directories(gameloop PRIVATE ${SDL2_INCLUDE_DIRS}) +target_include_directories(gameloop PRIVATE ${CMAKE_SOURCE_DIR}/include) + |