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