Mercurial > hg > orthanc
diff Resources/ThirdParty/icu/CMakeLists.txt @ 3251:fcfd4f73228c
using masm if compiling icu with Visual Studio
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 16 Feb 2019 14:28:53 +0100 |
parents | cf0ad1fb2bb7 |
children | 768c219e7b11 |
line wrap: on
line diff
--- a/Resources/ThirdParty/icu/CMakeLists.txt Sat Feb 16 11:38:54 2019 +0100 +++ b/Resources/ThirdParty/icu/CMakeLists.txt Sat Feb 16 14:28:53 2019 +0100 @@ -58,8 +58,11 @@ DEPENDS IcuCodeGeneration ) -message(${LIBICU_DATA}.gz) - +add_custom_command( + OUTPUT ${CMAKE_BINARY_DIR}/${LIBICU_MASM} + COMMAND IcuCodeGeneration ${CMAKE_BINARY_DIR}/${LIBICU_DATA_VERSION}.dat --assembly masm + DEPENDS IcuCodeGeneration + ) # "--no-name" is necessary for 7-zip on Windows to behave similarly to gunzip add_custom_command( @@ -68,10 +71,21 @@ DEPENDS ${LIBICU_DATA} ) -add_custom_target(Final ALL DEPENDS ${CMAKE_BINARY_DIR}/${LIBICU_DATA}.gz) +add_custom_command( + OUTPUT ${CMAKE_BINARY_DIR}/${LIBICU_MASM}.gz + COMMAND gzip ${CMAKE_BINARY_DIR}/${LIBICU_DATA_VERSION}_dat.S --no-name -c > ${CMAKE_BINARY_DIR}/${LIBICU_MASM}.gz + DEPENDS ${LIBICU_MASM} + ) + +add_custom_target(Final ALL DEPENDS + ${CMAKE_BINARY_DIR}/${LIBICU_DATA}.gz + ${CMAKE_BINARY_DIR}/${LIBICU_MASM}.gz + ) install( - FILES ${CMAKE_BINARY_DIR}/${LIBICU_DATA}.gz + FILES + ${CMAKE_BINARY_DIR}/${LIBICU_DATA}.gz + ${CMAKE_BINARY_DIR}/${LIBICU_MASM}.gz DESTINATION ${CMAKE_SOURCE_DIR}/../../../ThirdPartyDownloads )