Link ZLIB to library (required for shared libraries)

This commit is contained in:
Alex Huszagh 2017-10-17 20:18:33 -07:00
parent 801daf7868
commit bf6e50d6b2

View File

@ -143,6 +143,8 @@ else()
add_library(${PROJECT_NAME} SHARED ${LXW_SOURCES}) add_library(${PROJECT_NAME} SHARED ${LXW_SOURCES})
endif() endif()
target_link_libraries(${PROJECT_NAME} ${ZLIB_LIBRARIES})
if(MSVC) if(MSVC)
add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E rename COMMAND ${CMAKE_COMMAND} -E rename