-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
23 lines (17 loc) · 1.26 KB
/
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
cmake_minimum_required(VERSION 3.23)
project(epitech_wolf3d_project)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
add_executable(epitech_wolf3d_project src/main.cpp src/game_loop.cpp src/game_loop.hpp src/lines.cpp src/lines.hpp src/my_math.cpp src/my_math.hpp src/raycasting.cpp src/raycasting.hpp src/file_parser.cpp src/file_parser.hpp src/draw.cpp src/draw.hpp src/Player.cpp src/Player.hpp src/managers/GameManager.hpp src/Camera.hpp src/Hud.hpp src/MouseAndKeyboard.hpp src/Tile.hpp src/MouseAndKeyboard.cpp src/Grid.hpp src/Weapon.hpp src/Animation.hpp src/managers/TextureManager.hpp src/SpriteSetting.hpp src/Timer.hpp src/managers/SoundManager.hpp src/Enemy.cpp src/Enemy.hpp src/Weapon.cpp src/Grid.cpp src/managers/GameManager.cpp src/Animation.cpp src/PathFinder.cpp src/PathFinder.hpp src/Pickup.cpp src/Pickup.hpp)
#directory where the cmake files for SFML are. You will want to change this to wherever your SFML installation is
set(SFML_DIR "/usr/lib/x86_64-linux-gnu/cmake/SFML")
find_package(SFML 2.5.1 COMPONENTS system graphics window REQUIRED)
find_package(Threads REQUIRED)
target_link_libraries(${PROJECT_NAME}
PRIVATE
sfml-system
sfml-graphics
sfml-window
sfml-audio
Threads::Threads
)