CMakeLists.txt 546 B

12345678910111213141516
  1. cmake_minimum_required(VERSION 3.1)
  2. project(libigl)
  3. # These ensure that lib*.a are placed in the directory where `cmake
  4. # ../optional/` was issued.
  5. set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
  6. set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
  7. set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
  8. ### conditionally compile certain modules depending on libraries found on the system
  9. list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/cmake)
  10. ### Adding libIGL: choose the path to your local copy libIGL
  11. include(libigl)