CMakeLists.txt 620 Bytes
Newer Older
Laurent Montel's avatar
Laurent Montel committed
1
include(ECMAddTests)
Christophe Giboudeaux's avatar
Christophe Giboudeaux committed
2
3
4

find_package(Qt5Test CONFIG REQUIRED)

Laurent Montel's avatar
Laurent Montel committed
5
if(Ldap_FOUND)
Laurent Montel's avatar
Laurent Montel committed
6
  ecm_add_tests(testkldap.cpp NAME_PREFIX "kldap-" LINK_LIBRARIES KF5::Ldap Qt5::Test)
Christophe Giboudeaux's avatar
Christophe Giboudeaux committed
7
endif()
Laurent Montel's avatar
Laurent Montel committed
8
9
10
11
12
13
14

set(ldapclientsearchconfigreadconfigjobtest_source ldapclientsearchconfigreadconfigjobtest.cpp)
add_executable(ldapclientsearchconfigreadconfigjobtest ${ldapclientsearchconfigreadconfigjobtest_source})
add_test(NAME ldapclientsearchconfigreadconfigjobtest COMMAND ldapclientsearchconfigreadconfigjobtest)
ecm_mark_as_test(ldapclientsearchconfigreadconfigjobtest)
target_link_libraries(ldapclientsearchconfigreadconfigjobtest Qt5::Test KF5::Ldap)