-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
51 lines (43 loc) · 1.33 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
cmake_minimum_required(VERSION 3.16)
project(libqsearch)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Debug")
message(STATUS "Build type not specified: Use Debug by default")
endif(NOT CMAKE_BUILD_TYPE)
include_directories(src)
set(CMAKE_CXX_STANDARD 20)
# TODO
# src/QSearchFullTree.cpp
# src/QSearchConnectedNode.cpp
# src/QSearchMakeTree.cpp
# src/QSearchManager.cpp
# src/QSearchNeighborList.cpp
# src/QSearchTree.cpp
# src/QSearchTree.hpp
# src/QSearchNeighborList.hpp
set(QSEARCH_LIB_SRCS
src/QSearchConnectedNode.cpp
src/QSearchConnectedNode.hpp
src/QSearchFullTree.cpp
src/QSearchFullTree.hpp
src/QSearchMakeTree.cpp
src/QSearchMakeTree.hpp
src/QSearchManager.cpp
src/QSearchManager.hpp
src/QSearchNeighborList.hpp
src/QSearchNeighborList.cpp
src/QSearchTree.cpp
src/QSearchTree.hpp
src/RandTools.hpp
src/SimpleMatrix.cpp
src/SimpleMatrix.hpp
src/StringTools.cpp
src/StringTools.hpp
)
add_library(qsearch ${QSEARCH_LIB_SRCS})
set(MAKETREE_MAIN_SRCS src/maketree.cpp)
add_executable(maketree ${MAKETREE_MAIN_SRCS})
set(TESTQSEARCH_MAIN_SRCS src/test-qsearch.cpp)
add_executable(test-qsearch ${TESTQSEARCH_MAIN_SRCS})
target_link_libraries(test-qsearch qsearch)
target_link_libraries(maketree qsearch)