CMakeLists.txt 555 Bytes
Newer Older
Laurent Montel's avatar
Laurent Montel committed
1
include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/.. ${accountwizard_BINARY_DIR} )
2
add_definitions (-DTEST_DATA_DIR="${CMAKE_CURRENT_SOURCE_DIR}/data")
Laurent Montel's avatar
Laurent Montel committed
3
add_definitions (-DCURRENT_SOURCE_DIR="${CMAKE_CURRENT_SOURCE_DIR}")
4

5
add_executable(ldaptest ldaptest.cpp ../ldap.cpp ../setupobject.cpp ../restoreldapsettingsjob.cpp)
Laurent Montel's avatar
Laurent Montel committed
6
add_test(NAME ldaptest COMMAND ldaptest)
7
8
9
10
11
12
ecm_mark_as_test(ldaptest)

target_link_libraries(ldaptest
    KF5::KIOCore
    KF5::Mime
    KF5::Ldap
13
    Qt5::Test
14
    KF5::Libkdepim
Laurent Montel's avatar
Laurent Montel committed
15
    KF5::I18n
Nicolas Fella's avatar
Nicolas Fella committed
16
    KF5::ConfigCore
17
    Qt5::Widgets
Laurent Montel's avatar
Laurent Montel committed
18
    )