Guest User

Untitled

a guest
Jan 22nd, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. project( arggh )
  2.  
  3. cmake_minimum_required (VERSION 3.2)
  4.  
  5. add_definitions(-std=c++11)
  6.  
  7. set(CMAKE_CXX_FLAGS "-O2")
  8.  
  9. set( CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true )
  10.  
  11. if ( COMMAND cmake_policy )
  12. cmake_policy( SET CMP0003 NEW )
  13. endif()
  14.  
  15. # CGAL
  16. find_package( CGAL QUIET COMPONENTS core )
  17. if ( CGAL_FOUND )
  18. include( ${CGAL_USE_FILE} )
  19. message(STATUS "CGAL found")
  20. message(STATUS ${CGAL_LIBRARIES})
  21. message(STATUS ${CGAL_3RD_PARTY_LIBRARIES})
  22. else()
  23. message(SEND_ERROR "arggh requires the CGAL library")
  24. return()
  25. endif()
  26.  
  27. # Eigen
  28. find_package(Eigen3)
  29. include( ${EIGEN3_USE_FILE} )
  30.  
  31. # Boost
  32. find_package( Boost REQUIRED COMPONENTS filesystem)
  33.  
  34. if ( NOT Boost_FOUND )
  35. message(SEND_ERROR "arggh requires the Boost library")
  36. return()
  37. endif()
  38.  
  39.  
  40. include_directories( ${GEOS_INCLUDE_DIR} )
  41.  
  42. add_executable(arggh plane.cpp)
  43.  
  44. target_link_libraries(arggh ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} ${GEOS_LIBRARY} ${Boost_FILESYSTEM_LIBRARY} )
  45.  
  46. install(TARGETS arggh DESTINATION bin)
Add Comment
Please, Sign In to add comment