mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-10-31 10:00:46 +03:00
23 lines
465 B
CMake
23 lines
465 B
CMake
|
if(MSVC)
|
||
|
set(MAKE_CMD "mingw32-make.exe")
|
||
|
else()
|
||
|
set(MAKE_CMD "make")
|
||
|
endif()
|
||
|
|
||
|
ExternalProject_Add(
|
||
|
Olm
|
||
|
|
||
|
GIT_REPOSITORY ${OLM_URL}
|
||
|
GIT_TAG ${OLM_TAG}
|
||
|
|
||
|
BUILD_IN_SOURCE 1
|
||
|
SOURCE_DIR ${DEPS_BUILD_DIR}/olm
|
||
|
CONFIGURE_COMMAND ""
|
||
|
BUILD_COMMAND ${MAKE_CMD} static
|
||
|
INSTALL_COMMAND
|
||
|
cp -R ${DEPS_BUILD_DIR}/olm/include ${DEPS_INSTALL_DIR} &&
|
||
|
cp ${DEPS_BUILD_DIR}/olm/build/libolm.a ${DEPS_INSTALL_DIR}/lib
|
||
|
)
|
||
|
|
||
|
list(APPEND THIRD_PARTY_DEPS Olm)
|