generated from SFML/cmake-sfml-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
39 lines (33 loc) · 996 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
30
31
32
33
34
35
36
37
38
39
cmake_minimum_required(VERSION 3.28)
project(Adventure-of-the-Slime LANGUAGES CXX)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
include(FetchContent)
FetchContent_Declare(
SFML
GIT_REPOSITORY https://github.com/SFML/SFML.git
GIT_TAG 3.0.0
GIT_SHALLOW ON
EXCLUDE_FROM_ALL
SYSTEM
)
FetchContent_MakeAvailable(SFML)
add_executable(main
src/main.cpp
src/AnimationManager.cpp
src/icon.h
src/tileMap.h
src/AnimationManager.h
src/SoundPlayer.cpp
src/SoundPlayer.h
src/enemy.h
assets/icon/icon.rc
src/slime.cpp
src/utils.cpp
src/utils.h
src/gameDataManager.h
)
set_target_properties(main PROPERTIES OUTPUT_NAME "AOFTS")
target_compile_features(main PRIVATE cxx_std_17)
# Link SFML libraries
target_link_libraries(main PRIVATE sfml-graphics sfml-audio sfml-system)
target_include_directories(main PRIVATE ${SFML_SOURCE_DIR}/include)