CMakeLists.txt 680 B

12345678910111213141516171819202122
  1. cmake_minimum_required(VERSION 2.6)
  2. project(609_Boolean)
  3. find_package(CGAL REQUIRED)
  4. include(${CGAL_USE_FILE})
  5. # CGAL's monkeying with all of the flags. Rather than change the CGAL_USE_FILE
  6. # just get ride of this flag.
  7. remove_cxx_flag("-stdlib=libc++")
  8. # This is absolutely necessary for Exact Construction
  9. # for some reason must come after cgal include. I think that it's overwriting
  10. # come flags like CXX_FLAGS
  11. set(CMAKELISTS_SHARED_INCLUDED FALSE)
  12. include("../CMakeLists.shared")
  13. set(SOURCES
  14. ${PROJECT_SOURCE_DIR}/main.cpp
  15. )
  16. add_executable(${PROJECT_NAME}_bin ${SOURCES} ${SHARED_SOURCES})
  17. target_link_libraries(${PROJECT_NAME}_bin ${SHARED_LIBRARIES} ${CGAL_LIBRARIES})