Commit f86f87e6 authored by Alexander Lohnau's avatar Alexander Lohnau 💬

Disable test dir based on BUILD_TESTING option

parent f442b33a
......@@ -10,7 +10,7 @@ set(KF5_MIN_VERSION "5.74")
find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Qml Quick Widgets Test)
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Qml Quick Widgets)
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS CoreAddons I18n Declarative ItemModels Service Plasma Runner)
include(FeatureSummary)
......
......@@ -39,4 +39,6 @@ install(TARGETS milou EXPORT MilouLibraryTargets ${KDE_INSTALL_TARGETS_DEFAULT_A
add_subdirectory(qml)
add_subdirectory(previews)
add_subdirectory(test)
if (BUILD_TESTING)
add_subdirectory(test)
endif()
find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Test)
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/..
)
......
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