forked from osm-oscar/oscar-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
39 lines (34 loc) · 932 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
cmake_minimum_required(VERSION 2.8)
project(oscar-web)
set(CMAKE_MODULE_PATH
${CMAKE_CURRENT_SOURCE_DIR}/cmake/
${CMAKE_CURRENT_SOURCE_DIR}/vendor/liboscar/cmake/
${CMAKE_CURRENT_SOURCE_DIR}/vendor/liboscar/vendor/sserialize/cmake/
)
include(add_buildtype_lto)
include(add_buildtype_ultra)
add_subdirectory(vendor/liboscar liboscar)
find_package(CPPCMS REQUIRED)
find_package(LIBRT)
set(OSCAR_WEB_SOURCES_CPP
server/ItemSerializer.cpp
server/GeoHierarchySubSetSerializer.cpp
server/CellQueryResultsSerializer.cpp
server/BinaryWriter.cpp
server/IndexDB.cpp
server/ItemDB.cpp
server/CQRCompleter.cpp
server/CQRItems.cpp
server/oscarweb.cpp
server/MainHandler.cpp
server/KVClustering.cpp
)
SET(OSCAR_WEB_LINK_LIBS
liboscar
sserialize
${LIBRT_LIBRARIES}
${CPPCMS_LIBRARY}
${BOOSTER_LIBRARY}
)
add_executable(${PROJECT_NAME} ${OSCAR_WEB_SOURCES_CPP})
target_link_libraries(${PROJECT_NAME} ${OSCAR_WEB_LINK_LIBS})