2018-06-17 00:23:49 +03:00
|
|
|
set(WINDOWS_FLAGS "")
|
|
|
|
|
|
|
|
if(MSVC)
|
|
|
|
set(WINDOWS_FLAGS "-DCMAKE_GENERATOR_PLATFORM=x64")
|
|
|
|
endif()
|
|
|
|
|
2018-06-04 13:54:51 +03:00
|
|
|
ExternalProject_Add(
|
|
|
|
Olm
|
|
|
|
|
|
|
|
GIT_REPOSITORY ${OLM_URL}
|
|
|
|
GIT_TAG ${OLM_TAG}
|
|
|
|
|
|
|
|
BUILD_IN_SOURCE 1
|
|
|
|
SOURCE_DIR ${DEPS_BUILD_DIR}/olm
|
2018-06-14 02:28:35 +03:00
|
|
|
CONFIGURE_COMMAND ${CMAKE_COMMAND} -E copy
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/cmake/OlmCMakeLists.txt
|
|
|
|
${DEPS_BUILD_DIR}/olm/CMakeLists.txt
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/cmake/OlmConfig.cmake.in
|
|
|
|
${DEPS_BUILD_DIR}/olm/cmake/OlmConfig.cmake.in
|
|
|
|
COMMAND ${CMAKE_COMMAND}
|
|
|
|
-DCMAKE_INSTALL_PREFIX=${DEPS_INSTALL_DIR}
|
|
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
|
|
${DEPS_BUILD_DIR}/olm
|
2018-06-17 00:23:49 +03:00
|
|
|
${WINDOWS_FLAGS}
|
2018-06-14 02:28:35 +03:00
|
|
|
BUILD_COMMAND ${CMAKE_COMMAND}
|
|
|
|
--build ${DEPS_BUILD_DIR}/olm
|
2018-06-14 09:36:41 +03:00
|
|
|
--config Release
|
|
|
|
INSTALL_COMMAND ${CMAKE_COMMAND}
|
|
|
|
--build ${DEPS_BUILD_DIR}/olm
|
2018-06-17 00:23:49 +03:00
|
|
|
--config Release
|
2018-06-14 09:36:41 +03:00
|
|
|
--target install)
|
2018-06-04 13:54:51 +03:00
|
|
|
|
|
|
|
list(APPEND THIRD_PARTY_DEPS Olm)
|