Use KDE standard BUILD_TESTING option instead of custom ENABLE_TESTING one.
parent
70b50727c1
commit
00821e1982
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue