-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
145 lines (106 loc) · 4.6 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
cmake_minimum_required(VERSION 3.16)
if (UNIX)
message("UNIX => Setting Compiler to gcc-10")
set(CMAKE_CXX_COMPILER "/usr/bin/g++-10")
set(CMAKE_C_COMPILER "/usr/bin/gcc-10")
endif()
project(GA)
project(GA_test)
set(CMAKE_CXX_STANDARD 20)
macro(add_debug_release_library target debug_path release_path)
if (CMAKE_BUILD_TYPE STREQUAL Debug)
message(It`s\ Debug\ mode!\ =>\ Liking\ Debug\ static\ library\ versions...)
target_link_libraries(${target} D:/pythonic/cmake-build-debug/pythonic.lib)
else()
if (CMAKE_BUILD_TYPE STREQUAL Release)
message(It`s\ Release\ mode!\ =>\ Liking\ Release\ static\ library\ versions...)
target_link_libraries(${target} D:/pythonic/cmake-build-release/pythonic.lib)
else ()
message(It`s\ an\ Unknown\ build\ mode!\ Can`t\ link\ the library!!!)
exit()
endif()
endif()
endmacro()
set (CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake")
include(cotire)
if (WIN32)
set(Pythonic_DIR D:/pythonic)
else()
set(Pythonic_DIR "$ENV{HOME}/dev/pythonic")
endif()
find_package(Pythonic)
include_directories(.)
include_directories(${pythonic_include_directories})
add_library(GA
GA/ga_base.h
GA/operations/mutation.cpp
GA/operations/mutation.h
GA/operations/matting.cpp
GA/operations/matting.h
GA/operations/population_generation.cpp
GA/operations/population_generation.h
GA/operations/util.cpp
GA/operations/util.h
GA/operations/crossover.cpp
GA/operations/crossover.h
GA/old_GA.cpp
GA/old_GA.h
GA/GA_optimizer.cpp
GA/GA_optimizer.h
optimization_benchmarking/performance_distribution_maker.cpp
optimization_benchmarking/performance_distribution_maker.h
other_optimization/local_optimization.cpp
other_optimization/combi_optimizing.cpp
other_optimization/combi_optimizing.h
GA/base_GA_params.h
GA/operations/operations.h
Annealing/annealing_optimize.cpp
Annealing/annealing_optimize.h
Annealing/default_annealing_operations.h
Annealing/default_annealing_operations.cpp
lib/libfort/fort.c
lib/libfort/fort.h
lib/libfort/fort.hpp
optimization_benchmarking/optimization_algorithm.h
optimization_benchmarking/AlgorithmAdapters/GeneticAlgorithmAdapter.cpp
optimization_benchmarking/AlgorithmAdapters/GeneticAlgorithmAdapter.h
optimization_benchmarking/AlgorithmAdapters/AnnealingSimulationAdapter.cpp
optimization_benchmarking/AlgorithmAdapters/AnnealingSimulationAdapter.h
powerful_ga_config.h
optimization_commons/logging_type.h Annealing/AnnealingOptimizer.cpp Annealing/AnnealingOptimizer.h optimization_commons/optimization_algorithm_concept.h)
# add_debug_release_library(GA D:/pythonic/cmake-build-debug/pythonic.lib D:/pythonic/cmake-build-release/pythonic.lib)
target_link_libraries(GA ${pythonic_static_libraries})
add_executable(GA_test
main.cpp
tests/local_testing.h
tests/test_functions.h
tests/test_functions.cpp
tests/GA/ga_util_tests.h
tests/lib_test.cpp
tests/GA/quantity_tests.h
tests/GA/old_GA_test.h
tests/GA/ga_test.h
tests/annealing/annealing_tests.h
problem_examples/chess_annealing/chess_annealing.cpp
problem_examples/chess_annealing/chess_annealing.h
problem_examples/chess_annealing/chess_annealing_utils.h
problem_examples/chess_annealing/chess2d_annealing_genome_operations.h
tests/annealing/chess2d_operation_tests.h
problem_examples/chess_annealing/common_chess_genome_operationns.h
problem_examples/chess_annealing/chess1d_annealing_genome_operationns.h
problem_examples/path_minimizing/path_minimizing.cpp
problem_examples/path_minimizing/path_minimizing.h
problem_examples/path_minimizing/path_minimizing_utils.cpp
problem_examples/path_minimizing/path_minimizing_utils.h
tests/annealing/chess1d_annealing_test.h
problem_examples/path_minimizing/path_parsing_and_displaying.h
tests/annealing/path_optimizing_util_tests.h
tests/benchmarking/GA_adapter_test.h
tests/benchmarking/base_opt_adapter_test.h
tests/computation_distribution_test.h
)
# add_debug_release_library(GA_test D:/pythonic/cmake-build-debug/pythonic.lib D:/pythonic/cmake-build-release/pythonic.lib)
target_link_libraries(GA_test ${pythonic_static_libraries})
target_link_libraries(GA_test GA)
cotire(GA)
cotire(GA_test)