Commit f581cf86 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix search Qt<version>

parent 78ac82be
Pipeline #133964 passed with stage
in 6 minutes and 34 seconds
......@@ -73,7 +73,7 @@ add_subdirectory( vcarddir )
add_subdirectory( icaldir )
add_subdirectory( vcard )
add_subdirectory( folderarchivesettings )
if (Qt5WebEngineWidgets_FOUND)
add_subdirectory( tomboynotes )
add_subdirectory( ews )
if (TARGET Qt${QT_MAJOR_VERSION}::WebEngineWidgets)
add_subdirectory( tomboynotes )
add_subdirectory( ews )
endif()
......@@ -92,7 +92,7 @@ set(EWSCLIENT_SRCS
)
if (Qt5NetworkAuth_FOUND)
if (TARGET Qt${QT_MAJOR_VERSION}::NetworkAuth)
list(APPEND EWSCLIENT_SRCS
auth/ewsoauth.cpp
auth/ewsoauth.h)
......@@ -148,7 +148,7 @@ target_link_libraries(ewsclient
KF5::Mime
KF5::CalendarCore)
if (Qt5NetworkAuth_FOUND)
if (TARGET Qt${QT_MAJOR_VERSION}::NetworkAuth)
target_link_libraries(ewsclient
Qt${QT_MAJOR_VERSION}::NetworkAuth
Qt${QT_MAJOR_VERSION}::WebEngineWidgets)
......
......@@ -38,7 +38,7 @@ target_link_libraries(ewssettings_ut
)
target_compile_definitions(ewssettings_ut PUBLIC -DEWSSETTINGS_UNITTEST)
if (Qt5NetworkAuth_FOUND)
if (TARGET Qt${QT_MAJOR_VERSION}::NetworkAuth)
set(ewsoauth_ut_SRCS
ewsoauth_ut_mock.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../../ewsclient/auth/ewsabstractauth.cpp
......
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