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