-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
76 lines (60 loc) · 2 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
68
69
70
71
72
73
74
75
76
cmake_minimum_required(VERSION 3.22.1)
set(CMAKE_CXX_STANDARD 17)
if(APPLE)
set(CMAKE_CXX_COMPILER "/usr/local/bin/g++")
endif ()
set(CMAKE_CXX_FLAGS "-std=c++17 -pthread -Wall -Werror -Wextra -O3 -fopenmp")
project(A3_Parallels)
include_directories(
${PROJECT_SOURCE_DIR}/src/Extern/Graph/include
${PROJECT_SOURCE_DIR}/src/Extern/Graph/internal
${PROJECT_SOURCE_DIR}/src/Extern/Console/
${PROJECT_SOURCE_DIR}/src/Extern/Matrix/include
${PROJECT_SOURCE_DIR}/src/Extern/Matrix/internal
${PROJECT_SOURCE_DIR}/src/Extern/FileManager/include
${PROJECT_SOURCE_DIR}/src/Extern/FileManager/internal
${PROJECT_SOURCE_DIR}/src/Model
${PROJECT_SOURCE_DIR}/src/Model/AntColony
${PROJECT_SOURCE_DIR}/src/Model/AntColony/ant
${PROJECT_SOURCE_DIR}/src/Model/Gauss
${PROJECT_SOURCE_DIR}/src/Model/Winograd
${PROJECT_SOURCE_DIR}/src/Controller
${PROJECT_SOURCE_DIR}/src/View
${PROJECT_SOURCE_DIR}/src/View/base
)
file(GLOB_RECURSE HEADER_FILES
"${PROJECT_SOURCE_DIR}/src/*.h"
)
add_executable(
AntView
${HEADER_FILES}
src/Controller/controller.cc
src/View/base/base_view.cc
src/View/views.cc
src/Model/model.cc
src/Model/AntColony/ant_colony.cc
src/Model/AntColony/ant/ant.cc
src/main.cc)
target_compile_definitions(AntView PRIVATE ANT_COLONY)
add_executable(
GaussView
${HEADER_FILES}
src/Controller/controller.cc
src/View/base/base_view.cc
src/View/views.cc
src/Model/model.cc
src/Model/Gauss/gauss.cc
src/main.cc
)
target_compile_definitions(GaussView PRIVATE GAUSS)
add_executable(
WinogradView
${HEADER_FILES}
src/Controller/controller.cc
src/View/base/base_view.cc
src/View/views.cc
src/Model/model.cc
src/Model/Winograd/winograd.cc
src/main.cc
)
target_compile_definitions(WinogradView PRIVATE WINOGRAD)