CMakeLists.txt 738 B

123456789101112131415161718192021222324
  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. if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
  8. remove_cxx_flag("-stdlib=libc++")
  9. endif()
  10. # This is absolutely necessary for Exact Construction
  11. # for some reason must come after cgal include. I think that it's overwriting
  12. # come flags like CXX_FLAGS
  13. #set(CMAKELISTS_SHARED_INCLUDED FALSE)
  14. include("../CMakeLists.shared")
  15. set(SOURCES
  16. ${PROJECT_SOURCE_DIR}/main.cpp
  17. )
  18. add_executable(${PROJECT_NAME}_bin ${SOURCES} ${SHARED_SOURCES})
  19. target_link_libraries(${PROJECT_NAME}_bin ${SHARED_LIBRARIES} ${CGAL_LIBRARIES})