Merge pull request #128 from Alexhuszagh/master

MSVC and Shared Linkage Bug Fixes
This commit is contained in:
John McNamara 2017-10-18 22:32:07 +01:00 committed by GitHub
commit c9585ed773

View file

@ -143,6 +143,8 @@ else()
add_library(${PROJECT_NAME} SHARED ${LXW_SOURCES})
endif()
target_link_libraries(${PROJECT_NAME} ${ZLIB_LIBRARIES})
if(MSVC)
add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E rename
@ -223,6 +225,10 @@ if (BUILD_TESTS)
#endforeach(source)
endif()
if(MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
endif()
# EXAMPLES
# --------