-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
58 lines (43 loc) · 1.19 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
cmake_minimum_required(VERSION 2.8)
PROJECT(NSGA-Parallel-Backend)
set (CMAKE_CXX_STANDARD 11)
SET(USE_VTK CACHE BOOL "Set to on to use vtk visualisation")
IF (USE_VTK)
find_package(VTK REQUIRED)
IF(VTK_FOUND)
include(${VTK_USE_FILE})
add_definitions(-DWITH_VTK)
ENDIF()
ENDIF()
find_package(MPI REQUIRED)
include_directories(${MPI_CXX_INCLUDE_PATH})
set(CMAKE_AUTOMOC ON)
find_package(Qt5GUI)
find_package(Qt5Charts)
find_package(Qt5Widgets)
SET(USE_STATIC_BOOST CACHE BOOL "Set to on to use static boost libraries")
IF (USE_STATIC_BOOST)
SET(Boost_USE_STATIC_LIBS ON)
SET(Boost_USE_STATIC_RUNTIME ON)
ENDIF()
FIND_PACKAGE(Boost REQUIRED COMPONENTS filesystem system program_options mpi serialization timer chrono serialization date_time)
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
add_definitions(-DVARIANT=4)
add_subdirectory(Checkpoints)
include_directories(Checkpoints)
add_subdirectory(Serialization)
include_directories(Serialization)
SET(BackendSources
Crossover.hpp
Individual.hpp
Mutation.hpp
Population.hpp
Population.cpp
Types.hpp
)
SET(AllSources
${CheckpointsSources}
${SerializationSources}
${BackendSources}
)
add_subdirectory(tests)