2018-06-04 13:54:51 +03:00
|
|
|
set(WINDOWS_FLAGS "")
|
|
|
|
|
|
|
|
if(MSVC)
|
|
|
|
set(WINDOWS_FLAGS "-DCMAKE_GENERATOR_PLATFORM=x64")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
ExternalProject_Add(
|
|
|
|
MatrixStructs
|
|
|
|
|
2018-08-08 14:15:14 +03:00
|
|
|
URL ${MATRIX_STRUCTS_URL}
|
|
|
|
URL_HASH SHA256=${MATRIX_STRUCTS_HASH}
|
2018-06-04 13:54:51 +03:00
|
|
|
|
|
|
|
BUILD_IN_SOURCE 1
|
|
|
|
SOURCE_DIR ${DEPS_BUILD_DIR}/matrix_structs
|
|
|
|
CONFIGURE_COMMAND ${CMAKE_COMMAND}
|
|
|
|
-DCMAKE_INSTALL_PREFIX=${DEPS_INSTALL_DIR}
|
|
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
|
|
${DEPS_BUILD_DIR}/matrix_structs
|
|
|
|
${WINDOWS_FLAGS}
|
|
|
|
BUILD_COMMAND ${CMAKE_COMMAND}
|
|
|
|
--build ${DEPS_BUILD_DIR}/matrix_structs
|
|
|
|
--config Release)
|
|
|
|
|
|
|
|
list(APPEND THIRD_PARTY_DEPS MatrixStructs)
|