mirror of https://github.com/CGAL/cgal
24 lines
638 B
CMake
24 lines
638 B
CMake
add_subdirectory(CGAL)
|
|
|
|
create_CGALconfig_files()
|
|
|
|
set(CGAL_DIR ${CMAKE_BINARY_DIR})
|
|
|
|
macro( configure_component DIR COMPONENT )
|
|
option( WITH_CGAL_${COMPONENT} "Enable CGAL component ${COMPONENT}" ON )
|
|
if ( WITH_CGAL_${COMPONENT})
|
|
add_subdirectory( ${DIR} )
|
|
endif()
|
|
endmacro()
|
|
|
|
if(NOT CGAL_NO_CORE)
|
|
configure_component( CGALCore Core )
|
|
else(NOT CGAL_NO_CORE)
|
|
message( STATUS "CGAL_Core needs GMP, cannot be configured.")
|
|
endif(NOT CGAL_NO_CORE)
|
|
|
|
configure_component( CGALimageIO ImageIO )
|
|
configure_component( CGALPDB PDB )
|
|
configure_component( CGALQt Qt3 )
|
|
configure_component( CGALQt4 Qt4 )
|