summaryrefslogtreecommitdiffstats
path: root/src/plugins/messageservices/pop/CMakeLists.txt
blob: 3ad52305a13904d4d7b4d4b8a7ea0d5ddf46f3b9 (plain)
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
set(SRC
  popclient.cpp
  popconfiguration.cpp
  poplog.cpp
  popservice.cpp
  popauthenticator.cpp)

set(HEADERS
  popclient.h
  popconfiguration.h
  poplog.h
  popservice.h
  popauthenticator.h)

add_library(pop MODULE ${SRC} ${HEADERS})

target_include_directories(pop
  PRIVATE ../../../libraries/qmfclient ../../../libraries/qmfclient/support ../../../libraries/qmfmessageserver)
target_link_libraries(pop
  PRIVATE Qt6::Core Qt6::Network QmfClient QmfMessageServer)

install(TARGETS pop
  LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/qt6/plugins/messagingframework/messageservices)

if(BUILD_TESTING)
  add_custom_target(link_pop ALL
    COMMAND ${CMAKE_COMMAND} -E create_symlink pop/libpop.so ../libpop.so
    DEPENDS pop)
endif()