-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
50 lines (41 loc) · 1.16 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
cmake_minimum_required(VERSION 3.27)
project(Hexagon)
set(CMAKE_CXX_STANDARD 20)
set(BUILD_SHARED_LIBS FALSE)
if(WIN32)
message(STATUS "Configuring for Windows")
add_definitions(-DPLATFORM_WINDOWS)
elseif(UNIX)
message(STATUS "Configuring for Linux")
add_definitions(-DPLATFORM_LINUX)
endif()
include(FetchContent)
FetchContent_Declare(
SFML
GIT_REPOSITORY https://github.com/SFML/SFML
GIT_TAG 2.6.1
)
FetchContent_Declare(
fmt
GIT_REPOSITORY https://github.com/fmtlib/fmt
GIT_TAG 10.2.1
)
FetchContent_MakeAvailable(SFML)
FetchContent_MakeAvailable(fmt)
add_executable(Hexagon
main.cpp
main/game_manager.cpp main/game_manager.h
main/window_wrapper.cpp main/window_wrapper.h
entities/game_entities.cpp
entities/playable_sides.cpp entities/playable_sides.h entities/player.h entities/ai.h
main/util.h
entities/board.cpp
entities/board.h
entities/tile.h
main/util.cpp
main/background.cpp
main/background.h
entities/move.cpp
entities/move.h
)
target_link_libraries(Hexagon sfml-graphics fmt)