CMakeLists.txt 832 B

1234567891011121314151617181920212223242526
  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. # http://stackoverflow.com/a/18234926/148668
  8. macro(remove_cxx_flag flag)
  9. string(REPLACE "${flag}" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
  10. endmacro()
  11. remove_cxx_flag("-stdlib=libc++")
  12. # This is absolutely necessary for Exact Construction
  13. # for some reason must come after cgal include. I think that it's overwriting
  14. # come flags like CXX_FLAGS
  15. set(CMAKELISTS_SHARED_INCLUDED FALSE)
  16. include("../CMakeLists.shared")
  17. set(SOURCES
  18. ${PROJECT_SOURCE_DIR}/main.cpp
  19. )
  20. add_executable(${PROJECT_NAME}_bin ${SOURCES} ${SHARED_SOURCES})
  21. target_link_libraries(${PROJECT_NAME}_bin ${SHARED_LIBRARIES} ${CGAL_LIBRARIES})