-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
54 lines (47 loc) · 1.01 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
cmake_minimum_required(VERSION 3.27)
project(CPlusPlusPR)
set(CMAKE_CXX_STANDARD 20)
set(BUILD_SHARED_LIBS FALSE)
include(FetchContent)
# Fetch SFML
FetchContent_Declare(
SFML
GIT_REPOSITORY https://github.com/SFML/SFML
GIT_TAG 2.6.1
)
FetchContent_MakeAvailable(SFML)
# Fetch fmt
FetchContent_Declare(
fmt
GIT_REPOSITORY https://github.com/fmtlib/fmt
GIT_TAG 10.2.1
)
FetchContent_MakeAvailable(fmt)
add_executable(CPlusPlusPR main.cpp
Game.h
Game.cpp
Player.h
Player.cpp
Button.cpp
Button.h
MainMenu.cpp
MainMenu.h
Enemy.h
Wizard.cpp
Wizard.h
Bat.cpp
Bat.h
Magician.cpp
Magician.h
NightBorn.cpp
NightBorn.h
Boss.cpp
Boss.h
Obstacles.cpp
Obstacles.h
Items.cpp
Items.h
ItemType.h
)
# Link the libraries
target_link_libraries(CPlusPlusPR PRIVATE sfml-graphics fmt::fmt)