Skip to content

Commit

Permalink
Fix quazip issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
Forkk committed Apr 1, 2013
1 parent ebb2c54 commit 276cfb1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 6 additions & 2 deletions CMakeLists.txt
Expand Up @@ -47,7 +47,7 @@ find_package(ZLIB REQUIRED)

# Add quazip
add_subdirectory(quazip)
include_directories(quazip)
include_directories(quazip ${ZLIB_INCLUDE_DIRS})

# Add bspatch
add_subdirectory(patchlib)
Expand Down Expand Up @@ -157,6 +157,10 @@ configure_file("${PROJECT_SOURCE_DIR}/config.h.in"
"${PROJECT_BINARY_DIR}/include/config.h")


######## Other Stuff ########

ADD_DEFINITIONS(-DQUAZIP_STATIC)

################################ FILES ################################

######## Headers ########
Expand Down Expand Up @@ -260,7 +264,7 @@ ADD_EXECUTABLE(MultiMC MACOSX_BUNDLE WIN32

# Link
QT5_USE_MODULES(MultiMC Widgets Network WebKitWidgets)
TARGET_LINK_LIBRARIES(MultiMC quazip patchlib
TARGET_LINK_LIBRARIES(MultiMC quazip patchlib
libUtil libSettings libMultiMC libGroupView
${MultiMC_LINK_ADDITIONAL_LIBS})
ADD_DEPENDENCIES(MultiMC MultiMCLauncher libUtil libSettings libMultiMC libGroupView)
Expand Down
6 changes: 4 additions & 2 deletions quazip/CMakeLists.txt
@@ -1,3 +1,5 @@
project(quazip)

# set all include directories for in and out of source builds
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
Expand All @@ -11,8 +13,8 @@ include_directories(
file(GLOB SRCS "*.c" "*.cpp")
file(GLOB PUBLIC_HEADERS "*.h")

# Must be added to enable export macro
ADD_DEFINITIONS(-DQUAZIP_BUILD)
# Static link!
ADD_DEFINITIONS(-DQUAZIP_STATIC)

#qt5_wrap_cpp(MOC_SRCS ${PUBLIC_HEADERS})
#set(SRCS ${SRCS} ${MOC_SRCS})
Expand Down

0 comments on commit 276cfb1

Please sign in to comment.