Commit 8a274d01 authored by Laurent Montel's avatar Laurent Montel
Browse files

Use Qt:: directly

parent 79db3794
Pipeline #218909 passed with stage
in 4 minutes and 34 seconds
......@@ -3,12 +3,12 @@
add_definitions(-DSOURCE_DIR="${CMAKE_CURRENT_SOURCE_DIR}") # TODO use QFINDTESTDATA instead
ecm_add_test(parsertest.cpp LINK_LIBRARIES Qt${QT_MAJOR_VERSION}::Test KOpeningHours)
ecm_add_test(jsonldtest.cpp LINK_LIBRARIES Qt${QT_MAJOR_VERSION}::Test KOpeningHours)
ecm_add_test(parsertest.cpp LINK_LIBRARIES Qt::Test KOpeningHours)
ecm_add_test(jsonldtest.cpp LINK_LIBRARIES Qt::Test KOpeningHours)
if (NOT VALIDATOR_ONLY)
ecm_add_test(intervaltest.cpp LINK_LIBRARIES Qt${QT_MAJOR_VERSION}::Test KOpeningHours)
ecm_add_test(eastertest.cpp LINK_LIBRARIES Qt${QT_MAJOR_VERSION}::Test KOpeningHours)
ecm_add_test(evaluatetest.cpp LINK_LIBRARIES Qt${QT_MAJOR_VERSION}::Test KOpeningHours)
ecm_add_test(iterationtest.cpp LINK_LIBRARIES Qt${QT_MAJOR_VERSION}::Test KOpeningHours)
ecm_add_test(intervalmodeltest.cpp LINK_LIBRARIES Qt${QT_MAJOR_VERSION}::Test KOpeningHours)
ecm_add_test(intervaltest.cpp LINK_LIBRARIES Qt::Test KOpeningHours)
ecm_add_test(eastertest.cpp LINK_LIBRARIES Qt::Test KOpeningHours)
ecm_add_test(evaluatetest.cpp LINK_LIBRARIES Qt::Test KOpeningHours)
ecm_add_test(iterationtest.cpp LINK_LIBRARIES Qt::Test KOpeningHours)
ecm_add_test(intervalmodeltest.cpp LINK_LIBRARIES Qt::Test KOpeningHours)
endif()
......@@ -4,6 +4,6 @@
add_definitions(-DTRANSLATION_DOMAIN=\"kopeninghours\")
add_subdirectory(lib)
if (TARGET Qt${QT_MAJOR_VERSION}::Qml AND NOT VALIDATOR_ONLY)
if (TARGET Qt::Qml AND NOT VALIDATOR_ONLY)
add_subdirectory(qml)
endif()
......@@ -53,7 +53,7 @@ set_target_properties(KOpeningHours PROPERTIES
)
target_link_libraries(KOpeningHours
PUBLIC
Qt${QT_MAJOR_VERSION}::Core
Qt::Core
)
if (VALIDATOR_ONLY)
target_compile_definitions(KOpeningHours PUBLIC KOPENINGHOURS_VALIDATOR_ONLY)
......
......@@ -3,7 +3,7 @@
add_library(kopeninghoursqmlplugin kopeninghoursqmlplugin.cpp)
target_link_libraries(kopeninghoursqmlplugin
Qt${QT_MAJOR_VERSION}::Qml
Qt::Qml
KOpeningHours
)
......
Supports Markdown
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