forked from iceberg1369/cors
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
55 lines (40 loc) · 1.48 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
cmake_minimum_required(VERSION 3.16)
project(cors)
add_subdirectory(lib/libuv)
add_subdirectory(lib/lapack)
include_directories(${PROJECT_BINARY_DIR})
include_directories(include)
include_directories(lib/libuv)
include_directories(lib/uthash)
include_directories(lib/queue)
include_directories(lib/libuv/include)
include_directories(lib/triangulator)
include_directories(lib/kdtree)
aux_source_directory(src/gpos SRC_GPOS)
aux_source_directory(src/rtcm SRC_RTCM)
aux_source_directory(src/ntrip SRC_NTRIP)
aux_source_directory(src/common SRC_COMMON)
aux_source_directory(src/cors SRC_CORS)
aux_source_directory(src/pnt SRC_PNT)
aux_source_directory(src/nrtk SRC_NRTK)
aux_source_directory(src/monitor SRC_MONITOR)
aux_source_directory(src/dtrignet SRC_DELTRIG)
aux_source_directory(src/vrs SRC_VRS)
aux_source_directory(src/rinex SRC_RINEX)
aux_source_directory(lib/triangulator SRC_TRIANGULATOR)
aux_source_directory(lib/kdtree SRC_KDTREE)
if(WIN32)
set(LIBS Winmm)
else()
set(LIBS sqlite3 m pthread)
endif()
add_library(cors ${SRC_GPOS} ${SRC_RTCM} ${SRC_NTRIP} ${SRC_COMMON} ${SRC_CORS} ${SRC_PNT}
${SRC_MONITOR} ${SRC_NRTK}
${SRC_TRIANGULATOR} ${SRC_KDTREE}
${SRC_DELTRIG} ${SRC_VRS} ${SRC_RINEX})
target_link_libraries(cors ${LIBS} lapack gfortran quadmath)
add_executable(cors-engine src/engine/engine.c)
target_link_libraries(cors-engine cors uv)
add_executable(cors-mengine src/engine/mengine.c)
target_link_libraries(cors-mengine cors uv)
add_subdirectory(test)