Debian Codegraph @

Dekko/backend/accounts/quick/CMakeLists.txt

raw
1 project(Dekko-AccountsPlugin)
2
3 set(PLUGIN_TARGET accounts-plugin)
4
5 list(APPEND PLUGIN_SRCS
6 AccountsPlugin.cpp
7 PresetProviderModel.cpp
8 )
9
10 add_library(${PLUGIN_TARGET} SHARED ${PLUGIN_SRCS})
11
12 message(AUTHOR_WARNING "Should the IMAP & POP3 options be checked before setting these defines here? qbs code didn't seem to do this.")
13 target_compile_definitions(${PLUGIN_TARGET}
14 PRIVATE
15 IMAP_ENABLED
16 POP3_ENABLED
17 )
18
19 # QMF doesn't set these as target includes, so we must manually specify these
20 target_include_directories(${PLUGIN_TARGET}
21 PRIVATE
22 ${QmfMessageServer_INCLUDE_DIRS}
23 )
24
25 target_link_libraries(${PLUGIN_TARGET}
26 PUBLIC
27 accounts
28 dekko-utils
29 ${QmfMessageServer_LIBRARIES}
30 Qt5::Quick
31 Qt5::Qml
32 )
33
34 install(TARGETS
35 ${PLUGIN_TARGET}
36 DESTINATION ${QT_IMPORTS_DIR}/Dekko/Mail/Accounts
37 )
38
39 install(FILES
40 qmldir
41 DESTINATION ${QT_IMPORTS_DIR}/Dekko/Mail/Accounts
42 )