[lodepng] fix build on windows

This commit is contained in:
kiwixz 2018-08-10 04:40:09 +02:00
parent 08f5d7b65c
commit 2c4db1a7d8

View File

@ -14,9 +14,9 @@ include_directories(".")
add_library(lodepng lodepng.cpp lodepng_util.cpp) add_library(lodepng lodepng.cpp lodepng_util.cpp)
add_executable(pngdetail pngdetail.cpp) # add_executable(pngdetail pngdetail.cpp)
target_link_libraries(pngdetail lodepng) # target_link_libraries(pngdetail lodepng)
install( install(
TARGETS lodepng TARGETS lodepng
@ -25,12 +25,12 @@ install(
ARCHIVE DESTINATION lib ARCHIVE DESTINATION lib
) )
if(NOT DISABLE_INSTALL_TOOLS) # if(NOT DISABLE_INSTALL_TOOLS)
install ( # install (
TARGETS pngdetail # TARGETS pngdetail
RUNTIME DESTINATION tools/lodepng # RUNTIME DESTINATION tools/lodepng
) # )
endif() # endif()
if(NOT DDISABLE_INSTALL_EXAMPLES) if(NOT DDISABLE_INSTALL_EXAMPLES)
install(DIRECTORY examples DESTINATION share/lodepng/) install(DIRECTORY examples DESTINATION share/lodepng/)