summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-03-16 08:43:00 +0100
committerPetr Mrázek <peterix@gmail.com>2015-03-16 08:43:00 +0100
commit405833bbbe943e3bb9180af088913ce0d0d1f878 (patch)
tree00c5ba7617d110ce131fc1ee81ef04323303c8da /CMakeLists.txt
parent8be865fb2ab9370798f630e104158f1351adcaa8 (diff)
downloadMultiMC-405833bbbe943e3bb9180af088913ce0d0d1f878.tar
MultiMC-405833bbbe943e3bb9180af088913ce0d0d1f878.tar.gz
MultiMC-405833bbbe943e3bb9180af088913ce0d0d1f878.tar.lz
MultiMC-405833bbbe943e3bb9180af088913ce0d0d1f878.tar.xz
MultiMC-405833bbbe943e3bb9180af088913ce0d0d1f878.zip
NOISSUE eliminate qt5_use_modules from build
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt15
1 files changed, 11 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4f283e35..19ff7905 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -711,7 +711,8 @@ endif()
####### X11 Stuff #######
if(UNIX AND NOT APPLE)
- set(MultiMC_QT_ADDITIONAL_MODULES ${MultiMC_QT_ADDITIONAL_MODULES} X11Extras)
+ find_package(Qt5X11Extras REQUIRED)
+ set(MultiMC_LINK_ADDITIONAL_LIBS ${MultiMC_LINK_ADDITIONAL_LIBS} Qt5::X11Extras)
set(MultiMC_LINK_ADDITIONAL_LIBS ${MultiMC_LINK_ADDITIONAL_LIBS} xcb)
list(APPEND MULTIMC_SOURCES gui/Platform_X11.cpp)
else()
@@ -742,9 +743,15 @@ add_executable(MultiMC MACOSX_BUNDLE WIN32 main.cpp ${MULTIMC_RCS})
# Link
target_link_libraries(MultiMC MultiMC_common)
-target_link_libraries(MultiMC_common xz-embedded unpack200 iconfix libUtil LogicalGui ${QUAZIP_LIBRARIES} Qt5::Core ${MultiMC_LINK_ADDITIONAL_LIBS})
-qt5_use_modules(MultiMC Core Widgets Network Xml Concurrent WebKitWidgets ${MultiMC_QT_ADDITIONAL_MODULES})
-qt5_use_modules(MultiMC_common Core Widgets Network Xml Concurrent WebKitWidgets ${MultiMC_QT_ADDITIONAL_MODULES})
+
+target_link_libraries(MultiMC_common xz-embedded unpack200 iconfix libUtil LogicalGui
+ ${QUAZIP_LIBRARIES} Qt5::Core Qt5::Xml Qt5::Widgets Qt5::Network Qt5::Concurrent Qt5::WebKitWidgets
+ ${MultiMC_LINK_ADDITIONAL_LIBS}
+)
+
+target_link_libraries(MultiMC_common Qt5::Core Qt5::Widgets Qt5::Network Qt5::Concurrent Qt5::WebKitWidgets
+ ${MultiMC_LINK_ADDITIONAL_LIBS}
+)
add_dependencies(MultiMC_common QuaZIP)