Debian Codegraph @

Dekko/server/CMakeLists.txt

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 project(Dekko-Server)
2
3 list(APPEND dekkod_SRCS
4 mailmessageclient.cpp
5 messageserver.cpp
6 newcountnotifier.cpp
7 prepareaccounts.cpp
8 servicehandler.cpp
9 )
10
11 if(NOT DEKKO_SERVER_AS_THREAD)
12 list(APPEND dekkod_SRCS
13 main.cpp
14 )
15 endif()
16
17 add_executable(dekkod ${dekkod_SRCS})
18
19 target_compile_definitions(dekkod
20 PRIVATE
21 QMF_NO_MESSAGE_SERVICE_EDITOR
22 HAVE_LIBICU
23 QMF_ENABLE_LOGGING
24 )
25
26 if(CLICK_MODE)
27 target_compile_definitions(dekkod
28 PRIVATE
29 CLICK
30 )
31 else()
32 target_compile_definitions(dekkod
33 PRIVATE
34 SNAP
35 USE_HTML_PARSER
36 )
37 endif()
38
39 target_include_directories(dekkod
40 PUBLIC
41 ${CMAKE_CURRENT_SOURCE_DIR}
42 ${QmfClient_INCLUDE_DIRS}
43 ${QmfMessageServer_INCLUDE_DIRS}
44 )
45
46 target_link_libraries(dekkod
47 PUBLIC
48 ${QmfClient_LIBRARIES}
49 ${QmfMessageServer_LIBRARIES}
50 Qt5::Core
51 Qt5::Gui
52 Qt5::Widgets
53 )
54
55 if(CLICK_MODE)
56 add_subdirectory(serviceplugin)
57 endif()
58
59 add_subdirectory(serviceworker)
60
61 install(TARGETS
62 dekkod
63 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
64 )