-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
79 lines (72 loc) · 1.52 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
cmake_minimum_required(VERSION 3.5)
# for clangd
set( CMAKE_EXPORT_COMPILE_COMMANDS ON )
set( CMAKE_C_COMPILER /usr/bin/clang )
set( CMAKE_CXX_COMPILER /usr/bin/clang++ )
project( Sample CXX )
add_executable( Sample
example/sample/sample.cpp
)
set_target_properties( Sample PROPERTIES
CXX_STANDARD 17
)
target_include_directories( Sample PUBLIC
./include
)
project( test CXX )
find_package( GTest )
add_executable( test
test/rtree.cpp
test/main.cpp
)
set_target_properties( test PROPERTIES
CXX_STANDARD 17
)
target_link_libraries( test PUBLIC GTest::gtest )
target_include_directories( test PUBLIC
./include
)
project( visualize_1d CXX )
add_executable( visualize_1d
example/visualize_1d/main.cpp
)
set_target_properties( visualize_1d PROPERTIES
CXX_STANDARD 17
)
target_include_directories( visualize_1d PUBLIC
./include
)
project( visualize_2d CXX )
add_executable( visualize_2d
example/visualize_2d/main.cpp
)
set_target_properties( visualize_2d PROPERTIES
CXX_STANDARD 17
)
target_include_directories( visualize_2d PUBLIC
./include
)
project( visualize_3d CXX )
add_executable( visualize_3d
example/visualize_3d/main.cpp
)
set_target_properties( visualize_3d PROPERTIES
CXX_STANDARD 17
)
target_include_directories( visualize_3d PUBLIC
./include
)
project( eigen CXX )
find_package( Eigen3 )
add_executable( eigen
example/eigen/main.cpp
)
set_target_properties( eigen PROPERTIES
CXX_STANDARD 17
)
target_include_directories( eigen PUBLIC
./include
)
target_link_libraries( eigen PUBLIC
Eigen3::Eigen
)