-
Notifications
You must be signed in to change notification settings - Fork 114
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
39 lines (33 loc) · 1.06 KB
/
CMakeLists.txt
File metadata and controls
39 lines (33 loc) · 1.06 KB
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
include_directories(
include
${PROJECT_SOURCE_DIR}/util/include
${PROJECT_SOURCE_DIR}/webserver/include
${PROJECT_SOURCE_DIR}/model/include
${PROJECT_BINARY_DIR}/service/language/gen-cpp
${PROJECT_BINARY_DIR}/service/project/gen-cpp
${PROJECT_SOURCE_DIR}/service/project/include
${PLUGIN_DIR}/model/include)
include_directories(SYSTEM
${THRIFT_LIBTHRIFT_INCLUDE_DIRS})
add_library(cppservice SHARED
src/cppservice.cpp
src/plugin.cpp
src/diagram.cpp
src/filediagram.cpp)
target_compile_options(cppservice PUBLIC -Wno-unknown-pragmas)
target_link_libraries(cppservice
util
model
cppmodel
mongoose
projectservice
languagethrift
${GRAPHVIZ_GVC_LIBRARY}
${THRIFT_LIBTHRIFT_LIBRARIES})
if(APPLE)
# Use Linux-like linking behaviour, dynamic libraries may contain references without implementation.
# cppservice references headers from the webserver without implementation
set_target_properties(cppservice PROPERTIES LINK_FLAGS
"-undefined dynamic_lookup")
endif(APPLE)
install(TARGETS cppservice DESTINATION ${INSTALL_SERVICE_DIR})