Olm.cmake (597B)
1 include(ExternalProject) 2 3 # 4 # Build & install olm. 5 # 6 7 set(THIRD_PARTY_ROOT ${CMAKE_SOURCE_DIR}/.third-party/mtxclient/.third-party) 8 set(OLM_ROOT ${THIRD_PARTY_ROOT}/olm) 9 10 ExternalProject_Add( 11 Olm 12 13 GIT_REPOSITORY https://git.matrix.org/git/olm.git 14 GIT_TAG 3f5b9dd6d72540a66da90b382a2eda088af63da0 15 16 BUILD_IN_SOURCE 1 17 SOURCE_DIR ${OLM_ROOT} 18 CONFIGURE_COMMAND "" 19 BUILD_COMMAND make static 20 INSTALL_COMMAND "" 21 ) 22 23 include_directories(SYSTEM ${OLM_ROOT}/include ${OLM_ROOT}/include/olm) 24 link_directories(${OLM_ROOT}/build)