-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
67 lines (52 loc) · 1.15 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
55
56
57
58
59
60
61
62
63
64
65
66
67
cmake_minimum_required(VERSION 3.10)
project(Main VERSION 1.0.0)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_FLAGS "-Wall -Wextra")
set(CMAKE_CXX_FLAGS_DEBUG "-g")
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
find_package(SFML 2 COMPONENTS network graphics audio REQUIRED)
find_package(Boost 1.56 REQUIRED)
include_directories(${SFML_INCLUDE_DIR})
include_directories(${Boost_INCLUDE_DIRS})
add_subdirectory(Common_libs/Random)
add_subdirectory(Common_libs/Matrix)
add_subdirectory(Common_libs/Errors)
add_subdirectory(Help/Text)
add_subdirectory(Help/ParamCar)
add_subdirectory(Help/Direction)
add_subdirectory(Help)
add_subdirectory(Map)
add_subdirectory(Object)
add_subdirectory(MainMenus)
add_subdirectory(AnalyseMaps)
message("Building!")
add_executable(
run
Main.cpp
)
target_link_libraries(
run
Random
Matrix
Errors
MainMenus
ServerGame
Map
MapPrototypes
Text
Help
ParamCar
Direction
Object
AnalyseText
AnalyseMapPrototypes
CreateMap
SetMap
sfml-graphics
sfml-network
sfml-audio
${Boost_LIBRARIES}
)