| 1 |
project(Dekko-Server) |
| 2 |
|
| •3 |
#[[ |
| 4 |
list(APPEND dekkod_SRCS |
| 5 |
mailmessageclient.cpp |
| 6 |
messageserver.cpp |
| 7 |
newcountnotifier.cpp |
| 8 |
prepareaccounts.cpp |
| 9 |
servicehandler.cpp |
| 10 |
) |
| 11 |
|
| 12 |
if(NOT DEKKO_SERVER_AS_THREAD) |
| 13 |
list(APPEND dekkod_SRCS |
| 14 |
main.cpp |
| 15 |
) |
| 16 |
endif() |
| 17 |
|
| 18 |
add_executable(dekkod ${dekkod_SRCS}) |
| 19 |
|
| 20 |
target_compile_definitions(dekkod |
| 21 |
PRIVATE |
| 22 |
QMF_NO_MESSAGE_SERVICE_EDITOR |
| 23 |
HAVE_LIBICU |
| 24 |
QMF_ENABLE_LOGGING |
| 25 |
) |
| 26 |
|
| 27 |
if(CLICK_MODE) |
| 28 |
target_compile_definitions(dekkod |
| 29 |
PRIVATE |
| 30 |
CLICK |
| 31 |
) |
| 32 |
else() |
| 33 |
target_compile_definitions(dekkod |
| 34 |
PRIVATE |
| 35 |
SNAP |
| 36 |
USE_HTML_PARSER |
| 37 |
) |
| 38 |
endif() |
| 39 |
|
| 40 |
target_include_directories(dekkod |
| 41 |
PUBLIC |
| 42 |
${CMAKE_CURRENT_SOURCE_DIR} |
| 43 |
${QmfClient_INCLUDE_DIRS} |
| 44 |
${QmfMessageServer_INCLUDE_DIRS} |
| 45 |
) |
| 46 |
|
| 47 |
target_link_libraries(dekkod |
| 48 |
PUBLIC |
| 49 |
${QmfClient_LIBRARIES} |
| 50 |
${QmfMessageServer_LIBRARIES} |
| 51 |
Qt5::Core |
| 52 |
Qt5::Gui |
| 53 |
Qt5::Widgets |
| 54 |
) |
| 55 |
|
| 56 |
if(CLICK_MODE) |
| 57 |
add_subdirectory(serviceplugin) |
| 58 |
endif() |
| •59 |
]] |
| 60 |
|
| 61 |
add_subdirectory(serviceworker) |
| 62 |
|
| •63 |
#[[ |
| 64 |
install(TARGETS |
| 65 |
dekkod |
| 66 |
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 67 |
) |
| •68 |
endif() |
| 69 |
]] |