-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
29 lines (22 loc) · 991 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
cmake_minimum_required(VERSION 3.20)
project(gametest)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/output)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" ${CMAKE_MODULE_PATH})
find_package(SFML 2.5.1 REQUIRED COMPONENTS system window graphics network audio)
include_directories(.)
add_executable(game
gametest/main.cpp
gametest/Application.cpp
gametest/Entity.cpp
gametest/Aircraft.cpp
gametest/SceneNode.cpp
gametest/SpriteNode.cpp
gametest/World.cpp
gametest/Command.cpp
gametest/CommandQueue.cpp
gametest/Player.cpp
gametest/StateStack.cpp gametest/State.cpp gametest/State.hpp gametest/GameState.cpp gametest/GameState.hpp gametest/TitleState.cpp gametest/TitleState.hpp gametest/Utility.cpp gametest/Utility.hpp gametest/MenuState.cpp gametest/MenuState.hpp)
target_link_libraries(game
${SFML_LIBRARIES}
${SFML_DEPENDENCIES})