2017-11-10 20:13:20 +05:00
|
|
|
if(WIN32)
|
|
|
|
|
|
|
|
ExternalProject_Add(project_win_zlib
|
|
|
|
URL ${ZLIB_DOWNLOAD_URL_WIN}
|
|
|
|
UPDATE_COMMAND "" # Disable update
|
|
|
|
BUILD_IN_SOURCE 1
|
|
|
|
CONFIGURE_COMMAND ""
|
|
|
|
BUILD_COMMAND ""
|
2023-06-23 15:03:14 +05:00
|
|
|
INSTALL_COMMAND ${CMAKE_COMMAND} -E copy_directory lib ${CMAKE_INSTALL_PREFIX}/${NG_INSTALL_DIR_LIB}
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy_directory bin ${CMAKE_INSTALL_PREFIX}/${NG_INSTALL_DIR_BIN}
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy_directory include ${CMAKE_INSTALL_PREFIX}/${NG_INSTALL_DIR_INCLUDE}
|
2017-11-10 20:13:20 +05:00
|
|
|
LOG_DOWNLOAD 1
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
list(APPEND NETGEN_DEPENDENCIES project_win_zlib)
|
|
|
|
endif(WIN32)
|
|
|
|
|