Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 1a1b8d11 authored by Laurent Montel's avatar Laurent Montel 😁

Make run without install them

parent 012a8fb7
......@@ -7,7 +7,15 @@ project(kgapi VERSION ${KGAPI_LIB_VERSION})
# ECM setup
set(KF5_VERSION "5.37.0")
find_package(ECM ${KF5_VERSION} CONFIG REQUIRED)
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(GenerateExportHeader)
......
......@@ -7,7 +7,7 @@ set(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR})
MACRO(LIBKGAPI_TESTS)
FOREACH(_testname ${ARGN})
add_executable( ${_testname} ${_testname}.cpp )
add_test( ${_testname} ${_testname} )
add_test(NAME ${_testname} COMMAND ${_testname} )
ecm_mark_as_test(libkgapi-${_testname})
target_link_libraries(${_testname}
Qt5::Test
......@@ -21,7 +21,7 @@ ENDMACRO(LIBKGAPI_TESTS)
macro(add_libkgapi2_test _module _testname)
add_executable( ${_module}-${_testname} ${_module}/${_testname}.cpp )
add_test( ${_module}-${_testname} ${_module}-${_testname} )
add_test(NAME ${_module}-${_testname} COMMAND ${_module}-${_testname} )
ecm_mark_as_test(libkgapi2-${_module}-${_testname})
target_link_libraries(${_module}-${_testname}
Qt5::Test
......
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