diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -465,10 +465,11 @@ add_subdirectory(src) # only enable unit tests for linux -if(UNIX AND NOT ANDROID AND NOT SAILFISHOS) - enable_testing() +if(ECM_FOUND AND UNIX AND NOT ANDROID AND NOT SAILFISHOS) + include(KDECMakeSettings) + include(ECMAddTests) add_subdirectory(tests) -endif(UNIX AND NOT ANDROID AND NOT SAILFISHOS) +endif(ECM_FOUND AND UNIX AND NOT ANDROID AND NOT SAILFISHOS) add_custom_target(binaries) add_dependencies(binaries ${GCOMPRIS_EXECUTABLE_NAME} rcc_core rcc_menu rcc_activities all_activities) diff --git a/HACKING b/HACKING --- a/HACKING +++ b/HACKING @@ -5,10 +5,10 @@ The official repository requires a KDE developer account, we will ask regular contributors to get an account and work on the KDE repository. - http://quickgit.kde.org/?p=gcompris.git + https://cgit.kde.org/gcompris.git For new developers and those interested only in smaller contributions use the -GitHub repository. +https://phabricator.kde.org/ or GitHub repository. Source code from GitHub @@ -73,3 +73,22 @@ gcompris-qt root directory. Follow the wizard instructions. Use the buttons on the lower left side to build, run, and debug GCompris. + + +Testing +------- +In order to be able to test GCompris the extra-cmake-modules need to +be installed +Installing on the Debian based system can be done like this: + sudo aptitude install extra-cmake-modules +or + https://github.com/KDE/extra-cmake-modules.git + +For the running the test use this command: + make && make test + + +More Details +------------ +Go To this Link: + http://gcompris.net/wiki/Qt_Quick_development_process diff --git a/tests/core/CMakeLists.txt b/tests/core/CMakeLists.txt --- a/tests/core/CMakeLists.txt +++ b/tests/core/CMakeLists.txt @@ -8,6 +8,4 @@ Qt5::Test ) -add_executable(CoreActivityInfoTest ActivityInfoTest.cpp) -target_link_libraries(CoreActivityInfoTest ${CORE_TEST_LIBRARIES}) -add_test(NAME CoreActivityInfoTest COMMAND $) +ecm_add_test( ActivityInfoTest.cpp TEST_NAME CoreActivityInfoTest LINK_LIBRARIES ${CORE_TEST_LIBRARIES} )