Top level CMakeLists.txt for CGAL-branchbuild
message( “== CMake setup ==” )
project(CGAL CXX C)
Minimal version of CMake:
if(WIN32)
cmake_minimum_required(VERSION 2.8.6)
else()
cmake_minimum_required(VERSION 2.6.2)
endif()
option for branch build
option( CGAL_BRANCH_BUILD “Create CGAL from branch” ON)
mark_as_advanced( CGAL_BRANCH_BUILD )
include(${CMAKE_SOURCE_DIR}/Installation/cmake/modules/CGAL_SCM.cmake)
add option for duplicate file detection
option( CGAL_REPORT_DUPLICATE_FILES “Switch on to start (naive) detection of duplicate source- and headerfiles in packages” OFF)
message( “== CMake setup (DONE) ==\n” )
and finally start actual build
add_subdirectory( Installation )
for releases, where dont_submit is honored
if(IS_DIRECTORY “ C M A K E C U R R E N T S O U R C E D I R / D o c u m e n t a t i o n " ) o p t i o n ( B U I L D D O C " B u i l d t h e d o x y g e n d o c u m e n t a t i o n " O F F ) i f ( B U I L D D O C ) a d d s u b d i r e c t o r y ( " {CMAKE_CURRENT_SOURCE_DIR}/Documentation") option(BUILD_DOC "Build the doxygen documentation" OFF) if (BUILD_DOC) add_subdirectory( " CMAKECURRENTSOURCEDIR/Documentation")option(BUILDDOC"Buildthedoxygendocumentation"OFF)if(BUILDDOC)addsubdirectory("{CMAKE_CURRENT_SOURCE_DIR}/Documentation” )
endif(BUILD_DOC)
endif()
set(CMAKE_CXX_FLAGS_RELEASE “ C M A K E C X X F L A G S R E L E A S E / M T " ) s e t ( C M A K E C X X F L A G S D E B U G " {CMAKE_CXX_FLAGS_RELEASE} /MT") set(CMAKE_CXX_FLAGS_DEBUG " CMAKECXXFLAGSRELEASE/MT")set(CMAKECXXFLAGSDEBUG"{CMAKE_CXX_FLAGS_DEBUG} /MTd”)
#set(BOOST_ROOT “E:\Cgal\cmake\boost_1_55_0\boost_1_55_0”)