-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
53 lines (47 loc) · 1.45 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 3.5)
project(scurvy)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wno-parentheses -fdiagnostics-color=always -O2")
find_package(Eigen3 REQUIRED)
message(EIGEN3_INCLUDE_DIRS="${EIGEN3_INCLUDE_DIRS}")
add_executable(stress_test
src/stress_test.cpp
src/solve.cpp
src/include/basics.h
src/include/cv.h
src/include/maths.h
src/include/ncv.h
src/include/ncv_ca.h
src/include/ncv_nca.h
src/include/scurvy.h
src/include/solve.h
)
target_include_directories(stress_test PUBLIC src/include "${EIGEN3_INCLUDE_DIRS}")
add_executable(path_stress_test
src/path_stress_test.cpp
src/solve.cpp
src/include/basics.h
src/include/cv.h
src/include/maths.h
src/include/ncv.h
src/include/ncv_ca.h
src/include/ncv_nca.h
src/include/scurvy.h
src/include/solve.h
)
target_include_directories(path_stress_test PUBLIC src/include "${EIGEN3_INCLUDE_DIRS}")
add_executable(test
src/test.cpp
src/solve.cpp
src/include/basics.h
src/include/cv.h
src/include/maths.h
src/include/ncv.h
src/include/ncv_ca.h
src/include/ncv_nca.h
src/include/scurvy.h
src/include/solve.h
)
target_include_directories(test PUBLIC src/include "${EIGEN3_INCLUDE_DIRS}")