X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2FCMakeLists.txt;h=f60da4297563b16a2cfb14a6c429c8be2b4f9da4;hb=be7f9fcb48b8587e59aefb26cec1caf3fcb95da2;hp=1b4f1769c0c77ebe308b209efc0debc33a885b23;hpb=0de0a17782cf478d638a532f36898197af88e0bc;p=quassel.git diff --git a/src/uisupport/CMakeLists.txt b/src/uisupport/CMakeLists.txt index 1b4f1769..f60da429 100644 --- a/src/uisupport/CMakeLists.txt +++ b/src/uisupport/CMakeLists.txt @@ -1,11 +1,5 @@ # Builds the uisupport module -if(WITH_QT5) - setup_qt_variables(Widgets Network) -else(WITH_QT5) - setup_qt_variables(Gui Network) -endif(WITH_QT5) - set(SOURCES abstractbuffercontainer.cpp abstractitemview.cpp @@ -48,12 +42,17 @@ endif(HAVE_KDE) include_directories(${CMAKE_SOURCE_DIR}/src/common ${CMAKE_SOURCE_DIR}/src/client - ${QUASSEL_QT_INCLUDES}) +) if(HAVE_QCA2) include_directories(${QCA2_INCLUDE_DIR}) endif(HAVE_QCA2) +if (USE_QT5) + list(APPEND qt_modules Widgets) +endif() + add_library(mod_uisupport STATIC ${SOURCES}) +qt_use_modules(mod_uisupport Core Gui Network ${qt_modules}) + add_dependencies(mod_uisupport mod_common mod_client) -set_target_properties(mod_uisupport PROPERTIES COMPILE_FLAGS "${QUASSEL_QT_COMPILEFLAGS}")