CMakeLists.txt 815 B

12345678910111213141516171819202122232425262728
  1. # This file is part of libigl, a simple c++ geometry processing library.
  2. #
  3. # Copyright (C) 2015 Qingnan Zhou <qnzhou@gmail.com>
  4. #
  5. # This Source Code Form is subject to the terms of the Mozilla Public License
  6. # v. 2.0. If a copy of the MPL was not distributed with this file, You can
  7. # obtain one at http://mozilla.org/MPL/2.0/.
  8. #
  9. # This file is based on PyMesh's unit test setup.
  10. CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
  11. # Set compiler
  12. IF(APPLE)
  13. SET(CMAKE_C_COMPILER "clang")
  14. SET(CMAKE_CXX_COMPILER "clang++")
  15. ELSEIF(UNIX)
  16. SET(CMAKE_C_COMPILER "gcc")
  17. SET(CMAKE_CXX_COMPILER "g++")
  18. ELSEIF(WIN32)
  19. # TODO: not how the code would work on Windows.
  20. ENDIF()
  21. PROJECT(libigl_unit_tests)
  22. INCLUDE(Settings.cmake)
  23. # Process code in each subdirectories
  24. ADD_SUBDIRECTORY(${PROJECT_SOURCE_DIR}/include/igl)