summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-05-02 01:14:35 +0200
committerPetr Mrázek <peterix@gmail.com>2015-05-02 01:43:00 +0200
commit32f45578fd7f152f3132c8891195c6d5c5c52be3 (patch)
treeed7d1110517ad4c9eefc69e09fc64f6e776e41a8
parent2af03ba0d90a71a7bd1c9a0e2423d853aa3654e3 (diff)
downloadMultiMC-32f45578fd7f152f3132c8891195c6d5c5c52be3.tar
MultiMC-32f45578fd7f152f3132c8891195c6d5c5c52be3.tar.gz
MultiMC-32f45578fd7f152f3132c8891195c6d5c5c52be3.tar.lz
MultiMC-32f45578fd7f152f3132c8891195c6d5c5c52be3.tar.xz
MultiMC-32f45578fd7f152f3132c8891195c6d5c5c52be3.zip
NOISSUE fix build issues
Hopefully all
-rw-r--r--CMakeLists.txt7
-rw-r--r--application/CMakeLists.txt2
-rw-r--r--logic/CMakeLists.txt2
3 files changed, 8 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ca94a98f..a21f23c3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -49,7 +49,6 @@ find_package(Qt5Concurrent REQUIRED)
find_package(Qt5Network REQUIRED)
find_package(Qt5Test REQUIRED)
find_package(Qt5Xml REQUIRED)
-find_package(Qt5WebKitWidgets REQUIRED)
include_directories(
${Qt5Core_INCLUDE_DIRS}
@@ -87,7 +86,13 @@ ExternalProject_Add(QuaZIP
CMAKE_ARGS -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} -DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS} -DCMAKE_CXX_FLAGS_DEBUG=${CMAKE_CXX_FLAGS_DEBUG} -DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH} -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
)
include_directories("${CMAKE_BINARY_DIR}/External/Install/QuaZIP/include/quazip")
+if(UNIX)
+set(QUAZIP_LIBRARIES -L"${CMAKE_BINARY_DIR}/External/Install/QuaZIP/lib" quazip z)
+else()
set(QUAZIP_LIBRARIES -L"${CMAKE_BINARY_DIR}/External/Install/QuaZIP/lib" quazip)
+endif()
+
+
# Add the java launcher and checker
add_subdirectory(depends/launcher)
diff --git a/application/CMakeLists.txt b/application/CMakeLists.txt
index 31b0e62c..2518e52e 100644
--- a/application/CMakeLists.txt
+++ b/application/CMakeLists.txt
@@ -345,7 +345,7 @@ qt5_add_resources(MULTIMC_RESOURCES ${MULTIMC_QRCS})
# Add executable
add_executable(MultiMC MACOSX_BUNDLE WIN32 ${MULTIMC_SOURCES} ${MULTIMC_UI} ${MULTIMC_RESOURCES} ${MULTIMC_RCS})
target_link_libraries(MultiMC MultiMC_logic xz-embedded unpack200 iconfix libUtil LogicalGui
- ${QUAZIP_LIBRARIES} Qt5::Core Qt5::Xml Qt5::Widgets Qt5::Network Qt5::Concurrent Qt5::WebKitWidgets
+ ${QUAZIP_LIBRARIES} Qt5::Core Qt5::Xml Qt5::Widgets Qt5::Network Qt5::Concurrent
${MultiMC_LINK_ADDITIONAL_LIBS})
################################ INSTALLATION AND PACKAGING ################################
diff --git a/logic/CMakeLists.txt b/logic/CMakeLists.txt
index 3cea50ab..f22078c1 100644
--- a/logic/CMakeLists.txt
+++ b/logic/CMakeLists.txt
@@ -255,7 +255,7 @@ add_library(MultiMC_logic STATIC ${LOGIC_SOURCES})
# Link
target_link_libraries(MultiMC_logic xz-embedded unpack200 iconfix libUtil LogicalGui ${QUAZIP_LIBRARIES}
- Qt5::Core Qt5::Xml Qt5::Widgets Qt5::Network Qt5::Concurrent Qt5::WebKitWidgets
+ Qt5::Core Qt5::Xml Qt5::Widgets Qt5::Network Qt5::Concurrent
${MultiMC_LINK_ADDITIONAL_LIBS})
add_dependencies(MultiMC_logic QuaZIP)