Qhull.cmake 682 B

12345678910111213141516171819
  1. include(GNUInstallDirs)
  2. set(_qhull_static_libs "-DBUILD_STATIC_LIBS:BOOL=ON")
  3. set(_qhull_shared_libs "-DBUILD_SHARED_LIBS:BOOL=OFF")
  4. if (BUILD_SHARED_LIBS)
  5. set(_qhull_static_libs "-DBUILD_STATIC_LIBS:BOOL=OFF")
  6. set(_qhull_shared_libs "-DBUILD_SHARED_LIBS:BOOL=ON")
  7. endif ()
  8. add_cmake_project(Qhull
  9. URL "https://github.com/qhull/qhull/archive/refs/tags/v8.1-alpha3.zip"
  10. URL_HASH SHA256=7bd9b5ffae01e69c2ead52f9a9b688af6c65f9a1da05da0a170fa20d81404c06
  11. CMAKE_ARGS
  12. -DINCLUDE_INSTALL_DIR=${CMAKE_INSTALL_INCLUDEDIR}
  13. -DBUILD_APPLICATIONS:BOOL=OFF
  14. ${_qhull_shared_libs}
  15. ${_qhull_static_libs}
  16. -DQHULL_ENABLE_TESTING:BOOL=OFF
  17. )