mirror of https://github.com/CGAL/cgal
32 lines
792 B
CMake
32 lines
792 B
CMake
# This is the CMake script for compiling a CGAL application.
|
|
|
|
project( pdb )
|
|
|
|
CMAKE_MINIMUM_REQUIRED(VERSION 2.4.5)
|
|
|
|
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
|
|
|
|
find_package(CGAL REQUIRED PDB )
|
|
include( ${CGAL_USE_FILE} )
|
|
|
|
find_package ( Boost REQUIRED program_options )
|
|
|
|
if (CGAL_PDB_FOUND AND Boost_PROGRAM_OPTIONS_FOUND )
|
|
|
|
link_libraries(${Boost_PROGRAM_OPTIONS_LIBRARY})
|
|
|
|
include(CreateSingleSourceCGALProgram)
|
|
|
|
create_single_source_cgal_program( pdb_cat.cpp )
|
|
create_single_source_cgal_program( pdb_echo.cpp )
|
|
create_single_source_cgal_program( pdb_split.cpp )
|
|
create_single_source_cgal_program( pdb_transform.cpp )
|
|
create_single_source_cgal_program( pdb_tree.cpp )
|
|
|
|
|
|
else()
|
|
|
|
message(STATUS "NOTICE: This demo requires PDB and program options, and will not be compiled.")
|
|
|
|
endif()
|