CMakeLists.txt 920 Bytes
Newer Older
1
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS Test)
2

3
include_directories(
4
    ${KDEConnectCore_BINARY_DIR}
Aleix Pol Gonzalez's avatar
Aleix Pol Gonzalez committed
5
    ${CMAKE_SOURCE_DIR}
6
7
8
    ${CMAKE_CURRENT_BINARY_DIR}/..
    ${CMAKE_CURRENT_BINARY_DIR}/../plugins/sendnotifications/
    ${CMAKE_CURRENT_BINARY_DIR}/../smsapp/
9
10
)

Albert Vaca Cintora's avatar
Albert Vaca Cintora committed
11
set(kdeconnect_libraries
Albert Vaca Cintora's avatar
Albert Vaca Cintora committed
12
	kdeconnectcore
13
14
    KF5::I18n
    Qt5::DBus
15
16
    Qt5::Network
    Qt5::Test
17
    ${Qca_LIBRARY}
18
)
Albert Vaca Cintora's avatar
Albert Vaca Cintora committed
19

20
21
22
23
if(${KF5KIO_FOUND})
    list(APPEND kdeconnect_libraries KF5::KIOWidgets)
endif()

24
set(kdeconnect_sms_libraries
25
26
    kdeconnectsmshelper
    Qt5::Test
27
28
)

29
ecm_add_test(pluginloadtest.cpp LINK_LIBRARIES ${kdeconnect_libraries})
30
ecm_add_test(sendfiletest.cpp LINK_LIBRARIES ${kdeconnect_libraries})
Simon Redman's avatar
Simon Redman committed
31
ecm_add_test(testsocketlinereader.cpp TEST_NAME testsocketlinereader LINK_LIBRARIES ${kdeconnect_libraries})
32

Weixuan Xiao's avatar
Weixuan Xiao committed
33
34
35
if(PRIVATE_DBUS_ENABLED)
    ecm_add_test(testprivatedbus.cpp LINK_LIBRARIES ${kdeconnect_libraries})
endif()