libigl.cmake 684 B

123456789101112131415
  1. # Sanity check for backward compatibility
  2. get_filename_component(PATH_X "${libigl_SOURCE_DIR}" REALPATH)
  3. get_filename_component(PATH_Y "${CMAKE_CURRENT_LIST_DIR}/.." REALPATH)
  4. if(NOT PATH_X STREQUAL PATH_Y)
  5. message(FATAL_ERROR "You included libigl.cmake directly from your own project. This behavior "
  6. "is not supported anymore. Please add libigl to your project via "
  7. "add_subdirectory(<path_to_libigl>). See the libigl example project for "
  8. "more information: https://github.com/libigl/libigl-example-project/")
  9. endif()
  10. # Global options
  11. include(igl_windows)
  12. # Libigl permissive modules
  13. igl_include(core)