CMakeLists.txt 855 B

12345678910111213141516171819202122
  1. cmake_minimum_required(VERSION 3.1)
  2. project(libigl)
  3. set (CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/../shared/cmake")
  4. # These ensure that lib*.a are placed in the directory where `cmake
  5. # ../optional/` was issued.
  6. set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
  7. set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
  8. set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
  9. ### conditionally compile certain modules depending on libraries found on the system
  10. list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/../shared/cmake)
  11. find_package(CGAL QUIET COMPONENTS Core)
  12. find_package(MATLAB QUIET)
  13. find_package(MOSEK)
  14. ### libIGL options: choose between header only and compiled static library
  15. option(LIBIGL_USE_STATIC_LIBRARY "Use LibIGL as static library" ON)
  16. ### Adding libIGL: choose the path to your local copy libIGL
  17. include(libigl)