Commit f3aa0ac0 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make run without install them

parent 67b91325
......@@ -4,9 +4,16 @@ cmake_minimum_required(VERSION 3.1)
set(LIBRARY_NAMELINK LIBRARY NAMELINK_SKIP)
# we need some parts of the ECM CMake helpers
set(KF5_VERSION "5.37.0")
find_package(ECM ${KF5_VERSION} REQUIRED NO_MODULE)
option(RUN_UNINSTALL "test run uninstalled apps (experimental)" FALSE)
set(ECM_VERSION ${KF5_VERSION})
# ECM setup
if (RUN_UNINSTALL)
set(ECM_VERSION "5.38.0")
endif()
find_package(ECM ${ECM_VERSION} CONFIG REQUIRED)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
include(ECMOptionalAddSubdirectory)
include(ECMInstallIcons)
......
......@@ -3,7 +3,7 @@ add_definitions (-DTEST_DATA_DIR="${CMAKE_CURRENT_SOURCE_DIR}/data")
add_definitions (-DCURRENT_SOURCE_DIR="${CMAKE_CURRENT_SOURCE_DIR}")
add_executable(ldaptest ldaptest.cpp ../ldap.cpp ../setupobject.cpp)
add_test(ldaptest ldaptest)
add_test(NAME ldaptest COMMAND ldaptest)
ecm_mark_as_test(ldaptest)
target_link_libraries(ldaptest
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment