diff --git a/contributors.txt b/contributors.txt index d475526d3..fdc21aa6f 100644 --- a/contributors.txt +++ b/contributors.txt @@ -291,4 +291,5 @@ YYYY/MM/DD, github id, Full name, email 2021/02/27, khmarbaise, Karl Heinz Marbaise, github@soebes.com 2021/03/02, hackeris 2021/03/03, xTachyon, Damian Andrei, xTachyon@users.noreply.github.com -2021/04/07, b1f6c1c4, Jinzheng Tu, b1f6c1c4@gmail.com +2021/04/08, bigerl, Alexander Bigerl, bigerl@mail.upb.de +2021/04/07, b1f6c1c4, Jinzheng Tu, b1f6c1c4@gmail.com \ No newline at end of file diff --git a/runtime/Cpp/runtime/CMakeLists.txt b/runtime/Cpp/runtime/CMakeLists.txt index 89515a0b4..78fbf7d25 100644 --- a/runtime/Cpp/runtime/CMakeLists.txt +++ b/runtime/Cpp/runtime/CMakeLists.txt @@ -1,3 +1,16 @@ +include(${CMAKE_ROOT}/Modules/ExternalProject.cmake) + +set(THIRDPARTY_DIR ${CMAKE_BINARY_DIR}/runtime/thirdparty) +set(UTFCPP_DIR ${THIRDPARTY_DIR}/utfcpp) +ExternalProject_Add( + utfcpp + GIT_REPOSITORY "git://github.com/nemtrif/utfcpp" + GIT_TAG "v3.1.1" + SOURCE_DIR ${UTFCPP_DIR} + UPDATE_DISCONNECTED 1 + CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${UTFCPP_DIR}/install -DUTF8_TESTS=off -DUTF8_SAMPLES=off + STEP_TARGETS build) + include_directories( ${PROJECT_SOURCE_DIR}/runtime/src ${PROJECT_SOURCE_DIR}/runtime/src/atn