Commit 3373cff2 authored by Volker Krause's avatar Volker Krause
Browse files

Build more stuff if KF5::WidgetAddons isn't present

parent 61ff2a3c
......@@ -159,7 +159,7 @@ configure_file(config-userfeedback-version.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/c
#
add_subdirectory(provider)
add_subdirectory(server)
if(Qt5Charts_FOUND AND KF5WidgetsAddons_FOUND AND NOT CMAKE_VERSION VERSION_LESS 3.0) # analyzer is Qt5 only and needs AUTOUIC support
if(Qt5Charts_FOUND AND NOT CMAKE_VERSION VERSION_LESS 3.0) # analyzer is Qt5 only and needs AUTOUIC support
add_subdirectory(analyzer)
add_subdirectory(tests/manual)
endif()
......
......@@ -35,6 +35,10 @@ target_link_libraries(UserFeedbackAnalyzer Qt5::Network)
target_include_directories(UserFeedbackAnalyzer PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR};>")
target_compile_features(UserFeedbackAnalyzer PRIVATE cxx_generic_lambdas)
if(NOT TARGET UserFeedbackWidgets)
return()
endif()
set(analyzer_srcs
connectdialog.cpp
main.cpp
......
include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR}/provider/core)
add_executable(orwell orwell.cpp)
target_link_libraries(orwell UserFeedbackWidgets ${QT_QTGUI_LIBRARIES})
if(TARGET UserFeedbackWidgets)
add_executable(orwell orwell.cpp)
target_link_libraries(orwell UserFeedbackWidgets ${QT_QTGUI_LIBRARIES})
endif()
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