deps-unix-common.cmake 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # The unix common part expects DEP_CMAKE_OPTS to be set
  2. ExternalProject_Add(dep_tbb
  3. EXCLUDE_FROM_ALL 1
  4. URL "https://github.com/wjakob/tbb/archive/a0dc9bf76d0120f917b641ed095360448cabc85b.tar.gz"
  5. URL_HASH SHA256=0545cb6033bd1873fcae3ea304def720a380a88292726943ae3b9b207f322efe
  6. CMAKE_ARGS
  7. -DTBB_BUILD_SHARED=OFF
  8. -DTBB_BUILD_TESTS=OFF
  9. ${DEP_CMAKE_OPTS}
  10. INSTALL_COMMAND make install "DESTDIR=${DESTDIR}"
  11. )
  12. ExternalProject_Add(dep_gtest
  13. EXCLUDE_FROM_ALL 1
  14. URL "https://github.com/google/googletest/archive/release-1.8.1.tar.gz"
  15. URL_HASH SHA256=9bf1fe5182a604b4135edc1a425ae356c9ad15e9b23f9f12a02e80184c3a249c
  16. CMAKE_ARGS -DBUILD_GMOCK=OFF ${DEP_CMAKE_OPTS}
  17. INSTALL_COMMAND make install "DESTDIR=${DESTDIR}"
  18. )
  19. ExternalProject_Add(dep_nlopt
  20. EXCLUDE_FROM_ALL 1
  21. URL "https://github.com/stevengj/nlopt/archive/v2.5.0.tar.gz"
  22. URL_HASH SHA256=c6dd7a5701fff8ad5ebb45a3dc8e757e61d52658de3918e38bab233e7fd3b4ae
  23. CMAKE_GENERATOR "${DEP_MSVC_GEN}"
  24. CMAKE_ARGS
  25. -DBUILD_SHARED_LIBS=OFF
  26. -DNLOPT_PYTHON=OFF
  27. -DNLOPT_OCTAVE=OFF
  28. -DNLOPT_MATLAB=OFF
  29. -DNLOPT_GUILE=OFF
  30. ${DEP_CMAKE_OPTS}
  31. INSTALL_COMMAND make install "DESTDIR=${DESTDIR}"
  32. INSTALL_COMMAND ""
  33. )