endif()
get_target_property(libname libzzip OUTPUT_NAME)
get_target_property(librelease libzzip RELEASE_POSTFIX)
+ set(libzzip_target "${lib}${libname}${dll}")
+ add_custom_command(OUTPUT ${libzzip_target}
+ COMMAND ${CMAKE_COMMAND} -E create_symlink $<TARGET_FILE_NAME:libzzip> ${libzzip_target}
+ )
add_custom_target(libzzip_latest ALL
- COMMAND ${CMAKE_COMMAND} -E create_symlink $<TARGET_FILE_NAME:libzzip> ${lib}${libname}${dll}
+ DEPENDS ${libzzip_target}
)
install(FILES
${outdir}/${lib}${libname}${dll}
if(ZZIPFSEEKO)
get_target_property(libname libzzipfseeko OUTPUT_NAME)
get_target_property(librelease libzzipfseeko RELEASE_POSTFIX)
+ set(libzzipfseeko_target "${lib}${libname}${dll}")
+ add_custom_command(OUTPUT ${libzzipfseeko_target}
+ COMMAND ${CMAKE_COMMAND} -E create_symlink $<TARGET_FILE_NAME:libzzipfseeko> ${libzzipfseeko_target}
+ )
add_custom_target(libzzipfseeko_latest ALL
- COMMAND ${CMAKE_COMMAND} -E create_symlink $<TARGET_FILE_NAME:libzzipfseeko> ${lib}${libname}${dll}
+ DEPENDS ${libzzipfseeko_target}
)
install(FILES
${outdir}/${lib}${libname}${dll}
if(ZZIPMMAPPED)
get_target_property(libname libzzipmmapped OUTPUT_NAME)
get_target_property(librelease libzzipmmapped RELEASE_POSTFIX)
+ set(libzzipmmapped_target "${lib}${libname}${dll}")
+ add_custom_command(OUTPUT ${libzzipmmapped_target}
+ COMMAND ${CMAKE_COMMAND} -E create_symlink $<TARGET_FILE_NAME:libzzipmmapped> ${libzzipmmapped_target}
+ )
add_custom_target(libzzipmmaped_latest ALL
- COMMAND ${CMAKE_COMMAND} -E create_symlink $<TARGET_FILE_NAME:libzzipmmapped> ${lib}${libname}${dll}
+ DEPENDS ${libzzipmmapped_target}
)
install(FILES
${outdir}/${lib}${libname}${dll}