CMakeLists.txt 505 Bytes
Newer Older
Andreas Sturmlechner's avatar
Andreas Sturmlechner committed
1
find_package(Qt5 REQUIRED COMPONENTS Test)
2 3
find_package(KF5 REQUIRED COMPONENTS KIO)

4
include_directories(
5
    ${KDEConnectCore_BINARY_DIR}
Aleix Pol Gonzalez's avatar
Aleix Pol Gonzalez committed
6
    ${CMAKE_SOURCE_DIR}
7 8
)

Albert Vaca Cintora's avatar
Albert Vaca Cintora committed
9
set(kdeconnect_libraries
Albert Vaca Cintora's avatar
Albert Vaca Cintora committed
10
    kdeconnectcore
11 12 13
    KF5::KIOWidgets
    Qt5::Network
    Qt5::Test
14
    qca-qt5
15
)
Albert Vaca Cintora's avatar
Albert Vaca Cintora committed
16

17 18
ecm_add_test(networkpackagetests.cpp LINK_LIBRARIES ${kdeconnect_libraries})
ecm_add_test(testsocketlinereader.cpp ../core/backends/lan/socketlinereader.cpp TEST_NAME testsocketlinereader LINK_LIBRARIES ${kdeconnect_libraries})