Link zlib on non-Windows platforms

This commit is contained in:
Luke Street 2020-06-24 12:04:17 -04:00
parent af64349044
commit 61dbc1628e
1 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,9 @@ list(REMOVE_ITEM QUAZIP_SRCS
) )
if (NOT MSVC) if (NOT MSVC)
set_source_files_properties(${QUAZIP_SRCS} PROPERTIES COMPILE_OPTIONS -Wno-deprecated-declarations) set_source_files_properties(${QUAZIP_SRCS} PROPERTIES COMPILE_OPTIONS -Wno-deprecated-declarations)
set(QUAZIP_LIBS ${ZLIB_LIBRARIES})
else()
set(QUAZIP_LIBS "")
endif() endif()
add_executable(hecl-gui WIN32 MACOSX_BUNDLE add_executable(hecl-gui WIN32 MACOSX_BUNDLE
@ -79,6 +82,7 @@ target_link_libraries(hecl-gui PRIVATE
hecl-light hecl-light
zeus zeus
${QUAZIP_LIBS}
) )
target_include_directories(hecl-gui PRIVATE quazip/quazip) target_include_directories(hecl-gui PRIVATE quazip/quazip)