2018-11-30 19:52:45 +00:00
|
|
|
|
|
|
|
|
|
# The unix common part expects DEP_CMAKE_OPTS to be set
|
|
|
|
|
|
|
|
|
|
ExternalProject_Add(dep_tbb
|
|
|
|
|
EXCLUDE_FROM_ALL 1
|
|
|
|
|
URL "https://github.com/wjakob/tbb/archive/a0dc9bf76d0120f917b641ed095360448cabc85b.tar.gz"
|
|
|
|
|
URL_HASH SHA256=0545cb6033bd1873fcae3ea304def720a380a88292726943ae3b9b207f322efe
|
|
|
|
|
CMAKE_ARGS
|
|
|
|
|
-DTBB_BUILD_SHARED=OFF
|
|
|
|
|
-DTBB_BUILD_TESTS=OFF
|
2019-03-19 14:02:50 +00:00
|
|
|
|
-DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr/local
|
2018-11-30 19:52:45 +00:00
|
|
|
|
${DEP_CMAKE_OPTS}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
ExternalProject_Add(dep_gtest
|
|
|
|
|
EXCLUDE_FROM_ALL 1
|
|
|
|
|
URL "https://github.com/google/googletest/archive/release-1.8.1.tar.gz"
|
|
|
|
|
URL_HASH SHA256=9bf1fe5182a604b4135edc1a425ae356c9ad15e9b23f9f12a02e80184c3a249c
|
2019-03-19 14:02:50 +00:00
|
|
|
|
CMAKE_ARGS -DBUILD_GMOCK=OFF ${DEP_CMAKE_OPTS} -DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr/local
|
2018-11-30 19:52:45 +00:00
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
ExternalProject_Add(dep_nlopt
|
|
|
|
|
EXCLUDE_FROM_ALL 1
|
|
|
|
|
URL "https://github.com/stevengj/nlopt/archive/v2.5.0.tar.gz"
|
|
|
|
|
URL_HASH SHA256=c6dd7a5701fff8ad5ebb45a3dc8e757e61d52658de3918e38bab233e7fd3b4ae
|
|
|
|
|
CMAKE_ARGS
|
2018-12-03 11:39:31 +00:00
|
|
|
|
-DBUILD_SHARED_LIBS=OFF
|
2018-11-30 19:52:45 +00:00
|
|
|
|
-DNLOPT_PYTHON=OFF
|
|
|
|
|
-DNLOPT_OCTAVE=OFF
|
|
|
|
|
-DNLOPT_MATLAB=OFF
|
|
|
|
|
-DNLOPT_GUILE=OFF
|
2019-03-19 14:02:50 +00:00
|
|
|
|
-DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr/local
|
2018-11-30 19:52:45 +00:00
|
|
|
|
${DEP_CMAKE_OPTS}
|
|
|
|
|
)
|
2019-06-05 17:19:49 +00:00
|
|
|
|
|
|
|
|
|
find_package(Git REQUIRED)
|
|
|
|
|
|
|
|
|
|
ExternalProject_Add(dep_qhull
|
|
|
|
|
EXCLUDE_FROM_ALL 1
|
|
|
|
|
URL "https://github.com/qhull/qhull/archive/v7.2.1.tar.gz"
|
|
|
|
|
URL_HASH SHA256=6fc251e0b75467e00943bfb7191e986fce0e1f8f6f0251f9c6ce5a843821ea78
|
|
|
|
|
CMAKE_ARGS
|
|
|
|
|
-DBUILD_SHARED_LIBS=OFF
|
|
|
|
|
-DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr/local
|
|
|
|
|
${DEP_CMAKE_OPTS}
|
|
|
|
|
PATCH_COMMAND ${GIT_EXECUTABLE} apply --ignore-space-change --ignore-whitespace ${CMAKE_CURRENT_SOURCE_DIR}/qhull-mods.patch
|
|
|
|
|
)
|