Use KDE standard BUILD_TESTING option instead of custom ENABLE_TESTING one.

master
Johan Ouwerkerk 2019-12-28 16:30:23 +01:00
parent 70b50727c1
commit 00821e1982
2 changed files with 3 additions and 6 deletions

View File

@ -11,4 +11,4 @@ flatpak:
MANIFEST_PATH: org.kde.keysmith.json
APP_ID: org.kde.keysmith
FLATPAK_MODULE: org.kde.keysmith
CMAKE_ARGS: -DENABLE_TESTING=OFF
CMAKE_ARGS: -DBUILD_TESTING=OFF

View File

@ -39,17 +39,14 @@ find_package(KF5Kirigami2 ${KF5_MIN_VERSION} REQUIRED)
################ Find testing dependencies ##########
option(ENABLE_TESTING "Enable tests" ON)
if (ENABLE_TESTING)
enable_testing()
if (BUILD_TESTING)
find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED Test)
endif()
################# build and install #################
add_subdirectory(src)
if (ENABLE_TESTING)
if (BUILD_TESTING)
add_subdirectory(autotests)
endif()