-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
40 lines (34 loc) · 880 Bytes
/
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
cmake_minimum_required(VERSION 2.6)
project(gptesttask)
#find_package(EIGEN REQUIRED)
#include_directories(${EIGEN_INCLUDE_DIR})
include_directories("/usr/include/eigen3")
find_package (Threads REQUIRED)
find_package(OpenMP)
if (OPENMP_FOUND)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
endif()
find_package(Boost REQUIRED COMPONENTS filesystem iostreams program_options system serialization)
include_directories(${Boost_INCLUDE_DIR})
add_executable(gptesttask
dataimporter.h
dataimporter.cpp
functions.h
solver.h
solver.cpp
taskdata.h
taskdata.cpp
regressionmodels.h
boost_serialization_eigen.h
main.cpp
tester.h
tester.cpp
analyze.h
analyze.cpp
)
target_link_libraries (gptesttask
${CMAKE_THREAD_LIBS_INIT}
${Boost_LIBRARIES}
s)
install(TARGETS gptesttask RUNTIME DESTINATION bin)