CMakeLists.txt 617 B

12345678910111213141516171819202122232425262728
  1. cmake_minimum_required(VERSION 3.1)
  2. project(path-morphing)
  3. set(CMAKE_CXX_STANDARD 14) # 17 is not supported by cmake 3.7
  4. # set(CMAKE_CXX_STANDARD_REQUIRED ON)
  5. include(FindPkgConfig)
  6. pkg_check_modules(LIB2GEOM REQUIRED 2geom)
  7. find_package(FMT REQUIRED)
  8. set(CATCH_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/catch/" CACHE STRING "Path to Catch header library")
  9. enable_testing()
  10. include_directories("${CMAKE_CURRENT_SOURCE_DIR}/include")
  11. add_subdirectory(geom_helpers)
  12. add_subdirectory(morphing)
  13. add_subdirectory(tests)
  14. add_subdirectory(demos)
  15. install(
  16. DIRECTORY include/
  17. DESTINATION include
  18. )