mirror of https://github.com/CGAL/cgal
Merge pull request #4243 from maxGimeno/Cmake_improvements-maxGimeno
General CMake improvements
This commit is contained in:
commit
49e7ddccc9
|
|
@ -2,12 +2,9 @@
|
|||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.14)
|
||||
project( AABB_traits_benchmark )
|
||||
project(AABB_traits_benchmark)
|
||||
|
||||
find_package(CGAL REQUIRED QUIET OPTIONAL_COMPONENTS Core )
|
||||
|
||||
create_single_source_cgal_program( "test.cpp" )
|
||||
create_single_source_cgal_program( "tree_construction.cpp" )
|
||||
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Core)
|
||||
|
||||
# google benchmark
|
||||
find_package(benchmark)
|
||||
|
|
@ -16,3 +13,5 @@ if (benchmark_FOUND)
|
|||
create_single_source_cgal_program("tree_creation.cpp")
|
||||
target_link_libraries(tree_creation benchmark::benchmark)
|
||||
endif()
|
||||
create_single_source_cgal_program("test.cpp")
|
||||
create_single_source_cgal_program("tree_construction.cpp")
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
# This is the CMake script for compiling the AABB tree demo.
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( AABB_tree_Demo )
|
||||
project(AABB_tree_Demo)
|
||||
|
||||
# Find includes in corresponding build directories
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
|
|
@ -17,58 +17,56 @@ if(POLICY CMP0071)
|
|||
endif()
|
||||
|
||||
# Include this package's headers first
|
||||
include_directories( BEFORE ./ ./include )
|
||||
include_directories(BEFORE ./ ./include)
|
||||
|
||||
# Find CGAL and CGAL Qt5
|
||||
find_package(CGAL COMPONENTS Qt5)
|
||||
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt5)
|
||||
|
||||
# Find Qt5 itself
|
||||
find_package(Qt5 QUIET COMPONENTS Xml Script OpenGL Gui Svg)
|
||||
|
||||
if(CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||
if(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||
|
||||
qt5_wrap_ui( UI_FILES MainWindow.ui )
|
||||
qt5_wrap_ui(UI_FILES MainWindow.ui)
|
||||
|
||||
include(AddFileDependencies)
|
||||
|
||||
qt5_generate_moc( "MainWindow.h" "${CMAKE_CURRENT_BINARY_DIR}/MainWindow_moc.cpp" )
|
||||
add_file_dependencies( MainWindow_moc.cpp "${CMAKE_CURRENT_SOURCE_DIR}/MainWindow.h" )
|
||||
qt5_generate_moc("MainWindow.h"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/MainWindow_moc.cpp")
|
||||
add_file_dependencies(MainWindow_moc.cpp
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/MainWindow.h")
|
||||
|
||||
qt5_generate_moc( "Viewer.h" "${CMAKE_CURRENT_BINARY_DIR}/Viewer_moc.cpp" )
|
||||
add_file_dependencies( Viewer_moc.cpp "${CMAKE_CURRENT_SOURCE_DIR}/Viewer.h" )
|
||||
qt5_generate_moc("Viewer.h" "${CMAKE_CURRENT_BINARY_DIR}/Viewer_moc.cpp")
|
||||
add_file_dependencies(Viewer_moc.cpp "${CMAKE_CURRENT_SOURCE_DIR}/Viewer.h")
|
||||
|
||||
qt5_generate_moc( "Scene.h" "${CMAKE_CURRENT_BINARY_DIR}/Scene_moc.cpp" )
|
||||
add_file_dependencies( Scene_moc.cpp "${CMAKE_CURRENT_SOURCE_DIR}/Scene.h" )
|
||||
qt5_generate_moc("Scene.h" "${CMAKE_CURRENT_BINARY_DIR}/Scene_moc.cpp")
|
||||
add_file_dependencies(Scene_moc.cpp "${CMAKE_CURRENT_SOURCE_DIR}/Scene.h")
|
||||
|
||||
qt5_add_resources ( CGAL_Qt5_RESOURCE_FILES AABB_demo.qrc )
|
||||
qt5_add_resources(CGAL_Qt5_RESOURCE_FILES AABB_demo.qrc)
|
||||
|
||||
add_file_dependencies( AABB_demo.cpp "${CMAKE_CURRENT_BINARY_DIR}/MainWindow_moc.cpp"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/Viewer_moc.cpp"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/Scene_moc.cpp" )
|
||||
add_file_dependencies(
|
||||
AABB_demo.cpp "${CMAKE_CURRENT_BINARY_DIR}/MainWindow_moc.cpp"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/Viewer_moc.cpp"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/Scene_moc.cpp")
|
||||
|
||||
add_executable ( AABB_demo AABB_demo.cpp ${UI_FILES} ${CGAL_Qt5_RESOURCE_FILES}
|
||||
add_executable(
|
||||
AABB_demo AABB_demo.cpp ${UI_FILES} ${CGAL_Qt5_RESOURCE_FILES}
|
||||
#${CGAL_Qt5_MOC_FILES}
|
||||
)
|
||||
)
|
||||
# Link with Qt libraries
|
||||
target_link_libraries( AABB_demo PRIVATE
|
||||
Qt5::OpenGL Qt5::Gui Qt5::Xml
|
||||
CGAL::CGAL
|
||||
CGAL::CGAL_Qt5
|
||||
)
|
||||
target_link_libraries(AABB_demo PRIVATE Qt5::OpenGL Qt5::Gui Qt5::Xml
|
||||
CGAL::CGAL CGAL::CGAL_Qt5)
|
||||
|
||||
add_to_cached_list( CGAL_EXECUTABLE_TARGETS AABB_demo )
|
||||
add_to_cached_list(CGAL_EXECUTABLE_TARGETS AABB_demo)
|
||||
|
||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||
cgal_add_compilation_test(AABB_demo)
|
||||
|
||||
else (CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||
else(CGAL_Qt5_FOUND
|
||||
AND Qt5_FOUND)
|
||||
|
||||
set(AABB_MISSING_DEPS "")
|
||||
|
||||
if(NOT CGAL_FOUND)
|
||||
set(AABB_MISSING_DEPS "the CGAL library, ${AABB_MISSING_DEPS}")
|
||||
endif()
|
||||
|
||||
if(NOT CGAL_Qt5_FOUND)
|
||||
set(AABB_MISSING_DEPS "CGAL_Qt5, ${AABB_MISSING_DEPS}")
|
||||
endif()
|
||||
|
|
@ -77,6 +75,11 @@ else (CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND)
|
|||
set(AABB_MISSING_DEPS "Qt5, ${AABB_MISSING_DEPS}")
|
||||
endif()
|
||||
|
||||
message(STATUS "NOTICE: This demo requires ${AABB_MISSING_DEPS}and will not be compiled.")
|
||||
message(
|
||||
STATUS
|
||||
"NOTICE: This demo requires ${AABB_MISSING_DEPS}and will not be compiled."
|
||||
)
|
||||
|
||||
endif (CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND )
|
||||
endif(
|
||||
CGAL_Qt5_FOUND
|
||||
AND Qt5_FOUND)
|
||||
|
|
|
|||
|
|
@ -1,24 +1,16 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( AABB_tree_Examples )
|
||||
project(AABB_tree_Examples)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,26 +1,18 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( AABB_tree_Tests )
|
||||
project(AABB_tree_Tests)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
include( ${CGAL_USE_FILE} ) # Kept to test the old behaviour.
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
include(${CGAL_USE_FILE}) # Kept to test the old behaviour.
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,24 +1,16 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Advancing_front_surface_reconstruction_Examples )
|
||||
project(Advancing_front_surface_reconstruction_Examples)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,24 +1,16 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Advancing_front_surface_reconstruction_Tests )
|
||||
project(Advancing_front_surface_reconstruction_Tests)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,24 +1,16 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Algebraic_foundations_Examples )
|
||||
project(Algebraic_foundations_Examples)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,26 +1,18 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Algebraic_foundations_Tests )
|
||||
project(Algebraic_foundations_Tests)
|
||||
|
||||
find_package(CGAL REQUIRED COMPONENTS Core)
|
||||
|
||||
find_package(CGAL QUIET COMPONENTS Core)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
include(${CGAL_USE_FILE})
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
include(${CGAL_USE_FILE})
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,28 +1,27 @@
|
|||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Algebraic_kernel_d_Examples )
|
||||
project(Algebraic_kernel_d_Examples)
|
||||
|
||||
find_package(CGAL REQUIRED COMPONENTS Core)
|
||||
|
||||
find_package(MPFI QUIET)
|
||||
|
||||
find_package(CGAL QUIET COMPONENTS Core)
|
||||
if(MPFI_FOUND)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
find_package(MPFI QUIET)
|
||||
endif()
|
||||
include(${CGAL_USE_FILE})
|
||||
include(${MPFI_USE_FILE})
|
||||
include(CGAL_VersionUtils)
|
||||
|
||||
if( CGAL_FOUND AND MPFI_FOUND)
|
||||
|
||||
include( ${CGAL_USE_FILE} )
|
||||
include( ${MPFI_USE_FILE} )
|
||||
include( CGAL_VersionUtils )
|
||||
|
||||
create_single_source_cgal_program( "Compare_1.cpp" )
|
||||
create_single_source_cgal_program( "Construct_algebraic_real_1.cpp" )
|
||||
create_single_source_cgal_program( "Isolate_1.cpp" )
|
||||
create_single_source_cgal_program( "Sign_at_1.cpp" )
|
||||
create_single_source_cgal_program( "Solve_1.cpp" )
|
||||
create_single_source_cgal_program("Compare_1.cpp")
|
||||
create_single_source_cgal_program("Construct_algebraic_real_1.cpp")
|
||||
create_single_source_cgal_program("Isolate_1.cpp")
|
||||
create_single_source_cgal_program("Sign_at_1.cpp")
|
||||
create_single_source_cgal_program("Solve_1.cpp")
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library and MPFI, and will not be compiled.")
|
||||
message(
|
||||
STATUS
|
||||
"This program requires the CGAL library and MPFI, and will not be compiled."
|
||||
)
|
||||
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -1,67 +1,65 @@
|
|||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Algebraic_kernel_d_Tests )
|
||||
|
||||
|
||||
project(Algebraic_kernel_d_Tests)
|
||||
|
||||
# CGAL and its components
|
||||
find_package( CGAL QUIET COMPONENTS Core)
|
||||
|
||||
if ( NOT CGAL_FOUND )
|
||||
|
||||
message(STATUS "This project requires the CGAL library, and will not be compiled.")
|
||||
return()
|
||||
|
||||
endif()
|
||||
find_package(CGAL REQUIRED COMPONENTS Core)
|
||||
|
||||
find_package(RS3 QUIET)
|
||||
|
||||
if(MPFI_FOUND)
|
||||
include( ${MPFI_USE_FILE} )
|
||||
include(${MPFI_USE_FILE})
|
||||
endif()
|
||||
if(RS3_FOUND)
|
||||
include( ${RS3_USE_FILE} )
|
||||
include(${RS3_USE_FILE})
|
||||
endif()
|
||||
|
||||
# Boost and its components
|
||||
find_package( Boost )
|
||||
find_package(Boost)
|
||||
|
||||
if ( NOT Boost_FOUND )
|
||||
if(NOT Boost_FOUND)
|
||||
|
||||
message(STATUS "This project requires the Boost library, and will not be compiled.")
|
||||
message(
|
||||
STATUS "This project requires the Boost library, and will not be compiled.")
|
||||
|
||||
return()
|
||||
|
||||
endif()
|
||||
|
||||
# include for local directory
|
||||
include_directories( BEFORE include )
|
||||
include_directories(BEFORE include)
|
||||
|
||||
include( ${CGAL_USE_FILE} )
|
||||
include(${CGAL_USE_FILE})
|
||||
|
||||
# Creating entries for all .cpp/.C files with "main" routine
|
||||
# ##########################################################
|
||||
|
||||
create_single_source_cgal_program( "cyclic.cpp" )
|
||||
create_single_source_cgal_program( "Algebraic_curve_kernel_2.cpp" )
|
||||
create_single_source_cgal_program( "algebraic_curve_kernel_2_tools.cpp" )
|
||||
create_single_source_cgal_program( "Algebraic_kernel_d_1_LEDA.cpp" )
|
||||
create_single_source_cgal_program("cyclic.cpp")
|
||||
create_single_source_cgal_program("Algebraic_curve_kernel_2.cpp")
|
||||
create_single_source_cgal_program("algebraic_curve_kernel_2_tools.cpp")
|
||||
create_single_source_cgal_program("Algebraic_kernel_d_1_LEDA.cpp")
|
||||
|
||||
create_single_source_cgal_program( "Algebraic_kernel_d_1_CORE_Integer_rational.cpp" )
|
||||
create_single_source_cgal_program( "Algebraic_kernel_d_1_CORE_SqrtII_rational.cpp" )
|
||||
create_single_source_cgal_program( "Algebraic_kernel_d_1_CORE_SqrtRI_rational.cpp" )
|
||||
create_single_source_cgal_program( "Algebraic_kernel_d_1_CORE_SqrtRR_rational.cpp" )
|
||||
create_single_source_cgal_program(
|
||||
"Algebraic_kernel_d_1_CORE_Integer_rational.cpp")
|
||||
create_single_source_cgal_program(
|
||||
"Algebraic_kernel_d_1_CORE_SqrtII_rational.cpp")
|
||||
create_single_source_cgal_program(
|
||||
"Algebraic_kernel_d_1_CORE_SqrtRI_rational.cpp")
|
||||
create_single_source_cgal_program(
|
||||
"Algebraic_kernel_d_1_CORE_SqrtRR_rational.cpp")
|
||||
|
||||
create_single_source_cgal_program( "Algebraic_kernel_d_1_GMP.cpp" )
|
||||
create_single_source_cgal_program( "Algebraic_kernel_d_2.cpp" )
|
||||
create_single_source_cgal_program( "Algebraic_real_d_1.cpp" )
|
||||
create_single_source_cgal_program( "Bitstream_descartes.cpp" )
|
||||
create_single_source_cgal_program( "Curve_analysis_2.cpp" )
|
||||
create_single_source_cgal_program( "Curve_pair_analysis_2.cpp" )
|
||||
create_single_source_cgal_program( "Descartes.cpp" )
|
||||
create_single_source_cgal_program( "Real_embeddable_traits_extension.cpp" )
|
||||
create_single_source_cgal_program("Algebraic_kernel_d_1_GMP.cpp")
|
||||
create_single_source_cgal_program("Algebraic_kernel_d_2.cpp")
|
||||
create_single_source_cgal_program("Algebraic_real_d_1.cpp")
|
||||
create_single_source_cgal_program("Bitstream_descartes.cpp")
|
||||
create_single_source_cgal_program("Curve_analysis_2.cpp")
|
||||
create_single_source_cgal_program("Curve_pair_analysis_2.cpp")
|
||||
create_single_source_cgal_program("Descartes.cpp")
|
||||
create_single_source_cgal_program("Real_embeddable_traits_extension.cpp")
|
||||
if(RS_FOUND)
|
||||
create_single_source_cgal_program( "Algebraic_kernel_rs_gmpq_d_1.cpp" )
|
||||
create_single_source_cgal_program( "Algebraic_kernel_rs_gmpz_d_1.cpp" )
|
||||
create_single_source_cgal_program("Algebraic_kernel_rs_gmpq_d_1.cpp")
|
||||
create_single_source_cgal_program("Algebraic_kernel_rs_gmpz_d_1.cpp")
|
||||
else()
|
||||
message(STATUS "NOTICE: Some tests require the RS library, and will not be compiled.")
|
||||
message(
|
||||
STATUS
|
||||
"NOTICE: Some tests require the RS library, and will not be compiled.")
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -1,26 +1,18 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Algebraic_kernel_for_circles_Tests )
|
||||
project(Algebraic_kernel_for_circles_Tests)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
include_directories (BEFORE "include")
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
include_directories(BEFORE "include")
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,26 +1,18 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Algebraic_kernel_for_spheres_Tests )
|
||||
project(Algebraic_kernel_for_spheres_Tests)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
include_directories (BEFORE "include")
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
include_directories(BEFORE "include")
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,24 +1,16 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Alpha_shapes_2_Examples )
|
||||
project(Alpha_shapes_2_Examples)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,24 +1,16 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Alpha_shapes_2_Tests )
|
||||
project(Alpha_shapes_2_Tests)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project (Alpha_shapes_3_Demo)
|
||||
project(Alpha_shapes_3_Demo)
|
||||
|
||||
# Find includes in corresponding build directories
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
|
|
@ -16,35 +16,38 @@ if(POLICY CMP0071)
|
|||
cmake_policy(SET CMP0071 NEW)
|
||||
endif()
|
||||
|
||||
find_package(CGAL COMPONENTS Qt5)
|
||||
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt5)
|
||||
|
||||
find_package(Qt5 QUIET COMPONENTS Xml Script OpenGL Svg)
|
||||
|
||||
if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND )
|
||||
if(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||
|
||||
add_definitions(-DQT_NO_KEYWORDS)
|
||||
|
||||
# include(${QT_USE_FILE})
|
||||
include_directories (BEFORE ./ )
|
||||
# include(${QT_USE_FILE})
|
||||
include_directories(BEFORE ./)
|
||||
|
||||
# ui file, created wih Qt Designer
|
||||
qt5_wrap_ui( uis MainWindow.ui )
|
||||
qt5_wrap_ui(uis MainWindow.ui)
|
||||
|
||||
# qrc files (resources files, that contain icons, at least)
|
||||
qt5_add_resources ( CGAL_Qt5_RESOURCE_FILES ./Alpha_shape_3.qrc )
|
||||
qt5_add_resources(CGAL_Qt5_RESOURCE_FILES ./Alpha_shape_3.qrc)
|
||||
|
||||
add_executable ( Alpha_shape_3 Alpha_shape_3.cpp MainWindow.cpp Viewer.cpp ${uis} ${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES})
|
||||
add_to_cached_list( CGAL_EXECUTABLE_TARGETS Alpha_shape_3 )
|
||||
add_executable(
|
||||
Alpha_shape_3 Alpha_shape_3.cpp MainWindow.cpp Viewer.cpp ${uis}
|
||||
${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES})
|
||||
add_to_cached_list(CGAL_EXECUTABLE_TARGETS Alpha_shape_3)
|
||||
|
||||
target_link_libraries( Alpha_shape_3 PRIVATE
|
||||
CGAL::CGAL CGAL::CGAL_Qt5
|
||||
Qt5::OpenGL Qt5::Gui )
|
||||
target_link_libraries(Alpha_shape_3 PRIVATE CGAL::CGAL CGAL::CGAL_Qt5
|
||||
Qt5::OpenGL Qt5::Gui)
|
||||
|
||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||
cgal_add_compilation_test(Alpha_shape_3)
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "NOTICE: This demo requires CGAL, and Qt5, and will not be compiled.")
|
||||
message(
|
||||
STATUS "NOTICE: This demo requires CGAL, and Qt5, and will not be compiled."
|
||||
)
|
||||
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -1,24 +1,16 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Alpha_shapes_3_Examples )
|
||||
project(Alpha_shapes_3_Examples)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,26 +1,18 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Alpha_shapes_3_Tests )
|
||||
project(Alpha_shapes_3_Tests)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
include_directories (BEFORE "include")
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
include_directories(BEFORE "include")
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,26 +1,18 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Apollonius_graph_2_Examples )
|
||||
project(Apollonius_graph_2_Examples)
|
||||
|
||||
find_package(CGAL REQUIRED COMPONENTS Core)
|
||||
|
||||
find_package(CGAL QUIET COMPONENTS Core )
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
include(${CGAL_USE_FILE})
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
include(${CGAL_USE_FILE})
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,26 +1,18 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Apollonius_graph_2_Tests )
|
||||
project(Apollonius_graph_2_Tests)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
include_directories (BEFORE "include")
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
include_directories(BEFORE "include")
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,56 +1,53 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Arithmetic_kernel_Tests )
|
||||
project(Arithmetic_kernel_Tests)
|
||||
|
||||
|
||||
|
||||
|
||||
find_package(CGAL QUIET COMPONENTS Core)
|
||||
find_package(CGAL REQUIRED COMPONENTS Core)
|
||||
|
||||
find_package(GMP QUIET)
|
||||
|
||||
if ( CGAL_FOUND AND GMP_FOUND )
|
||||
if(GMP_FOUND)
|
||||
|
||||
include(${CGAL_USE_FILE})
|
||||
include( CGAL_VersionUtils )
|
||||
include(CGAL_VersionUtils)
|
||||
|
||||
get_dependency_version( GMP )
|
||||
get_dependency_version(GMP)
|
||||
|
||||
IS_VERSION_LESS("${GMP_VERSION}" "4.2.0" _IS_GMP_VERSION_TO_LOW)
|
||||
is_version_less("${GMP_VERSION}" "4.2.0" _IS_GMP_VERSION_TO_LOW)
|
||||
|
||||
include_directories(include)
|
||||
|
||||
find_package( MPFI )
|
||||
find_package(MPFI)
|
||||
|
||||
if( MPFI_FOUND )
|
||||
include( ${MPFI_USE_FILE} )
|
||||
if(MPFI_FOUND)
|
||||
include(${MPFI_USE_FILE})
|
||||
|
||||
# for the testsuite, the version of MPFI shipped with RS is used; this
|
||||
# version needs GMP>=4.2, so we require this dependency only here and
|
||||
# not in FindMPFI.cmake
|
||||
if( _IS_GMP_VERSION_TO_LOW )
|
||||
message( STATUS
|
||||
"MPFI tests need GMP>=4.2, some of the tests will not be compiled" )
|
||||
else( _IS_GMP_VERSION_TO_LOW )
|
||||
include( ${MPFI_USE_FILE} )
|
||||
create_single_source_cgal_program( "GMP_arithmetic_kernel.cpp" )
|
||||
endif( _IS_GMP_VERSION_TO_LOW )
|
||||
else( MPFI_FOUND )
|
||||
message( STATUS
|
||||
"MPFI is not present, some of the tests will not be compiled." )
|
||||
endif( MPFI_FOUND )
|
||||
if(_IS_GMP_VERSION_TO_LOW)
|
||||
message(
|
||||
STATUS
|
||||
"MPFI tests need GMP>=4.2, some of the tests will not be compiled")
|
||||
else(_IS_GMP_VERSION_TO_LOW)
|
||||
include(${MPFI_USE_FILE})
|
||||
create_single_source_cgal_program("GMP_arithmetic_kernel.cpp")
|
||||
endif(_IS_GMP_VERSION_TO_LOW)
|
||||
else(MPFI_FOUND)
|
||||
message(
|
||||
STATUS "MPFI is not present, some of the tests will not be compiled.")
|
||||
endif(MPFI_FOUND)
|
||||
|
||||
create_single_source_cgal_program( "Arithmetic_kernel.cpp" )
|
||||
create_single_source_cgal_program( "LEDA_arithmetic_kernel.cpp" )
|
||||
create_single_source_cgal_program( "CORE_arithmetic_kernel.cpp" )
|
||||
create_single_source_cgal_program( "Get_arithmetic_kernel.cpp" )
|
||||
create_single_source_cgal_program("Arithmetic_kernel.cpp")
|
||||
create_single_source_cgal_program("LEDA_arithmetic_kernel.cpp")
|
||||
create_single_source_cgal_program("CORE_arithmetic_kernel.cpp")
|
||||
create_single_source_cgal_program("Get_arithmetic_kernel.cpp")
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
message(
|
||||
STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Arrangement_on_surface_2_Demo )
|
||||
project(Arrangement_on_surface_2_Demo)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 14)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
|
||||
|
|
@ -134,7 +134,6 @@ else()
|
|||
if(NOT Qt5_FOUND)
|
||||
set(MISSING_DEPS "Qt5, ${MISSING_DEPS}")
|
||||
endif()
|
||||
|
||||
message(STATUS
|
||||
"NOTICE: This demo requires ${MISSING_DEPS} and will not be compiled.")
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -1,26 +1,18 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Arrangement_on_surface_2_Examples )
|
||||
project(Arrangement_on_surface_2_Examples)
|
||||
|
||||
find_package(CGAL REQUIRED COMPONENTS Core)
|
||||
|
||||
find_package(CGAL QUIET COMPONENTS Core)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
include(${CGAL_USE_FILE})
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
include(${CGAL_USE_FILE})
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,35 +1,28 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Arrangement_on_surface_2_Tests )
|
||||
project(Arrangement_on_surface_2_Tests)
|
||||
|
||||
enable_testing()
|
||||
|
||||
find_package(CGAL REQUIRED COMPONENTS Core)
|
||||
|
||||
find_package(CGAL QUIET COMPONENTS Core)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
include(${CGAL_USE_FILE})
|
||||
|
||||
if(COMMAND target_compile_options)
|
||||
# Since CMake-2.8.12: New CMake script, that defines the targets and
|
||||
# the CTest test cases.
|
||||
include( ${CMAKE_CURRENT_SOURCE_DIR}/cgal_test.cmake )
|
||||
else()
|
||||
# If CMake version is <= 2.8.11, use the usual CMake script.
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
endif()
|
||||
include(${CGAL_USE_FILE})
|
||||
|
||||
if(COMMAND target_compile_options)
|
||||
# Since CMake-2.8.12: New CMake script, that defines the targets and
|
||||
# the CTest test cases.
|
||||
include(${CMAKE_CURRENT_SOURCE_DIR}/cgal_test.cmake)
|
||||
else()
|
||||
# If CMake version is <= 2.8.11, use the usual CMake script.
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -2,26 +2,18 @@
|
|||
# This is the CMake script for compiling a set of CGAL applications.
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( BGL_LCC_Examples )
|
||||
|
||||
|
||||
project(BGL_LCC_Examples)
|
||||
|
||||
# CGAL and its components
|
||||
find_package( CGAL QUIET COMPONENTS )
|
||||
|
||||
if ( NOT CGAL_FOUND )
|
||||
|
||||
message(STATUS "This project requires the CGAL library, and will not be compiled.")
|
||||
return()
|
||||
|
||||
endif()
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
# Boost and its components
|
||||
find_package( Boost REQUIRED )
|
||||
find_package(Boost REQUIRED)
|
||||
|
||||
if ( NOT Boost_FOUND )
|
||||
if(NOT Boost_FOUND)
|
||||
|
||||
message(STATUS "This project requires the Boost library, and will not be compiled.")
|
||||
message(
|
||||
STATUS "This project requires the Boost library, and will not be compiled.")
|
||||
|
||||
return()
|
||||
|
||||
|
|
@ -33,7 +25,10 @@ endif()
|
|||
# ##########################################################
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB_RECURSE cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp)
|
||||
file(
|
||||
GLOB_RECURSE cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -2,38 +2,31 @@
|
|||
# This is the CMake script for compiling a set of CGAL applications.
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( BGL_OpenMesh_Examples )
|
||||
|
||||
|
||||
project(BGL_OpenMesh_Examples)
|
||||
|
||||
# CGAL and its components
|
||||
find_package( CGAL QUIET COMPONENTS )
|
||||
|
||||
if ( NOT CGAL_FOUND )
|
||||
|
||||
message(STATUS "This project requires the CGAL library, and will not be compiled.")
|
||||
return()
|
||||
|
||||
endif()
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
# Boost and its components
|
||||
find_package( Boost REQUIRED )
|
||||
find_package(Boost REQUIRED)
|
||||
|
||||
if ( NOT Boost_FOUND )
|
||||
if(NOT Boost_FOUND)
|
||||
|
||||
message(STATUS "This project requires the Boost library, and will not be compiled.")
|
||||
message(
|
||||
STATUS "This project requires the Boost library, and will not be compiled.")
|
||||
|
||||
return()
|
||||
|
||||
endif()
|
||||
|
||||
find_package( OpenMesh QUIET )
|
||||
find_package(OpenMesh QUIET)
|
||||
|
||||
if ( OpenMesh_FOUND )
|
||||
include( UseOpenMesh )
|
||||
if(OpenMesh_FOUND)
|
||||
include(UseOpenMesh)
|
||||
else()
|
||||
|
||||
message(STATUS "NOTICE: These examples require OpenMesh and will not be compiled.")
|
||||
message(
|
||||
STATUS "NOTICE: These examples require OpenMesh and will not be compiled.")
|
||||
return()
|
||||
|
||||
endif()
|
||||
|
|
@ -46,7 +39,6 @@ endif()
|
|||
# ##########################################################
|
||||
|
||||
if(OpenMesh_FOUND)
|
||||
create_single_source_cgal_program( "TriMesh.cpp" )
|
||||
target_link_libraries( TriMesh PRIVATE ${OPENMESH_LIBRARIES} )
|
||||
create_single_source_cgal_program("TriMesh.cpp")
|
||||
target_link_libraries(TriMesh PRIVATE ${OPENMESH_LIBRARIES})
|
||||
endif()
|
||||
|
||||
|
|
|
|||
|
|
@ -1,20 +1,13 @@
|
|||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( BGL_arrangement_2_Examples )
|
||||
project(BGL_arrangement_2_Examples)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -3,26 +3,18 @@
|
|||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
|
||||
project( BGL_graphcut_Examples )
|
||||
|
||||
project(BGL_graphcut_Examples)
|
||||
|
||||
# CGAL and its components
|
||||
find_package( CGAL QUIET COMPONENTS )
|
||||
|
||||
if ( NOT CGAL_FOUND )
|
||||
|
||||
message(STATUS "This project requires the CGAL library, and will not be compiled.")
|
||||
return()
|
||||
|
||||
endif()
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
# Boost and its components
|
||||
find_package( Boost REQUIRED )
|
||||
find_package(Boost REQUIRED)
|
||||
|
||||
if ( NOT Boost_FOUND )
|
||||
if(NOT Boost_FOUND)
|
||||
|
||||
message(STATUS "This project requires the Boost library, and will not be compiled.")
|
||||
message(
|
||||
STATUS "This project requires the Boost library, and will not be compiled.")
|
||||
|
||||
return()
|
||||
|
||||
|
|
@ -32,12 +24,9 @@ endif()
|
|||
|
||||
# include for local package
|
||||
|
||||
|
||||
# Creating entries for all C++ files with "main" routine
|
||||
# ##########################################################
|
||||
|
||||
|
||||
create_single_source_cgal_program( "alpha_expansion_example.cpp" )
|
||||
create_single_source_cgal_program( "face_selection_borders_regularization_example.cpp" )
|
||||
|
||||
|
||||
create_single_source_cgal_program("alpha_expansion_example.cpp")
|
||||
create_single_source_cgal_program(
|
||||
"face_selection_borders_regularization_example.cpp")
|
||||
|
|
|
|||
|
|
@ -2,46 +2,38 @@
|
|||
# This is the CMake script for compiling a set of CGAL applications.
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( BGL_polyhedron_3_Examples )
|
||||
|
||||
|
||||
project(BGL_polyhedron_3_Examples)
|
||||
|
||||
# CGAL and its components
|
||||
find_package( CGAL QUIET COMPONENTS )
|
||||
|
||||
if ( NOT CGAL_FOUND )
|
||||
|
||||
message(STATUS "This project requires the CGAL library, and will not be compiled.")
|
||||
return()
|
||||
|
||||
endif()
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
# Boost and its components
|
||||
find_package( Boost REQUIRED )
|
||||
find_package(Boost REQUIRED)
|
||||
|
||||
if ( NOT Boost_FOUND )
|
||||
if(NOT Boost_FOUND)
|
||||
|
||||
message(STATUS "This project requires the Boost library, and will not be compiled.")
|
||||
message(
|
||||
STATUS "This project requires the Boost library, and will not be compiled.")
|
||||
|
||||
return()
|
||||
|
||||
endif()
|
||||
|
||||
find_package( OpenMesh QUIET )
|
||||
find_package(OpenMesh QUIET)
|
||||
|
||||
if ( OpenMesh_FOUND )
|
||||
include( UseOpenMesh )
|
||||
add_definitions( -DCGAL_USE_OPENMESH )
|
||||
if(OpenMesh_FOUND)
|
||||
include(UseOpenMesh)
|
||||
add_definitions(-DCGAL_USE_OPENMESH)
|
||||
else()
|
||||
message(STATUS "Examples that use OpenMesh will not be compiled.")
|
||||
endif()
|
||||
|
||||
find_package( METIS )
|
||||
find_package(METIS)
|
||||
|
||||
if( METIS_FOUND )
|
||||
include_directories(${METIS_INCLUDE_DIRS} )
|
||||
if(METIS_FOUND)
|
||||
include_directories(${METIS_INCLUDE_DIRS})
|
||||
else()
|
||||
message( STATUS "Examples that use the METIS library will not be compiled." )
|
||||
message(STATUS "Examples that use the METIS library will not be compiled.")
|
||||
endif()
|
||||
|
||||
# include for local directory
|
||||
|
|
@ -51,28 +43,27 @@ endif()
|
|||
# Creating entries for all C++ files with "main" routine
|
||||
# ##########################################################
|
||||
|
||||
create_single_source_cgal_program( "distance.cpp" )
|
||||
create_single_source_cgal_program("distance.cpp")
|
||||
|
||||
create_single_source_cgal_program( "incident_vertices.cpp" )
|
||||
create_single_source_cgal_program("incident_vertices.cpp")
|
||||
|
||||
create_single_source_cgal_program( "kruskal.cpp" )
|
||||
create_single_source_cgal_program("kruskal.cpp")
|
||||
|
||||
create_single_source_cgal_program( "kruskal_with_stored_id.cpp" )
|
||||
create_single_source_cgal_program("kruskal_with_stored_id.cpp")
|
||||
|
||||
create_single_source_cgal_program( "normals.cpp" )
|
||||
create_single_source_cgal_program("normals.cpp")
|
||||
|
||||
create_single_source_cgal_program( "range.cpp" )
|
||||
create_single_source_cgal_program("range.cpp")
|
||||
|
||||
create_single_source_cgal_program( "transform_iterator.cpp" )
|
||||
create_single_source_cgal_program("transform_iterator.cpp")
|
||||
|
||||
create_single_source_cgal_program( "copy_polyhedron.cpp" )
|
||||
create_single_source_cgal_program("copy_polyhedron.cpp")
|
||||
|
||||
if(OpenMesh_FOUND)
|
||||
target_link_libraries( copy_polyhedron PRIVATE ${OPENMESH_LIBRARIES} )
|
||||
target_link_libraries(copy_polyhedron PRIVATE ${OPENMESH_LIBRARIES})
|
||||
endif()
|
||||
|
||||
if( METIS_FOUND )
|
||||
create_single_source_cgal_program( "polyhedron_partition.cpp" )
|
||||
target_link_libraries( polyhedron_partition PRIVATE ${METIS_LIBRARIES} )
|
||||
if(METIS_FOUND)
|
||||
create_single_source_cgal_program("polyhedron_partition.cpp")
|
||||
target_link_libraries(polyhedron_partition PRIVATE ${METIS_LIBRARIES})
|
||||
endif()
|
||||
|
||||
|
|
|
|||
|
|
@ -1,31 +1,24 @@
|
|||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( BGL_surface_mesh_Examples )
|
||||
project(BGL_surface_mesh_Examples)
|
||||
|
||||
|
||||
find_package( CGAL QUIET )
|
||||
|
||||
if ( NOT CGAL_FOUND )
|
||||
message( STATUS "This project requires the CGAL library, and will not be compiled." )
|
||||
return()
|
||||
endif()
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
# include for local package
|
||||
|
||||
create_single_source_cgal_program( "prim.cpp" )
|
||||
create_single_source_cgal_program( "gwdwg.cpp" )
|
||||
create_single_source_cgal_program( "seam_mesh.cpp" )
|
||||
create_single_source_cgal_program( "write_inp.cpp" )
|
||||
create_single_source_cgal_program( "surface_mesh_dual.cpp" )
|
||||
create_single_source_cgal_program( "connected_components.cpp" )
|
||||
create_single_source_cgal_program("prim.cpp")
|
||||
create_single_source_cgal_program("gwdwg.cpp")
|
||||
create_single_source_cgal_program("seam_mesh.cpp")
|
||||
create_single_source_cgal_program("write_inp.cpp")
|
||||
create_single_source_cgal_program("surface_mesh_dual.cpp")
|
||||
create_single_source_cgal_program("connected_components.cpp")
|
||||
|
||||
find_package( METIS )
|
||||
find_package(METIS)
|
||||
|
||||
if( METIS_FOUND )
|
||||
include_directories(${METIS_INCLUDE_DIRS} )
|
||||
if(METIS_FOUND)
|
||||
include_directories(${METIS_INCLUDE_DIRS})
|
||||
|
||||
create_single_source_cgal_program( "surface_mesh_partition.cpp" )
|
||||
target_link_libraries( surface_mesh_partition PRIVATE ${METIS_LIBRARIES} )
|
||||
create_single_source_cgal_program("surface_mesh_partition.cpp")
|
||||
target_link_libraries(surface_mesh_partition PRIVATE ${METIS_LIBRARIES})
|
||||
else()
|
||||
message( STATUS "Examples that use the METIS library will not be compiled." )
|
||||
message(STATUS "Examples that use the METIS library will not be compiled.")
|
||||
endif()
|
||||
|
||||
|
|
|
|||
|
|
@ -1,20 +1,13 @@
|
|||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( BGL_triangulation_2_Examples )
|
||||
project(BGL_triangulation_2_Examples)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -2,119 +2,108 @@
|
|||
# This is the CMake script for compiling a set of CGAL applications.
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( BGL_Tests )
|
||||
|
||||
|
||||
|
||||
|
||||
project(BGL_Tests)
|
||||
|
||||
# CGAL and its components
|
||||
find_package( CGAL QUIET COMPONENTS )
|
||||
|
||||
if ( NOT CGAL_FOUND )
|
||||
|
||||
message(STATUS "This project requires the CGAL library, and will not be compiled.")
|
||||
return()
|
||||
|
||||
endif()
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
# Boost and its components
|
||||
find_package( Boost )
|
||||
find_package(Boost)
|
||||
|
||||
if ( NOT Boost_FOUND )
|
||||
message(STATUS "This project requires the Boost library, and will not be compiled.")
|
||||
if(NOT Boost_FOUND)
|
||||
message(
|
||||
STATUS "This project requires the Boost library, and will not be compiled.")
|
||||
return()
|
||||
endif()
|
||||
|
||||
find_package( OpenMesh QUIET )
|
||||
find_package(OpenMesh QUIET)
|
||||
|
||||
if ( OpenMesh_FOUND )
|
||||
include( UseOpenMesh )
|
||||
add_definitions( -DCGAL_USE_OPENMESH )
|
||||
if(OpenMesh_FOUND)
|
||||
include(UseOpenMesh)
|
||||
add_definitions(-DCGAL_USE_OPENMESH)
|
||||
else()
|
||||
message(STATUS "Examples that use OpenMesh will not be compiled.")
|
||||
endif()
|
||||
|
||||
|
||||
|
||||
# include for local package
|
||||
|
||||
# Creating entries for all .cpp/.C files with "main" routine
|
||||
# ##########################################################
|
||||
|
||||
if(OpenMesh_FOUND)
|
||||
create_single_source_cgal_program( "graph_concept_OpenMesh.cpp" )
|
||||
target_link_libraries( graph_concept_OpenMesh PRIVATE ${OPENMESH_LIBRARIES} )
|
||||
create_single_source_cgal_program("graph_concept_OpenMesh.cpp")
|
||||
target_link_libraries(graph_concept_OpenMesh PRIVATE ${OPENMESH_LIBRARIES})
|
||||
endif()
|
||||
|
||||
create_single_source_cgal_program( "next.cpp" )
|
||||
create_single_source_cgal_program("next.cpp")
|
||||
|
||||
create_single_source_cgal_program( "test_circulator.cpp" )
|
||||
create_single_source_cgal_program("test_circulator.cpp")
|
||||
|
||||
create_single_source_cgal_program( "test_Gwdwg.cpp" )
|
||||
create_single_source_cgal_program("test_Gwdwg.cpp")
|
||||
|
||||
create_single_source_cgal_program( "test_bgl_dual.cpp" )
|
||||
create_single_source_cgal_program("test_bgl_dual.cpp")
|
||||
|
||||
create_single_source_cgal_program( "graph_concept_Polyhedron_3.cpp" )
|
||||
create_single_source_cgal_program("graph_concept_Polyhedron_3.cpp")
|
||||
|
||||
create_single_source_cgal_program( "graph_concept_Dual.cpp" )
|
||||
create_single_source_cgal_program("graph_concept_Dual.cpp")
|
||||
|
||||
create_single_source_cgal_program( "graph_concept_Triangulation_2.cpp" )
|
||||
create_single_source_cgal_program("graph_concept_Triangulation_2.cpp")
|
||||
|
||||
create_single_source_cgal_program( "graph_concept_Surface_mesh.cpp" )
|
||||
create_single_source_cgal_program("graph_concept_Surface_mesh.cpp")
|
||||
|
||||
create_single_source_cgal_program( "graph_concept_Seam_mesh_Surface_mesh.cpp" )
|
||||
create_single_source_cgal_program("graph_concept_Seam_mesh_Surface_mesh.cpp")
|
||||
|
||||
create_single_source_cgal_program( "graph_concept_Gwdwg_Surface_mesh.cpp" )
|
||||
create_single_source_cgal_program("graph_concept_Gwdwg_Surface_mesh.cpp")
|
||||
|
||||
create_single_source_cgal_program( "graph_concept_Linear_cell_complex.cpp" )
|
||||
create_single_source_cgal_program("graph_concept_Linear_cell_complex.cpp")
|
||||
|
||||
create_single_source_cgal_program( "graph_concept_Arrangement_2.cpp" )
|
||||
create_single_source_cgal_program("graph_concept_Arrangement_2.cpp")
|
||||
|
||||
create_single_source_cgal_program( "graph_concept_Derived.cpp" )
|
||||
|
||||
create_single_source_cgal_program( "test_clear.cpp" )
|
||||
|
||||
create_single_source_cgal_program( "test_helpers.cpp" )
|
||||
create_single_source_cgal_program("test_helpers.cpp")
|
||||
|
||||
create_single_source_cgal_program( "test_Has_member_clear.cpp" )
|
||||
create_single_source_cgal_program("test_Has_member_clear.cpp")
|
||||
|
||||
create_single_source_cgal_program( "test_Has_member_id.cpp" )
|
||||
create_single_source_cgal_program("test_Has_member_id.cpp")
|
||||
|
||||
create_single_source_cgal_program( "test_cgal_bgl_named_params.cpp" )
|
||||
create_single_source_cgal_program("test_cgal_bgl_named_params.cpp")
|
||||
|
||||
create_single_source_cgal_program( "test_bgl_read_write.cpp" )
|
||||
create_single_source_cgal_program("test_bgl_read_write.cpp")
|
||||
|
||||
create_single_source_cgal_program( "graph_concept_Face_filtered_graph.cpp" )
|
||||
create_single_source_cgal_program("graph_concept_Face_filtered_graph.cpp")
|
||||
|
||||
create_single_source_cgal_program( "test_Manifold_face_removal.cpp")
|
||||
create_single_source_cgal_program("test_Manifold_face_removal.cpp")
|
||||
|
||||
create_single_source_cgal_program( "test_Regularize_face_selection_borders.cpp")
|
||||
create_single_source_cgal_program("test_Regularize_face_selection_borders.cpp")
|
||||
|
||||
create_single_source_cgal_program( "test_Face_filtered_graph.cpp" )
|
||||
create_single_source_cgal_program("test_Face_filtered_graph.cpp")
|
||||
|
||||
create_single_source_cgal_program( "test_Euler_operations.cpp" )
|
||||
create_single_source_cgal_program("test_Euler_operations.cpp")
|
||||
|
||||
create_single_source_cgal_program( "test_test_face.cpp" )
|
||||
|
||||
create_single_source_cgal_program( "test_Collapse_edge.cpp" )
|
||||
|
||||
create_single_source_cgal_program( "test_graph_traits.cpp" )
|
||||
create_single_source_cgal_program("test_graph_traits.cpp")
|
||||
|
||||
create_single_source_cgal_program( "test_Properties.cpp" )
|
||||
create_single_source_cgal_program("test_Properties.cpp")
|
||||
|
||||
create_single_source_cgal_program( "test_wrl.cpp" )
|
||||
create_single_source_cgal_program("test_wrl.cpp")
|
||||
|
||||
create_single_source_cgal_program( "bench_read_from_stream_vs_add_face_and_add_faces.cpp" )
|
||||
create_single_source_cgal_program(
|
||||
"bench_read_from_stream_vs_add_face_and_add_faces.cpp")
|
||||
|
||||
create_single_source_cgal_program( "graph_traits_inheritance.cpp" )
|
||||
|
||||
if(OpenMesh_FOUND)
|
||||
target_link_libraries( test_clear PRIVATE ${OPENMESH_LIBRARIES})
|
||||
target_link_libraries( test_Euler_operations PRIVATE ${OPENMESH_LIBRARIES})
|
||||
target_link_libraries( test_Collapse_edge PRIVATE ${OPENMESH_LIBRARIES})
|
||||
target_link_libraries( test_Face_filtered_graph PRIVATE ${OPENMESH_LIBRARIES})
|
||||
target_link_libraries( test_graph_traits PRIVATE ${OPENMESH_LIBRARIES} )
|
||||
target_link_libraries( test_Properties PRIVATE ${OPENMESH_LIBRARIES})
|
||||
target_link_libraries( test_bgl_read_write PRIVATE ${OPENMESH_LIBRARIES})
|
||||
target_link_libraries(test_clear PRIVATE ${OPENMESH_LIBRARIES})
|
||||
target_link_libraries(test_Euler_operations PRIVATE ${OPENMESH_LIBRARIES})
|
||||
target_link_libraries(test_Collapse_edge PRIVATE ${OPENMESH_LIBRARIES})
|
||||
target_link_libraries(test_Face_filtered_graph PRIVATE ${OPENMESH_LIBRARIES})
|
||||
target_link_libraries(test_graph_traits PRIVATE ${OPENMESH_LIBRARIES})
|
||||
target_link_libraries(test_Properties PRIVATE ${OPENMESH_LIBRARIES})
|
||||
target_link_libraries(test_bgl_read_write PRIVATE ${OPENMESH_LIBRARIES})
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -1,24 +1,16 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Barycentric_coordinates_2_Examples )
|
||||
project(Barycentric_coordinates_2_Examples)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,24 +1,16 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Barycentric_coordinates_2_Tests )
|
||||
project(Barycentric_coordinates_2_Tests)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -2,42 +2,49 @@
|
|||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Boolean_set_operations_2_GraphicsView_Demo )
|
||||
project(Boolean_set_operations_2_GraphicsView_Demo)
|
||||
|
||||
if(NOT POLICY CMP0070 AND POLICY CMP0053)
|
||||
# Only set CMP0053 to OLD with CMake<3.10, otherwise there is a warning.
|
||||
cmake_policy(SET CMP0053 OLD)
|
||||
endif()
|
||||
|
||||
find_package(CGAL COMPONENTS Qt5 Core )
|
||||
find_package(CGAL COMPONENTS Qt5 Core)
|
||||
|
||||
set( QT_USE_QTMAIN TRUE )
|
||||
set(QT_USE_QTMAIN TRUE)
|
||||
|
||||
find_package(Qt5 QUIET COMPONENTS Widgets Script Svg)
|
||||
|
||||
include_directories (BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/include )
|
||||
include_directories(BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/include)
|
||||
|
||||
if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND AND CGAL_Core_FOUND )
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
if(CGAL_Qt5_FOUND
|
||||
AND Qt5_FOUND
|
||||
AND CGAL_Core_FOUND)
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
# UI files (Qt Designer files)
|
||||
qt5_wrap_ui( CDT_UI_FILES boolean_operations_2.ui )
|
||||
qt5_wrap_ui(CDT_UI_FILES boolean_operations_2.ui)
|
||||
|
||||
# qrc files (resources files, that contain icons, at least)
|
||||
qt5_add_resources ( CGAL_Qt5_RESOURCE_FILES ${CMAKE_CURRENT_SOURCE_DIR}/boolean_operations_2.qrc )
|
||||
qt5_add_resources(CGAL_Qt5_RESOURCE_FILES
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/boolean_operations_2.qrc)
|
||||
|
||||
# use the Qt MOC preprocessor on classes that derives from QObject
|
||||
|
||||
|
||||
# The executable itself.
|
||||
add_executable ( boolean_operations_2 ${CMAKE_CURRENT_SOURCE_DIR}/boolean_operations_2.cpp ${CGAL_Qt5_MOC_FILES} ${CDT_UI_FILES} ${CGAL_Qt5_RESOURCE_FILES} )
|
||||
add_executable(
|
||||
boolean_operations_2
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/boolean_operations_2.cpp ${CGAL_Qt5_MOC_FILES}
|
||||
${CDT_UI_FILES} ${CGAL_Qt5_RESOURCE_FILES})
|
||||
# Link with Qt libraries
|
||||
target_link_libraries( boolean_operations_2 Qt5::Widgets Qt5::Script Qt5::Svg )
|
||||
target_link_libraries(boolean_operations_2 Qt5::Widgets Qt5::Script Qt5::Svg)
|
||||
|
||||
# Link with CGAL
|
||||
target_link_libraries( boolean_operations_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})
|
||||
target_link_libraries(boolean_operations_2 ${CGAL_LIBRARIES}
|
||||
${CGAL_3RD_PARTY_LIBRARIES})
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||
message(
|
||||
STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -1,26 +1,18 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Boolean_set_operations_2_Examples )
|
||||
project(Boolean_set_operations_2_Examples)
|
||||
|
||||
find_package(CGAL REQUIRED COMPONENTS Core)
|
||||
|
||||
find_package(CGAL QUIET COMPONENTS Core)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
include(${CGAL_USE_FILE})
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
include(${CGAL_USE_FILE})
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,24 +1,16 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Boolean_set_operations_2_Tests )
|
||||
project(Boolean_set_operations_2_Tests)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,31 +1,25 @@
|
|||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Approximate_min_ellipsoid_d_Examples )
|
||||
project(Approximate_min_ellipsoid_d_Examples)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
# Use Eigen
|
||||
find_package(Eigen3 3.1.0 QUIET) #(3.1.0 or greater)
|
||||
include(CGAL_Eigen_support)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
# Use Eigen
|
||||
find_package(Eigen3 3.1.0 QUIET) #(3.1.0 or greater)
|
||||
include(CGAL_Eigen_support)
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
if(NOT (${cppfile} STREQUAL "ellipsoid.cpp") OR TARGET CGAL::Eigen_support)
|
||||
get_filename_component(target ${cppfile} NAME_WE)
|
||||
add_executable(${target} ${cppfile})
|
||||
if (TARGET CGAL::Eigen_support)
|
||||
target_link_libraries(${target} CGAL::CGAL CGAL::Eigen_support)
|
||||
else()
|
||||
target_link_libraries(${target} CGAL::CGAL)
|
||||
endif()
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
if(NOT (${cppfile} STREQUAL "ellipsoid.cpp") OR TARGET CGAL::Eigen_support)
|
||||
get_filename_component(target ${cppfile} NAME_WE)
|
||||
add_executable(${target} ${cppfile})
|
||||
if(TARGET CGAL::Eigen_support)
|
||||
target_link_libraries(${target} CGAL::CGAL CGAL::Eigen_support)
|
||||
else()
|
||||
target_link_libraries(${target} CGAL::CGAL)
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
endif()
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,20 +1,13 @@
|
|||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Min_annulus_d_Examples )
|
||||
project(Min_annulus_d_Examples)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,20 +1,13 @@
|
|||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Min_circle_2_Examples )
|
||||
project(Min_circle_2_Examples)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,20 +1,13 @@
|
|||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Min_ellipse_2_Examples )
|
||||
project(Min_ellipse_2_Examples)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,20 +1,13 @@
|
|||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Min_quadrilateral_2_Examples )
|
||||
project(Min_quadrilateral_2_Examples)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,20 +1,13 @@
|
|||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Min_sphere_d_Examples )
|
||||
project(Min_sphere_d_Examples)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,20 +1,13 @@
|
|||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Min_sphere_of_spheres_d_Examples )
|
||||
project(Min_sphere_of_spheres_d_Examples)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,20 +1,13 @@
|
|||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Rectangular_p_center_2_Examples )
|
||||
project(Rectangular_p_center_2_Examples)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,37 +1,31 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Bounding_volumes_Tests )
|
||||
project(Bounding_volumes_Tests)
|
||||
|
||||
find_package(CGAL REQUIRED COMPONENTS Core)
|
||||
|
||||
find_package(CGAL QUIET COMPONENTS Core )
|
||||
include(${CGAL_USE_FILE})
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
# Use Eigen
|
||||
find_package(Eigen3 3.1.0 QUIET) #(3.1.0 or greater)
|
||||
include(CGAL_Eigen_support)
|
||||
|
||||
include(${CGAL_USE_FILE})
|
||||
|
||||
# Use Eigen
|
||||
find_package(Eigen3 3.1.0 QUIET) #(3.1.0 or greater)
|
||||
include(CGAL_Eigen_support)
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
if(NOT (${cppfile} STREQUAL "Approximate_min_ellipsoid_d.cpp") OR TARGET CGAL::Eigen_support)
|
||||
get_filename_component(target ${cppfile} NAME_WE)
|
||||
add_executable(${target} ${cppfile})
|
||||
if (TARGET CGAL::Eigen_support)
|
||||
target_link_libraries(${target} CGAL::CGAL CGAL::Eigen_support)
|
||||
else()
|
||||
target_link_libraries(${target} CGAL::CGAL)
|
||||
endif()
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
if(NOT (${cppfile} STREQUAL "Approximate_min_ellipsoid_d.cpp")
|
||||
OR TARGET CGAL::Eigen_support)
|
||||
get_filename_component(target ${cppfile} NAME_WE)
|
||||
add_executable(${target} ${cppfile})
|
||||
if(TARGET CGAL::Eigen_support)
|
||||
target_link_libraries(${target} CGAL::CGAL CGAL::Eigen_support)
|
||||
else()
|
||||
target_link_libraries(${target} CGAL::CGAL)
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
endif()
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,24 +1,16 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Box_intersection_d_Examples )
|
||||
project(Box_intersection_d_Examples)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,27 +1,22 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Box_intersection_d_Tests )
|
||||
project(Box_intersection_d_Tests)
|
||||
|
||||
find_package( CGAL QUIET )
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package( TBB )
|
||||
find_package(TBB)
|
||||
include(CGAL_TBB_support)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
create_single_source_cgal_program("automated_test.cpp")
|
||||
create_single_source_cgal_program("benchmark_box_intersection.cpp")
|
||||
create_single_source_cgal_program("random_set_test.cpp")
|
||||
create_single_source_cgal_program("test_box_grid.cpp")
|
||||
|
||||
create_single_source_cgal_program( "automated_test.cpp" )
|
||||
create_single_source_cgal_program( "benchmark_box_intersection.cpp" )
|
||||
create_single_source_cgal_program( "random_set_test.cpp" )
|
||||
create_single_source_cgal_program( "test_box_grid.cpp" )
|
||||
|
||||
if(TARGET CGAL::TBB_support)
|
||||
target_link_libraries(test_box_grid PUBLIC CGAL::TBB_support)
|
||||
else()
|
||||
message( STATUS "NOTICE: Intel TBB was not found. Sequential code will be used." )
|
||||
endif()
|
||||
if(TARGET CGAL::TBB_support)
|
||||
target_link_libraries(test_box_grid PUBLIC CGAL::TBB_support)
|
||||
else()
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
message(
|
||||
STATUS "NOTICE: Intel TBB was not found. Sequential code will be used.")
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -1,26 +1,25 @@
|
|||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Core_Examples )
|
||||
|
||||
|
||||
|
||||
|
||||
project(Core_Examples)
|
||||
|
||||
# CGAL and its components
|
||||
find_package( CGAL QUIET COMPONENTS Core )
|
||||
find_package(CGAL REQUIRED COMPONENTS Core)
|
||||
|
||||
if ( NOT CGAL_Core_FOUND )
|
||||
if(NOT CGAL_Core_FOUND)
|
||||
|
||||
message(STATUS "This project requires the CGAL_Core library, and will not be compiled.")
|
||||
message(
|
||||
STATUS
|
||||
"This project requires the CGAL_Core library, and will not be compiled.")
|
||||
return()
|
||||
|
||||
endif()
|
||||
|
||||
# Boost and its components
|
||||
find_package( Boost )
|
||||
find_package(Boost)
|
||||
|
||||
if ( NOT Boost_FOUND )
|
||||
if(NOT Boost_FOUND)
|
||||
|
||||
message(STATUS "This project requires the Boost library, and will not be compiled.")
|
||||
message(
|
||||
STATUS "This project requires the Boost library, and will not be compiled.")
|
||||
|
||||
return()
|
||||
|
||||
|
|
@ -34,4 +33,4 @@ include(${CGAL_USE_FILE})
|
|||
# Creating entries for all .cpp/.C files with "main" routine
|
||||
# ##########################################################
|
||||
|
||||
create_single_source_cgal_program( "delaunay.cpp" )
|
||||
create_single_source_cgal_program("delaunay.cpp")
|
||||
|
|
|
|||
|
|
@ -11,8 +11,7 @@ if(CGAL_Core_FOUND)
|
|||
set(keyword PUBLIC)
|
||||
endif()
|
||||
|
||||
CGAL_setup_CGAL_Core_dependencies(CGAL_Core ${keyword})
|
||||
cgal_setup_cgal_core_dependencies(CGAL_Core ${keyword})
|
||||
|
||||
message("libCGAL_Core is configured")
|
||||
endif()
|
||||
|
||||
|
|
|
|||
|
|
@ -6,24 +6,21 @@ if(NOT POLICY CMP0070 AND POLICY CMP0053)
|
|||
cmake_policy(SET CMP0053 OLD)
|
||||
endif()
|
||||
|
||||
|
||||
set(PACKAGE_ROOT ../..)
|
||||
|
||||
# Add several CGAL packages to the include and link paths,
|
||||
# if they lie in ${PACKAGE_ROOT}/.
|
||||
foreach(INC_DIR ${PACKAGE_ROOT}/include
|
||||
${PACKAGE_ROOT}/../CGAL_ImageIO/include )
|
||||
foreach(INC_DIR ${PACKAGE_ROOT}/include ${PACKAGE_ROOT}/../CGAL_ImageIO/include)
|
||||
if(EXISTS ${INC_DIR})
|
||||
include_directories (BEFORE ${INC_DIR})
|
||||
include_directories(BEFORE ${INC_DIR})
|
||||
endif()
|
||||
endforeach()
|
||||
foreach(LIB_DIR ${PACKAGE_ROOT}/../CGAL_ImageIO/src/CGAL_ImageIO)
|
||||
if (EXISTS ${LIB_DIR})
|
||||
link_directories (${LIB_DIR})
|
||||
if(EXISTS ${LIB_DIR})
|
||||
link_directories(${LIB_DIR})
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
|
||||
find_package(CGAL REQUIRED ImageIO)
|
||||
find_package(VTK QUIET NO_MODULE)
|
||||
|
||||
|
|
@ -35,19 +32,24 @@ if(VTK_FOUND)
|
|||
include(${VTK_USE_FILE})
|
||||
find_package(Qt${VTK_QT_VERSION} COMPONENTS QtGui)
|
||||
if(NOT TARGET Qt${VTK_QT_VERSION}::QtGui)
|
||||
message(STATUS "NOTICE: vtkRenderingQt needs Qt${VTK_QT_VERSION}, and will not be compiled.")
|
||||
message(
|
||||
STATUS
|
||||
"NOTICE: vtkRenderingQt needs Qt${VTK_QT_VERSION}, and will not be compiled."
|
||||
)
|
||||
return()
|
||||
endif()
|
||||
|
||||
add_executable( image_to_vtk_viewer image_to_vtk_viewer.cpp )
|
||||
add_to_cached_list( CGAL_EXECUTABLE_TARGETS image_to_vtk_viewer )
|
||||
add_executable(image_to_vtk_viewer image_to_vtk_viewer.cpp)
|
||||
add_to_cached_list(CGAL_EXECUTABLE_TARGETS image_to_vtk_viewer)
|
||||
|
||||
target_link_libraries( image_to_vtk_viewer
|
||||
${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES}
|
||||
${VTK_LIBRARIES} Qt${VTK_QT_VERSION}::QtGui
|
||||
)
|
||||
target_link_libraries(
|
||||
image_to_vtk_viewer ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES}
|
||||
${VTK_LIBRARIES} Qt${VTK_QT_VERSION}::QtGui)
|
||||
else()
|
||||
message(STATUS "NOTICE: This demo needs vtkRenderingQt and vtkFiltersModeling, and will not be compiled.")
|
||||
message(
|
||||
STATUS
|
||||
"NOTICE: This demo needs vtkRenderingQt and vtkFiltersModeling, and will not be compiled."
|
||||
)
|
||||
endif()
|
||||
else()
|
||||
message(STATUS "NOTICE: This demo needs VTK, and will not be compiled.")
|
||||
|
|
|
|||
|
|
@ -2,21 +2,23 @@
|
|||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( CGALimageIO_Examples )
|
||||
|
||||
project(CGALimageIO_Examples)
|
||||
|
||||
if(POLICY CMP0074)
|
||||
cmake_policy(SET CMP0074 NEW)
|
||||
endif()
|
||||
|
||||
find_package(CGAL QUIET COMPONENTS ImageIO )
|
||||
find_package(CGAL REQUIRED COMPONENTS ImageIO)
|
||||
|
||||
if(CGAL_ImageIO_FOUND)
|
||||
include(${CGAL_USE_FILE})
|
||||
|
||||
create_single_source_cgal_program( "convert_raw_image_to_inr.cpp" )
|
||||
create_single_source_cgal_program( "test_imageio.cpp" )
|
||||
create_single_source_cgal_program( "extract_a_sub_image.cpp" )
|
||||
create_single_source_cgal_program("convert_raw_image_to_inr.cpp")
|
||||
create_single_source_cgal_program("test_imageio.cpp")
|
||||
create_single_source_cgal_program("extract_a_sub_image.cpp")
|
||||
else()
|
||||
message(STATUS "NOTICE: This demo needs the CGAL ImageIO library, and will not be compiled.")
|
||||
message(
|
||||
STATUS
|
||||
"NOTICE: This demo needs the CGAL ImageIO library, and will not be compiled."
|
||||
)
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
message("Configuring libCGAL_ImageIO")
|
||||
|
||||
collect_cgal_library( CGAL_ImageIO "")
|
||||
collect_cgal_library(CGAL_ImageIO "")
|
||||
|
||||
include(CGAL_SetupCGAL_ImageIODependencies)
|
||||
|
||||
|
|
@ -8,11 +8,11 @@ if(CGAL_HEADER_ONLY)
|
|||
set(keyword "INTERFACE")
|
||||
endif()
|
||||
|
||||
CGAL_setup_CGAL_ImageIO_dependencies(CGAL_ImageIO ${keyword})
|
||||
cgal_setup_cgal_imageio_dependencies(CGAL_ImageIO ${keyword})
|
||||
|
||||
if(COMMAND add_config_flag)
|
||||
set( CGAL_HAS_IMAGEIO TRUE )
|
||||
add_config_flag( CGAL_HAS_IMAGEIO )
|
||||
set(CGAL_HAS_IMAGEIO TRUE)
|
||||
add_config_flag(CGAL_HAS_IMAGEIO)
|
||||
endif()
|
||||
|
||||
if(ZLIB_FOUND)
|
||||
|
|
|
|||
|
|
@ -1,29 +1,22 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( CGAL_ImageIO_Tests )
|
||||
|
||||
project(CGAL_ImageIO_Tests)
|
||||
|
||||
if(POLICY CMP0074)
|
||||
cmake_policy(SET CMP0074 NEW)
|
||||
endif()
|
||||
|
||||
find_package(CGAL QUIET COMPONENTS ImageIO )
|
||||
find_package(CGAL REQUIRED COMPONENTS ImageIO)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
include(${CGAL_USE_FILE})
|
||||
|
||||
if (WITH_CGAL_ImageIO)
|
||||
create_single_source_cgal_program( "test_trilinear_interpolation.cpp" )
|
||||
else()
|
||||
message(STATUS "NOTICE: Some tests require the CGAL_ImageIO library, and will not be compiled.")
|
||||
endif()
|
||||
include(${CGAL_USE_FILE})
|
||||
|
||||
if(WITH_CGAL_ImageIO)
|
||||
create_single_source_cgal_program("test_trilinear_interpolation.cpp")
|
||||
else()
|
||||
|
||||
message(STATUS "NOTICE: This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
message(
|
||||
STATUS
|
||||
"NOTICE: Some tests require the CGAL_ImageIO library, and will not be compiled."
|
||||
)
|
||||
endif()
|
||||
|
||||
|
|
|
|||
|
|
@ -6,162 +6,172 @@ if(NOT POLICY CMP0070 AND POLICY CMP0053)
|
|||
cmake_policy(SET CMP0053 OLD)
|
||||
endif()
|
||||
|
||||
macro( remove_leading_zero var )
|
||||
macro(remove_leading_zero var)
|
||||
string(SUBSTRING "${${var}}" 0 1 ONECHAR)
|
||||
string(COMPARE EQUAL "${ONECHAR}" "0" ISZERO)
|
||||
if (${ISZERO})
|
||||
if(${ISZERO})
|
||||
string(SUBSTRING "${${var}}" 1 1 ONECHAR)
|
||||
set(${var} ${ONECHAR})
|
||||
endif()
|
||||
endmacro()
|
||||
|
||||
|
||||
|
||||
#path where to build libraries
|
||||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}")
|
||||
|
||||
find_package(CGAL QUIET COMPONENTS Core)
|
||||
find_package(CGAL REQUIRED COMPONENTS Core)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
include(${CGAL_USE_FILE})
|
||||
|
||||
include(${CGAL_USE_FILE})
|
||||
|
||||
find_package(Eigen3 3.1.0) #(requires 3.1.0 or greater)
|
||||
include(CGAL_Eigen_support)
|
||||
if (NOT TARGET CGAL::Eigen_support)
|
||||
message(STATUS "NOTICE: This project requires the Eigen library, and will not be compiled.")
|
||||
return()
|
||||
endif()
|
||||
|
||||
find_package(IPE 6)
|
||||
|
||||
if ( IPE_FOUND )
|
||||
include_directories(BEFORE ${IPE_INCLUDE_DIR})
|
||||
|
||||
if (${IPE_VERSION} EQUAL "7")
|
||||
set(WITH_IPE_7 ON)
|
||||
elseif(${IPE_VERSION} EQUAL "6")
|
||||
set(WITH_IPE_7 OFF)
|
||||
else()
|
||||
message("-- Error: ${IPE_VERSION} is not a supported version of IPE (only 6 and 7 are).")
|
||||
set(IPE_FOUND FALSE)
|
||||
endif()
|
||||
# starting ipe 7.2.1, a compiler with c++11 must be used to compile ipelets
|
||||
if (${IPE_VERSION} EQUAL "7" AND
|
||||
${IPE_MINOR_VERSION_1} GREATER "1" AND
|
||||
${IPE_MINOR_VERSION_2} GREATER "0")
|
||||
message(STATUS "Starting from Ipe 7.2.1 a compiler with c++11 support must be used")
|
||||
|
||||
list(FIND CMAKE_CXX_COMPILE_FEATURES cxx_generalized_initializers has_cpp11)
|
||||
if(has_cpp11 LESS 0)
|
||||
message(STATUS "NOTICE: This demo requires a C++11 compiler and will not be compiled.")
|
||||
return()
|
||||
endif()
|
||||
|
||||
# Use C++11 for this directory and its sub-directories.
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
|
||||
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if ( IPE_FOUND AND IPE_VERSION)
|
||||
if (WITH_IPE_7)
|
||||
add_definitions(-DCGAL_USE_IPE_7)
|
||||
endif()
|
||||
|
||||
message("-- Using IPE version ${IPE_VERSION} compatibility.")
|
||||
|
||||
#setting installation directory
|
||||
get_filename_component(IPE_LIBRARY_DIR ${IPE_LIBRARIES} PATH)
|
||||
if (IPE_FOUND AND NOT IPELET_INSTALL_DIR)
|
||||
if (WITH_IPE_7)
|
||||
remove_leading_zero(IPE_MINOR_VERSION_1)
|
||||
remove_leading_zero(IPE_MINOR_VERSION_2)
|
||||
set(INSTALL_PATHS "${IPE_LIBRARY_DIR}/ipe/7.${IPE_MINOR_VERSION_1}.${IPE_MINOR_VERSION_2}/ipelets/")
|
||||
find_path(IPELET_INSTALL_DIR
|
||||
NAMES libgoodies.lua goodies.lua
|
||||
PATHS ${INSTALL_PATHS}
|
||||
DOC "The folder where ipelets will be installed"
|
||||
ENV IPELETPATH
|
||||
)
|
||||
else()
|
||||
foreach (VER RANGE 28 40)
|
||||
string(REPLACE XX ${VER} PATHC "${IPE_LIBRARY_DIR}/ipe/6.0preXX/ipelets/" )
|
||||
set(INSTALL_PATHS ${INSTALL_PATHS} ${PATHC})
|
||||
endforeach()
|
||||
set(INSTALL_PATHS ${INSTALL_PATHS} ${PATHC})
|
||||
set(INSTALL_PATHS ${INSTALL_PATHS} /usr/lib64/ipe/6.0/ipelets)
|
||||
set(INSTALL_PATHS ${INSTALL_PATHS} /usr/lib/ipe/6.0/ipelets)
|
||||
|
||||
|
||||
find_library(IPELET_INSTALL_DIR_FILES
|
||||
NAMES align
|
||||
PATHS ${INSTALL_PATHS}
|
||||
ENV IPELETPATH
|
||||
)
|
||||
if (IPELET_INSTALL_DIR_FILES)
|
||||
get_filename_component(IPELET_INSTALL_DIR ${IPELET_INSTALL_DIR_FILES} PATH)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS})
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} alpha_shapes)
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} arrangement)
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} bbox_restriction)
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} diagrams)
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} hilbert_sort)
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} hull)
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} generator)
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} mesh_2)
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} minkowski)
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} mst)
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} multi_delaunay)
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} multi_regular)
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} partition)
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} pca)
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} skeleton)
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} svdlinf)
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} triangulation)
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} circle_pencils)
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} hyperbolic)
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} distance)
|
||||
if(CGAL_Core_FOUND)
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} cone_spanners)
|
||||
endif()
|
||||
|
||||
|
||||
if ( IPELET_INSTALL_DIR )
|
||||
message(STATUS "Set Ipelets install dir: ${IPELET_INSTALL_DIR}")
|
||||
endif()
|
||||
|
||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||
|
||||
foreach(IPELET ${CGAL_IPELETS})
|
||||
add_library(CGAL_${IPELET} MODULE ${IPELET}.cpp)
|
||||
add_to_cached_list(CGAL_EXECUTABLE_TARGETS CGAL_${IPELET})
|
||||
target_link_libraries(CGAL_${IPELET} PRIVATE CGAL::CGAL CGAL::Eigen_support ${IPE_LIBRARIES})
|
||||
if ( IPELET_INSTALL_DIR )
|
||||
install(TARGETS CGAL_${IPELET} DESTINATION ${IPELET_INSTALL_DIR})
|
||||
if (WITH_IPE_7)
|
||||
install(FILES ./lua/libCGAL_${IPELET}.lua DESTINATION ${IPELET_INSTALL_DIR}) #only for ipe 7
|
||||
endif()
|
||||
endif ()
|
||||
cgal_add_compilation_test(CGAL_${IPELET})
|
||||
endforeach(IPELET)
|
||||
if(CGAL_Core_FOUND)
|
||||
target_link_libraries(CGAL_cone_spanners PRIVATE CGAL::CGAL_Core CGAL::Eigen_support)
|
||||
endif()
|
||||
#example in doc not installed
|
||||
add_library(simple_triangulation MODULE simple_triangulation.cpp)
|
||||
add_to_cached_list(CGAL_EXECUTABLE_TARGETS simple_triangulation)
|
||||
target_link_libraries(simple_triangulation CGAL::Eigen_support ${IPE_LIBRARIES})
|
||||
cgal_add_compilation_test(simple_triangulation)
|
||||
|
||||
else()
|
||||
message(STATUS "NOTICE: This program requires the Ipe include files and library, and will not be compiled.")
|
||||
endif()
|
||||
else()
|
||||
message(STATUS "NOTICE: This program requires the CGAL library, and will not be compiled.")
|
||||
find_package(Eigen3 3.1.0) #(requires 3.1.0 or greater)
|
||||
include(CGAL_Eigen_support)
|
||||
if(NOT TARGET CGAL::Eigen_support)
|
||||
message(
|
||||
STATUS
|
||||
"NOTICE: This project requires the Eigen library, and will not be compiled."
|
||||
)
|
||||
return()
|
||||
endif()
|
||||
|
||||
find_package(IPE 6)
|
||||
|
||||
if(IPE_FOUND)
|
||||
include_directories(BEFORE ${IPE_INCLUDE_DIR})
|
||||
|
||||
if(${IPE_VERSION} EQUAL "7")
|
||||
set(WITH_IPE_7 ON)
|
||||
elseif(${IPE_VERSION} EQUAL "6")
|
||||
set(WITH_IPE_7 OFF)
|
||||
else()
|
||||
message(
|
||||
"-- Error: ${IPE_VERSION} is not a supported version of IPE (only 6 and 7 are)."
|
||||
)
|
||||
set(IPE_FOUND FALSE)
|
||||
endif()
|
||||
# starting ipe 7.2.1, a compiler with c++11 must be used to compile ipelets
|
||||
if(${IPE_VERSION} EQUAL "7"
|
||||
AND ${IPE_MINOR_VERSION_1} GREATER "1"
|
||||
AND ${IPE_MINOR_VERSION_2} GREATER "0")
|
||||
message(
|
||||
STATUS
|
||||
"Starting from Ipe 7.2.1 a compiler with c++11 support must be used")
|
||||
|
||||
list(FIND CMAKE_CXX_COMPILE_FEATURES cxx_generalized_initializers has_cpp11)
|
||||
if(has_cpp11 LESS 0)
|
||||
message(
|
||||
STATUS
|
||||
"NOTICE: This demo requires a C++11 compiler and will not be compiled."
|
||||
)
|
||||
return()
|
||||
endif()
|
||||
|
||||
# Use C++11 for this directory and its sub-directories.
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
|
||||
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(IPE_FOUND AND IPE_VERSION)
|
||||
if(WITH_IPE_7)
|
||||
add_definitions(-DCGAL_USE_IPE_7)
|
||||
endif()
|
||||
|
||||
message("-- Using IPE version ${IPE_VERSION} compatibility.")
|
||||
|
||||
#setting installation directory
|
||||
get_filename_component(IPE_LIBRARY_DIR ${IPE_LIBRARIES} PATH)
|
||||
if(IPE_FOUND AND NOT IPELET_INSTALL_DIR)
|
||||
if(WITH_IPE_7)
|
||||
remove_leading_zero(IPE_MINOR_VERSION_1)
|
||||
remove_leading_zero(IPE_MINOR_VERSION_2)
|
||||
set(INSTALL_PATHS
|
||||
"${IPE_LIBRARY_DIR}/ipe/7.${IPE_MINOR_VERSION_1}.${IPE_MINOR_VERSION_2}/ipelets/"
|
||||
)
|
||||
find_path(
|
||||
IPELET_INSTALL_DIR
|
||||
NAMES libgoodies.lua goodies.lua
|
||||
PATHS ${INSTALL_PATHS}
|
||||
DOC "The folder where ipelets will be installed" ENV IPELETPATH)
|
||||
else()
|
||||
foreach(VER RANGE 28 40)
|
||||
string(REPLACE XX ${VER} PATHC
|
||||
"${IPE_LIBRARY_DIR}/ipe/6.0preXX/ipelets/")
|
||||
set(INSTALL_PATHS ${INSTALL_PATHS} ${PATHC})
|
||||
endforeach()
|
||||
set(INSTALL_PATHS ${INSTALL_PATHS} ${PATHC})
|
||||
set(INSTALL_PATHS ${INSTALL_PATHS} /usr/lib64/ipe/6.0/ipelets)
|
||||
set(INSTALL_PATHS ${INSTALL_PATHS} /usr/lib/ipe/6.0/ipelets)
|
||||
|
||||
find_library(
|
||||
IPELET_INSTALL_DIR_FILES
|
||||
NAMES align
|
||||
PATHS ${INSTALL_PATHS} ENV IPELETPATH)
|
||||
if(IPELET_INSTALL_DIR_FILES)
|
||||
get_filename_component(IPELET_INSTALL_DIR ${IPELET_INSTALL_DIR_FILES}
|
||||
PATH)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS})
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} alpha_shapes)
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} arrangement)
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} bbox_restriction)
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} diagrams)
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} hilbert_sort)
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} hull)
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} generator)
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} mesh_2)
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} minkowski)
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} mst)
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} multi_delaunay)
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} multi_regular)
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} partition)
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} pca)
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} skeleton)
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} svdlinf)
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} triangulation)
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} circle_pencils)
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} hyperbolic)
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} distance)
|
||||
if(CGAL_Core_FOUND)
|
||||
set(CGAL_IPELETS ${CGAL_IPELETS} cone_spanners)
|
||||
endif()
|
||||
|
||||
if(IPELET_INSTALL_DIR)
|
||||
message(STATUS "Set Ipelets install dir: ${IPELET_INSTALL_DIR}")
|
||||
endif()
|
||||
|
||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||
|
||||
foreach(IPELET ${CGAL_IPELETS})
|
||||
add_library(CGAL_${IPELET} MODULE ${IPELET}.cpp)
|
||||
add_to_cached_list(CGAL_EXECUTABLE_TARGETS CGAL_${IPELET})
|
||||
target_link_libraries(CGAL_${IPELET} PRIVATE CGAL::CGAL CGAL::Eigen_support
|
||||
${IPE_LIBRARIES})
|
||||
if(IPELET_INSTALL_DIR)
|
||||
install(TARGETS CGAL_${IPELET} DESTINATION ${IPELET_INSTALL_DIR})
|
||||
if(WITH_IPE_7)
|
||||
install(FILES ./lua/libCGAL_${IPELET}.lua
|
||||
DESTINATION ${IPELET_INSTALL_DIR}) #only for ipe 7
|
||||
endif()
|
||||
endif()
|
||||
cgal_add_compilation_test(CGAL_${IPELET})
|
||||
endforeach(IPELET)
|
||||
if(CGAL_Core_FOUND)
|
||||
target_link_libraries(CGAL_cone_spanners PRIVATE CGAL::CGAL_Core
|
||||
CGAL::Eigen_support)
|
||||
endif()
|
||||
#example in doc not installed
|
||||
add_library(simple_triangulation MODULE simple_triangulation.cpp)
|
||||
add_to_cached_list(CGAL_EXECUTABLE_TARGETS simple_triangulation)
|
||||
target_link_libraries(simple_triangulation CGAL::Eigen_support
|
||||
${IPE_LIBRARIES})
|
||||
cgal_add_compilation_test(simple_triangulation)
|
||||
|
||||
else()
|
||||
message(
|
||||
STATUS
|
||||
"NOTICE: This program requires the Ipe include files and library, and will not be compiled."
|
||||
)
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -1,24 +1,16 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( CGAL_ipelets_Examples )
|
||||
project(CGAL_ipelets_Examples)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -3,23 +3,27 @@
|
|||
# Minimal version of CMake:
|
||||
cmake_minimum_required(VERSION 3.1)
|
||||
|
||||
message( "== CMake setup ==" )
|
||||
message("== CMake setup ==")
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project(CGAL CXX C)
|
||||
export(PACKAGE CGAL)
|
||||
|
||||
set( CGAL_BRANCH_BUILD ON CACHE INTERNAL "Create CGAL from a Git branch" FORCE)
|
||||
set(CGAL_BRANCH_BUILD
|
||||
ON
|
||||
CACHE INTERNAL "Create CGAL from a Git branch" FORCE)
|
||||
|
||||
include(${CMAKE_SOURCE_DIR}/CGALConfigVersion.cmake)
|
||||
include(${CMAKE_SOURCE_DIR}/Installation/cmake/modules/CGAL_SCM.cmake)
|
||||
CGAL_detect_git(${CMAKE_SOURCE_DIR})
|
||||
cgal_detect_git(${CMAKE_SOURCE_DIR})
|
||||
|
||||
function(CGAL_error_if_detect_in_source_build)
|
||||
# If in a Git repository, forbid in-source builds
|
||||
get_filename_component(srcdir "${CMAKE_SOURCE_DIR}" REALPATH)
|
||||
get_filename_component(bindir "${CMAKE_BINARY_DIR}" REALPATH)
|
||||
if("${srcdir}" STREQUAL "${bindir}")
|
||||
message(FATAL_ERROR [=[
|
||||
message(
|
||||
FATAL_ERROR
|
||||
[=[
|
||||
############
|
||||
Since CGAL-4.12.1, you can no longer configure an in-source build in a Git
|
||||
repository. See this StackOverlow question and answers for a way to create
|
||||
|
|
@ -30,19 +34,23 @@ a separate build directory:
|
|||
endif()
|
||||
endfunction()
|
||||
|
||||
if ( "${CGAL_SCM_NAME}" STREQUAL "git" )
|
||||
CGAL_error_if_detect_in_source_build()
|
||||
if("${CGAL_SCM_NAME}" STREQUAL "git")
|
||||
cgal_error_if_detect_in_source_build()
|
||||
endif()
|
||||
|
||||
# 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)
|
||||
option(
|
||||
CGAL_REPORT_DUPLICATE_FILES
|
||||
"Switch on to start (naive) detection of duplicate source- and headerfiles in packages"
|
||||
OFF)
|
||||
|
||||
message( "== CMake setup (DONE) ==\n" )
|
||||
message("== CMake setup (DONE) ==\n")
|
||||
|
||||
# Enable testing with BUILD_TESTING
|
||||
option(BUILD_TESTING "Build the testing tree." OFF)
|
||||
if(BUILD_TESTING AND NOT POLICY CMP0064)
|
||||
message(FATAL_ERROR "CGAL support of CTest requires CMake version 3.4 or later.
|
||||
message(
|
||||
FATAL_ERROR "CGAL support of CTest requires CMake version 3.4 or later.
|
||||
The variable BUILD_TESTING must be set of OFF.")
|
||||
endif()
|
||||
if(BUILD_TESTING)
|
||||
|
|
@ -50,16 +58,15 @@ if(BUILD_TESTING)
|
|||
endif()
|
||||
|
||||
# and finally start actual build
|
||||
add_subdirectory( Installation )
|
||||
add_subdirectory( Documentation/doc)
|
||||
add_subdirectory(Installation)
|
||||
add_subdirectory(Documentation/doc)
|
||||
|
||||
if(NOT TARGET uninstall)
|
||||
configure_file(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in
|
||||
${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake
|
||||
IMMEDIATE @ONLY)
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in
|
||||
${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake IMMEDIATE @ONLY)
|
||||
|
||||
add_custom_target(uninstall
|
||||
COMMAND ${CMAKE_COMMAND} -P
|
||||
${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
|
||||
add_custom_target(
|
||||
uninstall COMMAND ${CMAKE_COMMAND} -P
|
||||
${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -1,24 +1,16 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Circular_kernel_2_Examples )
|
||||
project(Circular_kernel_2_Examples)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,41 +1,31 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Circular_kernel_2_Tests )
|
||||
project(Circular_kernel_2_Tests)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
include_directories (BEFORE include)
|
||||
include_directories(BEFORE include)
|
||||
|
||||
# The following `include_directories` is used in the git layout
|
||||
include_directories (BEFORE ../../../Kernel_23/test/Kernel_23/include)
|
||||
include_directories(BEFORE ../../../Kernel_23/test/Kernel_23/include)
|
||||
|
||||
# The following `include_directories` is used in the layout of the
|
||||
# internal releases tarballs
|
||||
include_directories (BEFORE ../Kernel_23/include)
|
||||
include_directories(BEFORE ../Kernel_23/include)
|
||||
|
||||
create_single_source_cgal_program( "test_Circular_kernel.cpp" )
|
||||
create_single_source_cgal_program( "test_Lazy_circular_kernel.cpp" )
|
||||
create_single_source_cgal_program( "test_Exact_circular_kernel.cpp" )
|
||||
create_single_source_cgal_program( "test_Filtered_bbox_circular_kernel.cpp" )
|
||||
create_single_source_cgal_program( "test_Line_arc.cpp" )
|
||||
create_single_source_cgal_program( "test_Circular_kernel_basic.cpp" )
|
||||
create_single_source_cgal_program( "test_Exact_circular_kernel_basic.cpp" )
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "NOTICE: This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
create_single_source_cgal_program("test_Circular_kernel.cpp")
|
||||
create_single_source_cgal_program("test_Lazy_circular_kernel.cpp")
|
||||
create_single_source_cgal_program("test_Exact_circular_kernel.cpp")
|
||||
create_single_source_cgal_program("test_Filtered_bbox_circular_kernel.cpp")
|
||||
create_single_source_cgal_program("test_Line_arc.cpp")
|
||||
create_single_source_cgal_program("test_Circular_kernel_basic.cpp")
|
||||
create_single_source_cgal_program("test_Exact_circular_kernel_basic.cpp")
|
||||
|
||||
if(BUILD_TESTING)
|
||||
set_tests_properties(
|
||||
execution___of__test_Circular_kernel_basic
|
||||
execution___of__test_Exact_circular_kernel_basic
|
||||
execution___of__test_Circular_kernel_basic
|
||||
execution___of__test_Exact_circular_kernel_basic
|
||||
PROPERTIES RESOURCE_LOCK Circular_kernel_basic)
|
||||
endif()
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project (Circular_kernel_3_Demo)
|
||||
project(Circular_kernel_3_Demo)
|
||||
|
||||
if(NOT POLICY CMP0070 AND POLICY CMP0053)
|
||||
# Only set CMP0053 to OLD with CMake<3.10, otherwise there is a warning.
|
||||
|
|
@ -10,19 +10,20 @@ if(POLICY CMP0071)
|
|||
cmake_policy(SET CMP0071 NEW)
|
||||
endif()
|
||||
|
||||
find_package(CGAL COMPONENTS Qt5)
|
||||
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt5)
|
||||
|
||||
find_package(Qt5 QUIET COMPONENTS Xml Script OpenGL)
|
||||
|
||||
if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||
if(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||
|
||||
add_executable (Circular_kernel_3 Circular_kernel_3.cpp Viewer.cpp ${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES})
|
||||
add_executable(
|
||||
Circular_kernel_3 Circular_kernel_3.cpp Viewer.cpp
|
||||
${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES})
|
||||
|
||||
add_to_cached_list( CGAL_EXECUTABLE_TARGETS Circular_kernel_3 )
|
||||
add_to_cached_list(CGAL_EXECUTABLE_TARGETS Circular_kernel_3)
|
||||
|
||||
target_link_libraries( Circular_kernel_3 PRIVATE
|
||||
CGAL::CGAL CGAL::CGAL_Qt5
|
||||
Qt5::OpenGL Qt5::Gui)
|
||||
target_link_libraries(Circular_kernel_3 PRIVATE CGAL::CGAL CGAL::CGAL_Qt5
|
||||
Qt5::OpenGL Qt5::Gui)
|
||||
|
||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||
cgal_add_compilation_test(Circular_kernel_3)
|
||||
|
|
@ -32,6 +33,8 @@ if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND)
|
|||
|
||||
else()
|
||||
|
||||
message(STATUS "NOTICE: This demo requires CGAL, and Qt5, and will not be compiled.")
|
||||
message(
|
||||
STATUS "NOTICE: This demo requires CGAL, and Qt5, and will not be compiled."
|
||||
)
|
||||
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -1,24 +1,16 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Circular_kernel_3_Examples )
|
||||
project(Circular_kernel_3_Examples)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,35 +1,25 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Circular_kernel_3_Tests )
|
||||
project(Circular_kernel_3_Tests)
|
||||
|
||||
find_package(CGAL QUIET COMPONENTS Core )
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
find_package(CGAL REQUIRED COMPONENTS Core)
|
||||
|
||||
include(${CGAL_USE_FILE})
|
||||
|
||||
include_directories (BEFORE include)
|
||||
include_directories(BEFORE include)
|
||||
|
||||
# The following `include_directories` is used in the git layout
|
||||
include_directories (BEFORE ../../../Kernel_23/test/Kernel_23/include)
|
||||
include_directories(BEFORE ../../../Kernel_23/test/Kernel_23/include)
|
||||
|
||||
# The following `include_directories` is used in the layout of the
|
||||
# internal releases tarballs
|
||||
include_directories (BEFORE ../Kernel_23/include)
|
||||
|
||||
create_single_source_cgal_program( "test_Spherical_kernel.cpp" )
|
||||
create_single_source_cgal_program( "test_Spherical_kernel_basics.cpp" )
|
||||
create_single_source_cgal_program( "test_Exact_spherical_kernel.cpp" )
|
||||
create_single_source_cgal_program( "test_Lazy_Spherical_kernel.cpp" )
|
||||
create_single_source_cgal_program( "test_Lazy_spherical_kernel_basics.cpp" )
|
||||
create_single_source_cgal_program( "test_Spherical_kernel_with_core.cpp" )
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "NOTICE: This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
include_directories(BEFORE ../Kernel_23/include)
|
||||
|
||||
create_single_source_cgal_program("test_Spherical_kernel.cpp")
|
||||
create_single_source_cgal_program("test_Spherical_kernel_basics.cpp")
|
||||
create_single_source_cgal_program("test_Exact_spherical_kernel.cpp")
|
||||
create_single_source_cgal_program("test_Lazy_Spherical_kernel.cpp")
|
||||
create_single_source_cgal_program("test_Lazy_spherical_kernel_basics.cpp")
|
||||
create_single_source_cgal_program("test_Spherical_kernel_with_core.cpp")
|
||||
|
|
|
|||
|
|
@ -1,24 +1,16 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Circulator_Examples )
|
||||
project(Circulator_Examples)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,24 +1,16 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Circulator_Tests )
|
||||
project(Circulator_Tests)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -2,63 +2,71 @@
|
|||
# This is the CMake script for compiling a set of CGAL applications.
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Classification_Examples )
|
||||
|
||||
project(Classification_Examples)
|
||||
|
||||
# CGAL and its components
|
||||
find_package( CGAL QUIET COMPONENTS )
|
||||
|
||||
if ( NOT CGAL_FOUND )
|
||||
message(STATUS "This project requires the CGAL library, and will not be compiled.")
|
||||
return()
|
||||
endif()
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
# Boost and its components
|
||||
find_package( Boost REQUIRED )
|
||||
find_package(Boost REQUIRED)
|
||||
|
||||
if ( NOT Boost_FOUND )
|
||||
message(STATUS "This project requires the Boost library, and will not be compiled.")
|
||||
if(NOT Boost_FOUND)
|
||||
message(
|
||||
STATUS "This project requires the Boost library, and will not be compiled.")
|
||||
return()
|
||||
endif()
|
||||
|
||||
set(Classification_dependencies_met TRUE)
|
||||
|
||||
find_package( Boost OPTIONAL_COMPONENTS serialization iostreams )
|
||||
find_package(Boost OPTIONAL_COMPONENTS serialization iostreams)
|
||||
include(CGAL_Boost_serialization_support)
|
||||
include(CGAL_Boost_iostreams_support)
|
||||
|
||||
if (NOT TARGET CGAL::Boost_serialization_support)
|
||||
message(STATUS "NOTICE: This project requires Boost Serialization, and will not be compiled.")
|
||||
if(NOT TARGET CGAL::Boost_serialization_support)
|
||||
message(
|
||||
STATUS
|
||||
"NOTICE: This project requires Boost Serialization, and will not be compiled."
|
||||
)
|
||||
set(Classification_dependencies_met FALSE)
|
||||
endif()
|
||||
if (NOT TARGET CGAL::Boost_iostreams_support)
|
||||
message(STATUS "NOTICE: This project requires Boost IO Streams, and will not be compiled.")
|
||||
if(NOT TARGET CGAL::Boost_iostreams_support)
|
||||
message(
|
||||
STATUS
|
||||
"NOTICE: This project requires Boost IO Streams, and will not be compiled."
|
||||
)
|
||||
set(Classification_dependencies_met FALSE)
|
||||
endif()
|
||||
|
||||
find_package(OpenCV QUIET COMPONENTS core ml) # Need core + machine learning
|
||||
include(CGAL_OpenCV_support)
|
||||
if (NOT TARGET CGAL::OpenCV_support)
|
||||
message(STATUS "NOTICE: OpenCV was not found. OpenCV random forest predicate for classification won't be available.")
|
||||
if(NOT TARGET CGAL::OpenCV_support)
|
||||
message(
|
||||
STATUS
|
||||
"NOTICE: OpenCV was not found. OpenCV random forest predicate for classification won't be available."
|
||||
)
|
||||
endif()
|
||||
|
||||
find_package(TensorFlow QUIET)
|
||||
include(CGAL_TensorFlow_support)
|
||||
if (NOT TARGET CGAL::TensorFlow_support)
|
||||
message(STATUS "NOTICE: TensorFlow was not found. TensorFlow neural network predicate for classification won't be available.")
|
||||
if(NOT TARGET CGAL::TensorFlow_support)
|
||||
message(
|
||||
STATUS
|
||||
"NOTICE: TensorFlow was not found. TensorFlow neural network predicate for classification won't be available."
|
||||
)
|
||||
endif()
|
||||
|
||||
find_package(Eigen3 3.1.0 REQUIRED) #(3.1.0 or greater)
|
||||
include(CGAL_Eigen_support)
|
||||
if (NOT TARGET CGAL::Eigen_support)
|
||||
message(STATUS "This project requires the Eigen library, and will not be compiled.")
|
||||
if(NOT TARGET CGAL::Eigen_support)
|
||||
message(
|
||||
STATUS "This project requires the Eigen library, and will not be compiled.")
|
||||
set(Classification_dependencies_met FALSE)
|
||||
endif()
|
||||
|
||||
find_package(TBB QUIET)
|
||||
include(CGAL_TBB_support)
|
||||
|
||||
if (NOT Classification_dependencies_met)
|
||||
if(NOT Classification_dependencies_met)
|
||||
return()
|
||||
endif()
|
||||
|
||||
|
|
@ -73,14 +81,17 @@ create_single_source_cgal_program( "example_deprecated_conversion.cpp" )
|
|||
|
||||
if (TARGET CGAL::OpenCV_support)
|
||||
create_single_source_cgal_program( "example_opencv_random_forest.cpp" )
|
||||
target_link_libraries(example_opencv_random_forest PUBLIC CGAL::OpenCV_support)
|
||||
target_link_libraries(example_opencv_random_forest
|
||||
PUBLIC CGAL::OpenCV_support)
|
||||
endif()
|
||||
|
||||
if (TARGET CGAL::TensorFlow_support)
|
||||
create_single_source_cgal_program( "example_tensorflow_neural_network.cpp" )
|
||||
target_link_libraries(example_opencv_random_forest PUBLIC CGAL::TensorFlow_support)
|
||||
if(TARGET CGAL::TensorFlow_support)
|
||||
create_single_source_cgal_program("example_tensorflow_neural_network.cpp")
|
||||
target_link_libraries(example_opencv_random_forest
|
||||
PUBLIC CGAL::TensorFlow_support)
|
||||
endif()
|
||||
|
||||
|
||||
foreach(target
|
||||
example_classification
|
||||
example_ethz_random_forest
|
||||
|
|
@ -93,10 +104,9 @@ foreach(target
|
|||
gis_tutorial_example
|
||||
example_deprecated_conversion)
|
||||
if(TARGET ${target})
|
||||
target_link_libraries(${target} PUBLIC
|
||||
CGAL::Eigen_support
|
||||
CGAL::Boost_iostreams_support
|
||||
CGAL::Boost_serialization_support)
|
||||
target_link_libraries(
|
||||
${target} PUBLIC CGAL::Eigen_support CGAL::Boost_iostreams_support
|
||||
CGAL::Boost_serialization_support)
|
||||
if(TARGET CGAL::TBB_support)
|
||||
target_link_libraries(${target} PUBLIC CGAL::TBB_support)
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -2,62 +2,63 @@
|
|||
# This is the CMake script for compiling a set of CGAL applications.
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Classification_Tests )
|
||||
|
||||
project(Classification_Tests)
|
||||
|
||||
# CGAL and its components
|
||||
find_package( CGAL QUIET COMPONENTS )
|
||||
|
||||
if ( NOT CGAL_FOUND )
|
||||
message(STATUS "This project requires the CGAL library, and will not be compiled.")
|
||||
return()
|
||||
endif()
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
# Boost and its components
|
||||
find_package( Boost REQUIRED )
|
||||
find_package(Boost REQUIRED)
|
||||
|
||||
if ( NOT Boost_FOUND )
|
||||
message(STATUS "This project requires the Boost library, and will not be compiled.")
|
||||
if(NOT Boost_FOUND)
|
||||
message(
|
||||
STATUS "This project requires the Boost library, and will not be compiled.")
|
||||
return()
|
||||
endif()
|
||||
|
||||
set(Classification_dependencies_met TRUE)
|
||||
|
||||
find_package( Boost OPTIONAL_COMPONENTS serialization iostreams )
|
||||
find_package(Boost OPTIONAL_COMPONENTS serialization iostreams)
|
||||
include(CGAL_Boost_serialization_support)
|
||||
include(CGAL_Boost_iostreams_support)
|
||||
|
||||
if (NOT TARGET CGAL::Boost_serialization_support)
|
||||
message(STATUS "NOTICE: This project requires Boost Serialization, and will not be compiled.")
|
||||
if(NOT TARGET CGAL::Boost_serialization_support)
|
||||
message(
|
||||
STATUS
|
||||
"NOTICE: This project requires Boost Serialization, and will not be compiled."
|
||||
)
|
||||
set(Classification_dependencies_met FALSE)
|
||||
endif()
|
||||
if (NOT TARGET CGAL::Boost_iostreams_support)
|
||||
message(STATUS "NOTICE: This project requires Boost IO Streams, and will not be compiled.")
|
||||
if(NOT TARGET CGAL::Boost_iostreams_support)
|
||||
message(
|
||||
STATUS
|
||||
"NOTICE: This project requires Boost IO Streams, and will not be compiled."
|
||||
)
|
||||
set(Classification_dependencies_met FALSE)
|
||||
endif()
|
||||
|
||||
find_package(Eigen3 3.1.0 REQUIRED) #(3.1.0 or greater)
|
||||
include(CGAL_Eigen_support)
|
||||
if (NOT TARGET CGAL::Eigen_support)
|
||||
message(STATUS "This project requires the Eigen library, and will not be compiled.")
|
||||
if(NOT TARGET CGAL::Eigen_support)
|
||||
message(
|
||||
STATUS "This project requires the Eigen library, and will not be compiled.")
|
||||
set(Classification_dependencies_met FALSE)
|
||||
endif()
|
||||
|
||||
find_package(TBB QUIET)
|
||||
include(CGAL_TBB_support)
|
||||
|
||||
if (NOT Classification_dependencies_met)
|
||||
if(NOT Classification_dependencies_met)
|
||||
return()
|
||||
endif()
|
||||
|
||||
create_single_source_cgal_program( "test_classification_point_set.cpp" )
|
||||
create_single_source_cgal_program( "test_classification_io.cpp" )
|
||||
create_single_source_cgal_program("test_classification_point_set.cpp")
|
||||
create_single_source_cgal_program("test_classification_io.cpp")
|
||||
|
||||
foreach(target test_classification_point_set test_classification_io)
|
||||
target_link_libraries(${target} PUBLIC
|
||||
CGAL::Eigen_support
|
||||
CGAL::Boost_iostreams_support
|
||||
CGAL::Boost_serialization_support)
|
||||
target_link_libraries(
|
||||
${target} PUBLIC CGAL::Eigen_support CGAL::Boost_iostreams_support
|
||||
CGAL::Boost_serialization_support)
|
||||
if(TARGET CGAL::TBB_support)
|
||||
target_link_libraries(${target} PUBLIC CGAL::TBB_support)
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -1,23 +1,16 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Combinatorial_map_Examples )
|
||||
project(Combinatorial_map_Examples)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,29 +1,21 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Combinatorial_map_Tests )
|
||||
project(Combinatorial_map_Tests)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
find_package( OpenMesh QUIET )
|
||||
if (TARGET OpenMesh::OpenMesh)
|
||||
target_link_libraries(Combinatorial_map_copy_test PRIVATE OpenMesh::OpenMesh)
|
||||
endif()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
||||
find_package(OpenMesh QUIET)
|
||||
if(TARGET OpenMesh::OpenMesh)
|
||||
target_link_libraries(Combinatorial_map_copy_test PRIVATE OpenMesh::OpenMesh)
|
||||
endif()
|
||||
|
||||
|
|
|
|||
|
|
@ -1,28 +1,32 @@
|
|||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Cone_spanners_2_Examples )
|
||||
project(Cone_spanners_2_Examples)
|
||||
|
||||
find_package(CGAL REQUIRED QUIET OPTIONAL_COMPONENTS Core)
|
||||
include(${CGAL_USE_FILE})
|
||||
find_package(LEDA QUIET)
|
||||
|
||||
if ( CGAL_Core_FOUND OR LEDA_FOUND )
|
||||
if (MSVC)
|
||||
if(CGAL_Core_FOUND OR LEDA_FOUND)
|
||||
if(MSVC)
|
||||
# Turn off a boost related warning that appears with VC2015
|
||||
# boost_1_65_1\boost\graph\named_function_params.hpp(240) :
|
||||
# warning C4172: returning address of local variable or temporary
|
||||
SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4172")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4172")
|
||||
endif()
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL_Core library (or LEDA), and will not be compiled.")
|
||||
message(
|
||||
STATUS
|
||||
"This program requires the CGAL_Core library (or LEDA), and will not be compiled."
|
||||
)
|
||||
|
||||
endif()
|
||||
|
||||
|
|
|
|||
|
|
@ -1,26 +1,29 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Cone_spanners_2_Tests )
|
||||
project(Cone_spanners_2_Tests)
|
||||
|
||||
find_package(CGAL REQUIRED COMPONENTS Core)
|
||||
|
||||
find_package(CGAL QUIET COMPONENTS Core)
|
||||
|
||||
if ( CGAL_FOUND AND CGAL_Core_FOUND)
|
||||
if(CGAL_Core_FOUND)
|
||||
include(${CGAL_USE_FILE})
|
||||
include_directories (BEFORE "include")
|
||||
include_directories(BEFORE "include")
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL and CGAL_Core libraries, and will not be compiled.")
|
||||
message(
|
||||
STATUS
|
||||
"This program requires the CGAL and CGAL_Core libraries, and will not be compiled."
|
||||
)
|
||||
|
||||
endif()
|
||||
|
||||
|
|
|
|||
|
|
@ -1,24 +1,16 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Convex_decomposition_3_Examples )
|
||||
project(Convex_decomposition_3_Examples)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,24 +1,16 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Convex_decomposition_3_Tests )
|
||||
project(Convex_decomposition_3_Tests)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,26 +1,18 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Convex_hull_2_Examples )
|
||||
project(Convex_hull_2_Examples)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
include_directories (BEFORE "include")
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
include_directories(BEFORE "include")
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,26 +1,18 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Convex_hull_2_Tests )
|
||||
project(Convex_hull_2_Tests)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
include_directories (BEFORE "include")
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
include_directories(BEFORE "include")
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,9 +1,8 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Convex_hull_3_Demo )
|
||||
project(Convex_hull_3_Demo)
|
||||
|
||||
if(NOT POLICY CMP0070 AND POLICY CMP0053)
|
||||
# Only set CMP0053 to OLD with CMake<3.10, otherwise there is a warning.
|
||||
|
|
@ -12,15 +11,6 @@ endif()
|
|||
|
||||
set_property(DIRECTORY PROPERTY CGAL_NO_TESTING TRUE)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
create_single_source_cgal_program( "quickhull_3_demo.cpp" )
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
create_single_source_cgal_program("quickhull_3_demo.cpp")
|
||||
|
|
|
|||
|
|
@ -2,35 +2,27 @@
|
|||
# This is the CMake script for compiling a set of CGAL applications.
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Convex_hull_3_Examples )
|
||||
|
||||
|
||||
project(Convex_hull_3_Examples)
|
||||
|
||||
# CGAL and its components
|
||||
find_package( CGAL QUIET COMPONENTS )
|
||||
|
||||
if ( NOT CGAL_FOUND )
|
||||
|
||||
message(STATUS "This project requires the CGAL library, and will not be compiled.")
|
||||
return()
|
||||
|
||||
endif()
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
# Boost and its components
|
||||
find_package( Boost REQUIRED )
|
||||
find_package(Boost REQUIRED)
|
||||
|
||||
if ( NOT Boost_FOUND )
|
||||
if(NOT Boost_FOUND)
|
||||
|
||||
message(STATUS "This project requires the Boost library, and will not be compiled.")
|
||||
message(
|
||||
STATUS "This project requires the Boost library, and will not be compiled.")
|
||||
|
||||
return()
|
||||
|
||||
endif()
|
||||
|
||||
find_package( OpenMesh QUIET )
|
||||
find_package(OpenMesh QUIET)
|
||||
|
||||
if ( OpenMesh_FOUND )
|
||||
include( UseOpenMesh )
|
||||
if(OpenMesh_FOUND)
|
||||
include(UseOpenMesh)
|
||||
else()
|
||||
message(STATUS "Examples that use OpenMesh will not be compiled.")
|
||||
endif()
|
||||
|
|
@ -42,32 +34,30 @@ endif()
|
|||
# Creating entries for all C++ files with "main" routine
|
||||
# ##########################################################
|
||||
|
||||
create_single_source_cgal_program( "dynamic_hull_3.cpp" )
|
||||
create_single_source_cgal_program("dynamic_hull_3.cpp")
|
||||
|
||||
create_single_source_cgal_program( "dynamic_hull_LCC_3.cpp" )
|
||||
create_single_source_cgal_program("dynamic_hull_LCC_3.cpp")
|
||||
|
||||
create_single_source_cgal_program( "dynamic_hull_SM_3.cpp" )
|
||||
create_single_source_cgal_program("dynamic_hull_SM_3.cpp")
|
||||
|
||||
create_single_source_cgal_program( "halfspace_intersection_3.cpp" )
|
||||
create_single_source_cgal_program("halfspace_intersection_3.cpp")
|
||||
|
||||
create_single_source_cgal_program( "lloyd_algorithm.cpp" )
|
||||
create_single_source_cgal_program("lloyd_algorithm.cpp")
|
||||
|
||||
create_single_source_cgal_program( "quickhull_3.cpp" )
|
||||
create_single_source_cgal_program("quickhull_3.cpp")
|
||||
|
||||
create_single_source_cgal_program( "graph_hull_3.cpp" )
|
||||
create_single_source_cgal_program("graph_hull_3.cpp")
|
||||
|
||||
create_single_source_cgal_program("quickhull_any_dim_3.cpp")
|
||||
|
||||
create_single_source_cgal_program( "quickhull_any_dim_3.cpp" )
|
||||
|
||||
create_single_source_cgal_program( "extreme_points_3_sm.cpp" )
|
||||
|
||||
create_single_source_cgal_program( "extreme_indices_3.cpp" )
|
||||
create_single_source_cgal_program("extreme_points_3_sm.cpp")
|
||||
|
||||
create_single_source_cgal_program("extreme_indices_3.cpp")
|
||||
|
||||
if(OpenMesh_FOUND)
|
||||
create_single_source_cgal_program( "quickhull_OM_3.cpp" )
|
||||
create_single_source_cgal_program( "dynamic_hull_OM_3.cpp" )
|
||||
create_single_source_cgal_program("quickhull_OM_3.cpp")
|
||||
create_single_source_cgal_program("dynamic_hull_OM_3.cpp")
|
||||
|
||||
target_link_libraries( quickhull_OM_3 PRIVATE ${OPENMESH_LIBRARIES} )
|
||||
target_link_libraries( dynamic_hull_OM_3 PRIVATE ${OPENMESH_LIBRARIES} )
|
||||
target_link_libraries(quickhull_OM_3 PRIVATE ${OPENMESH_LIBRARIES})
|
||||
target_link_libraries(dynamic_hull_OM_3 PRIVATE ${OPENMESH_LIBRARIES})
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -1,34 +1,26 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Convex_hull_3_Tests )
|
||||
project(Convex_hull_3_Tests)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
find_package( OpenMesh QUIET )
|
||||
|
||||
if ( OpenMesh_FOUND )
|
||||
include( UseOpenMesh )
|
||||
else()
|
||||
message(STATUS "Examples that use OpenMesh will not be compiled.")
|
||||
endif()
|
||||
|
||||
include_directories (BEFORE "include")
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
find_package(OpenMesh QUIET)
|
||||
|
||||
if(OpenMesh_FOUND)
|
||||
include(UseOpenMesh)
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
message(STATUS "Examples that use OpenMesh will not be compiled.")
|
||||
endif()
|
||||
|
||||
include_directories(BEFORE "include")
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,26 +1,18 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Convex_hull_d_Tests )
|
||||
project(Convex_hull_d_Tests)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
include_directories (BEFORE "include")
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
include_directories(BEFORE "include")
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,24 +1,16 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Distance_2_Tests )
|
||||
project(Distance_2_Tests)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,31 +1,23 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Distance_3_Tests )
|
||||
project(Distance_3_Tests)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
if (MSVC)
|
||||
# Turn off a VC++ warning on a potential division by zero
|
||||
# in Cartesian_kernel/include/CGAL/constructions/kernel_ftC3.h
|
||||
# where CGAL_assume() does not help
|
||||
SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4723")
|
||||
endif()
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
if(MSVC)
|
||||
# Turn off a VC++ warning on a potential division by zero
|
||||
# in Cartesian_kernel/include/CGAL/constructions/kernel_ftC3.h
|
||||
# where CGAL_assume() does not help
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4723")
|
||||
endif()
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -4,13 +4,15 @@ project(Documentation NONE)
|
|||
# Minimal version of CMake:
|
||||
|
||||
# Check whether this cmake script is the top level one
|
||||
if ( ${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
# decide if this is a branch build
|
||||
if ( NOT EXISTS "${CMAKE_SOURCE_DIR}/../VERSION")
|
||||
set(CGAL_BRANCH_BUILD ON CACHE INTERNAL "CGAL Branch build")
|
||||
if(NOT EXISTS "${CMAKE_SOURCE_DIR}/../VERSION")
|
||||
set(CGAL_BRANCH_BUILD
|
||||
ON
|
||||
CACHE INTERNAL "CGAL Branch build")
|
||||
endif()
|
||||
|
||||
if (CGAL_BRANCH_BUILD)
|
||||
if(CGAL_BRANCH_BUILD)
|
||||
set(CGAL_ROOT "${CMAKE_SOURCE_DIR}/../..")
|
||||
else()
|
||||
set(CGAL_ROOT "${CMAKE_SOURCE_DIR}/..")
|
||||
|
|
@ -34,14 +36,20 @@ endif()
|
|||
|
||||
#starting from cmake 3.9 the usage of DOXYGEN_EXECUTABLE is deprecated
|
||||
if(TARGET Doxygen::doxygen)
|
||||
get_property(DOXYGEN_EXECUTABLE TARGET Doxygen::doxygen PROPERTY IMPORTED_LOCATION)
|
||||
get_property(
|
||||
DOXYGEN_EXECUTABLE
|
||||
TARGET Doxygen::doxygen
|
||||
PROPERTY IMPORTED_LOCATION)
|
||||
endif()
|
||||
|
||||
# Visual Studio users might appreciate this
|
||||
# set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
||||
|
||||
macro(subdirlist result curdir)
|
||||
file(GLOB children RELATIVE ${curdir} ${curdir}/*)
|
||||
file(
|
||||
GLOB children
|
||||
RELATIVE ${curdir}
|
||||
${curdir}/*)
|
||||
set(dirlist "")
|
||||
foreach(child ${children})
|
||||
if(IS_DIRECTORY ${curdir}/${child})
|
||||
|
|
@ -65,14 +73,18 @@ function(configure_doxygen_package CGAL_PACKAGE_NAME)
|
|||
return()
|
||||
endif()
|
||||
|
||||
set(CGAL_DOC_PACKAGE_DEFAULTS ${CGAL_DOC_DXY_DIR}/${CGAL_PACKAGE_NAME}_defaults.dxy)
|
||||
set(CGAL_DOC_PACKAGE_DEFAULTS
|
||||
${CGAL_DOC_DXY_DIR}/${CGAL_PACKAGE_NAME}_defaults.dxy)
|
||||
file(REMOVE ${CGAL_DOC_PACKAGE_DEFAULTS})
|
||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS} "@INCLUDE = ${CGAL_DOC_DOXY_DEFAULT}\n")
|
||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS} "OUTPUT_DIRECTORY = ${CGAL_DOC_OUTPUT_DIR}/${CGAL_PACKAGE_NAME}\n")
|
||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS}
|
||||
"@INCLUDE = ${CGAL_DOC_DOXY_DEFAULT}\n")
|
||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS}
|
||||
"OUTPUT_DIRECTORY = ${CGAL_DOC_OUTPUT_DIR}/${CGAL_PACKAGE_NAME}\n")
|
||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS} "HTML_OUTPUT = .\n")
|
||||
|
||||
if(CGAL_DOC_CREATE_LOGS)
|
||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS} "WARN_LOGFILE = ${CGAL_DOC_LOG_DIR}/${CGAL_PACKAGE_NAME}.log\n")
|
||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS}
|
||||
"WARN_LOGFILE = ${CGAL_DOC_LOG_DIR}/${CGAL_PACKAGE_NAME}.log\n")
|
||||
endif()
|
||||
|
||||
if(CGAL_DOC_RELEASE)
|
||||
|
|
@ -81,29 +93,40 @@ function(configure_doxygen_package CGAL_PACKAGE_NAME)
|
|||
endif()
|
||||
|
||||
if(EXISTS "${CGAL_PACKAGE_DIR}/examples")
|
||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS} "EXAMPLE_PATH = ${CGAL_PACKAGE_DIR}/examples\n")
|
||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS}
|
||||
"EXAMPLE_PATH = ${CGAL_PACKAGE_DIR}/examples\n")
|
||||
endif()
|
||||
if(CGAL_GENERATE_XML)
|
||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS} "GENERATE_XML = YES\n")
|
||||
endif()
|
||||
|
||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS} "GENERATE_TAGFILE = ${CGAL_DOC_TAG_GEN_DIR}/${CGAL_PACKAGE_NAME}.tag\n")
|
||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS} "STRIP_FROM_PATH = ${CGAL_PACKAGE_DOC_DIR}/\n")
|
||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS} "STRIP_FROM_PATH += ${CGAL_PACKAGE_DIR}/include/\n")
|
||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS} "STRIP_FROM_INC_PATH = ${CGAL_PACKAGE_DOC_DIR}/\n")
|
||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS} "STRIP_FROM_INC_PATH += ${CGAL_PACKAGE_DIR}/include/\n")
|
||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS} "ALIASES += \"cgalPkgDescriptionBegin{2}=\\details \"\n")
|
||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS} "ALIASES += \"cgalPkgManuals{2}=<div class=\\\"PkgManuals\\\"></div>\"\n")
|
||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS}
|
||||
"GENERATE_TAGFILE = ${CGAL_DOC_TAG_GEN_DIR}/${CGAL_PACKAGE_NAME}.tag\n")
|
||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS}
|
||||
"STRIP_FROM_PATH = ${CGAL_PACKAGE_DOC_DIR}/\n")
|
||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS}
|
||||
"STRIP_FROM_PATH += ${CGAL_PACKAGE_DIR}/include/\n")
|
||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS}
|
||||
"STRIP_FROM_INC_PATH = ${CGAL_PACKAGE_DOC_DIR}/\n")
|
||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS}
|
||||
"STRIP_FROM_INC_PATH += ${CGAL_PACKAGE_DIR}/include/\n")
|
||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS}
|
||||
"ALIASES += \"cgalPkgDescriptionBegin{2}=\\details \"\n")
|
||||
file(
|
||||
APPEND ${CGAL_DOC_PACKAGE_DEFAULTS}
|
||||
"ALIASES += \"cgalPkgManuals{2}=<div class=\\\"PkgManuals\\\"></div>\"\n")
|
||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS} "INPUT = ${CGAL_PACKAGE_DOC_DIR}\n")
|
||||
if(NOT EXISTS "${CGAL_PACKAGE_DOC_DIR}/CGAL")
|
||||
# This package has in-source documentation.
|
||||
if(CGAL_BRANCH_BUILD) # use the entire include subdir
|
||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS} "INPUT += ${CGAL_PACKAGE_DIR}/include/\n")
|
||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS}
|
||||
"INPUT += ${CGAL_PACKAGE_DIR}/include/\n")
|
||||
else() # use the filelist
|
||||
if(EXISTS "${CGAL_PACKAGE_DOC_DIR}/filelist.txt")
|
||||
file(STRINGS "${CGAL_PACKAGE_DOC_DIR}/filelist.txt" CGAL_PKG_FILES)
|
||||
foreach(pkg_file ${CGAL_PKG_FILES})
|
||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS} "INPUT += ${CGAL_PACKAGE_DIR}/include/${pkg_file}\n")
|
||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS}
|
||||
"INPUT += ${CGAL_PACKAGE_DIR}/include/${pkg_file}\n")
|
||||
endforeach()
|
||||
endif()
|
||||
endif()
|
||||
|
|
@ -113,7 +136,7 @@ function(configure_doxygen_package CGAL_PACKAGE_NAME)
|
|||
set(IMAGE_PATHS "${CGAL_PACKAGE_DOC_DIR}/fig")
|
||||
set(DEPENDENCIES "")
|
||||
# figure out the dependencies, using the file `dependencies` or `packages.txt` for Documentation
|
||||
if (${CGAL_PACKAGE_NAME} STREQUAL "Documentation")
|
||||
if(${CGAL_PACKAGE_NAME} STREQUAL "Documentation")
|
||||
set(PackageFile ${CGAL_PACKAGE_DOC_DIR}/packages.txt)
|
||||
file(STRINGS ${PackageFile} EntriesAsList REGEX "^\\\\package_listing{.+}$")
|
||||
foreach(Line ${EntriesAsList})
|
||||
|
|
@ -121,9 +144,9 @@ function(configure_doxygen_package CGAL_PACKAGE_NAME)
|
|||
list(APPEND DEPENDENCIES ${PKG})
|
||||
|
||||
if(CGAL_BRANCH_BUILD)
|
||||
SET(IMG_DIR "${CGAL_ROOT}/${PKG}/doc/${PKG}/fig")
|
||||
set(IMG_DIR "${CGAL_ROOT}/${PKG}/doc/${PKG}/fig")
|
||||
else()
|
||||
SET(IMG_DIR "${CGAL_ROOT}/doc/${PKG}/fig")
|
||||
set(IMG_DIR "${CGAL_ROOT}/doc/${PKG}/fig")
|
||||
endif()
|
||||
|
||||
if(EXISTS ${IMG_DIR})
|
||||
|
|
@ -138,43 +161,44 @@ function(configure_doxygen_package CGAL_PACKAGE_NAME)
|
|||
|
||||
foreach(depend ${DEPENDENCIES})
|
||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS}
|
||||
"TAGFILES += ${CGAL_DOC_TAG_DIR}/${depend}.tag=../${depend}\n")
|
||||
"TAGFILES += ${CGAL_DOC_TAG_DIR}/${depend}.tag=../${depend}\n")
|
||||
endforeach()
|
||||
|
||||
foreach(image_path ${IMAGE_PATHS})
|
||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS}
|
||||
"IMAGE_PATH += ${image_path}\n")
|
||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS} "IMAGE_PATH += ${image_path}\n")
|
||||
endforeach()
|
||||
|
||||
configure_file(${CGAL_PACKAGE_DOC_DIR}/Doxyfile.in ${CGAL_DOC_DXY_DIR}/${CGAL_PACKAGE_NAME}.dxy)
|
||||
configure_file(${CGAL_PACKAGE_DOC_DIR}/Doxyfile.in
|
||||
${CGAL_DOC_DXY_DIR}/${CGAL_PACKAGE_NAME}.dxy)
|
||||
|
||||
# TODO we also want to run html_post_process per package as a custom_command with POST_BUILD
|
||||
# target that build the doc and put the tag file in the generation directory CGAL_DOC_TAG_GEN_DIR
|
||||
add_custom_target(${CGAL_PACKAGE_NAME}_internal_doxygen_run
|
||||
add_custom_target(
|
||||
${CGAL_PACKAGE_NAME}_internal_doxygen_run
|
||||
${DOXYGEN_EXECUTABLE} ${CGAL_DOC_DXY_DIR}/${CGAL_PACKAGE_NAME}.dxy)
|
||||
|
||||
set_target_properties(${CGAL_PACKAGE_NAME}_internal_doxygen_run PROPERTIES FOLDER Documentation/Packages)
|
||||
set_target_properties(${CGAL_PACKAGE_NAME}_internal_doxygen_run
|
||||
PROPERTIES FOLDER Documentation/Packages)
|
||||
|
||||
#target moving the tag file into the read directory CGAL_DOC_TAG_DIR
|
||||
if ( "${CGAL_PACKAGE_NAME}" STREQUAL "Documentation" )
|
||||
if("${CGAL_PACKAGE_NAME}" STREQUAL "Documentation")
|
||||
set(CGAL_PACKAGE_TAGFILE "Manual.tag")
|
||||
else()
|
||||
set(CGAL_PACKAGE_TAGFILE "${CGAL_PACKAGE_NAME}.tag")
|
||||
endif()
|
||||
add_custom_target(${CGAL_PACKAGE_NAME}_copy_doc_tags
|
||||
${CMAKE_COMMAND} -E copy
|
||||
"${CGAL_DOC_TAG_GEN_DIR}/${CGAL_PACKAGE_TAGFILE}"
|
||||
"${CGAL_DOC_TAG_DIR}/${CGAL_PACKAGE_TAGFILE}"
|
||||
)
|
||||
add_custom_target(
|
||||
${CGAL_PACKAGE_NAME}_copy_doc_tags
|
||||
${CMAKE_COMMAND} -E copy "${CGAL_DOC_TAG_GEN_DIR}/${CGAL_PACKAGE_TAGFILE}"
|
||||
"${CGAL_DOC_TAG_DIR}/${CGAL_PACKAGE_TAGFILE}")
|
||||
|
||||
#add the doc target doing both the doc generation and then the tag file copy
|
||||
add_custom_target(${CGAL_PACKAGE_NAME}_doc
|
||||
add_custom_target(
|
||||
${CGAL_PACKAGE_NAME}_doc
|
||||
${DOXYGEN_EXECUTABLE} ${CGAL_DOC_DXY_DIR}/${CGAL_PACKAGE_NAME}.dxy
|
||||
COMMAND
|
||||
${CMAKE_COMMAND} -E copy
|
||||
"${CGAL_DOC_TAG_GEN_DIR}/${CGAL_PACKAGE_TAGFILE}"
|
||||
"${CGAL_DOC_TAG_DIR}/${CGAL_PACKAGE_TAGFILE}"
|
||||
)
|
||||
${CMAKE_COMMAND} -E copy
|
||||
"${CGAL_DOC_TAG_GEN_DIR}/${CGAL_PACKAGE_TAGFILE}"
|
||||
"${CGAL_DOC_TAG_DIR}/${CGAL_PACKAGE_TAGFILE}")
|
||||
|
||||
# ${depend}_doc)
|
||||
# don't do this for now
|
||||
|
|
@ -185,29 +209,37 @@ function(configure_doxygen_package CGAL_PACKAGE_NAME)
|
|||
endfunction()
|
||||
|
||||
# set up the directories and variables
|
||||
if (CGAL_DOC_MATHJAX_LOCATION)
|
||||
set(CGAL_DOC_MATHJAX_LOCATION_FULL_OPTION_LINE "MATHJAX_RELPATH = ${CGAL_DOC_MATHJAX_LOCATION}")
|
||||
if(CGAL_DOC_MATHJAX_LOCATION)
|
||||
set(CGAL_DOC_MATHJAX_LOCATION_FULL_OPTION_LINE
|
||||
"MATHJAX_RELPATH = ${CGAL_DOC_MATHJAX_LOCATION}")
|
||||
else()
|
||||
set(CGAL_DOC_MATHJAX_LOCATION "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2")
|
||||
set(CGAL_DOC_MATHJAX_LOCATION
|
||||
"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2")
|
||||
endif()
|
||||
|
||||
set(CGAL_DOC_OUTPUT_DIR "${CMAKE_BINARY_DIR}/doc_output")
|
||||
file(MAKE_DIRECTORY "${CGAL_DOC_OUTPUT_DIR}")
|
||||
|
||||
option(CGAL_DOC_CREATE_LOGS "Write log files or print warnings and errors to cerr when building the doc." OFF)
|
||||
option(
|
||||
CGAL_DOC_CREATE_LOGS
|
||||
"Write log files or print warnings and errors to cerr when building the doc."
|
||||
OFF)
|
||||
|
||||
if(CGAL_DOC_CREATE_LOGS)
|
||||
set(CGAL_DOC_LOG_DIR "${CMAKE_BINARY_DIR}/doc_log")
|
||||
file(MAKE_DIRECTORY "${CGAL_DOC_LOG_DIR}")
|
||||
endif()
|
||||
|
||||
option(CGAL_EXTRACT_ALL_NO_DETAILED_IF_EMPTY "Use CGAL special doxygen setting EXTRACT_ALL_NO_DETAILED_IF_EMPTY." ON)
|
||||
option(CGAL_EXTRACT_ALL_NO_DETAILED_IF_EMPTY
|
||||
"Use CGAL special doxygen setting EXTRACT_ALL_NO_DETAILED_IF_EMPTY." ON)
|
||||
if(CGAL_EXTRACT_ALL_NO_DETAILED_IF_EMPTY)
|
||||
set(CGAL_OPT_EXTRACT_ALL_NO_DETAILED_IF_EMPTY "EXTRACT_ALL_NO_DETAILED_IF_EMPTY = YES")
|
||||
set(CGAL_OPT_EXTRACT_ALL_NO_DETAILED_IF_EMPTY
|
||||
"EXTRACT_ALL_NO_DETAILED_IF_EMPTY = YES")
|
||||
else()
|
||||
# The default is NO, so we could leave it out, but it is better to have a commented out placeholder
|
||||
# this will work for versions with and without the setting.
|
||||
set(CGAL_OPT_EXTRACT_ALL_NO_DETAILED_IF_EMPTY "#EXTRACT_ALL_NO_DETAILED_IF_EMPTY = NO")
|
||||
set(CGAL_OPT_EXTRACT_ALL_NO_DETAILED_IF_EMPTY
|
||||
"#EXTRACT_ALL_NO_DETAILED_IF_EMPTY = NO")
|
||||
endif()
|
||||
|
||||
#we use two directories for the generation/reading of tag files to prevent issues
|
||||
|
|
@ -229,8 +261,9 @@ set(CGAL_DOC_RESOURCE_DIR_DEFAULT "${CMAKE_CURRENT_LIST_DIR}/resources/1.8.20")
|
|||
string(REPLACE " " ";" DOXYGEN_VERSION ${DOXYGEN_VERSION})
|
||||
list(GET DOXYGEN_VERSION 0 DOXYGEN_VERSION)
|
||||
|
||||
if (EXISTS "${CMAKE_CURRENT_LIST_DIR}/resources/${DOXYGEN_VERSION}")
|
||||
set(CGAL_DOC_RESOURCE_DIR "${CMAKE_CURRENT_LIST_DIR}/resources/${DOXYGEN_VERSION}")
|
||||
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/resources/${DOXYGEN_VERSION}")
|
||||
set(CGAL_DOC_RESOURCE_DIR
|
||||
"${CMAKE_CURRENT_LIST_DIR}/resources/${DOXYGEN_VERSION}")
|
||||
else()
|
||||
set(CGAL_DOC_RESOURCE_DIR "${CGAL_DOC_RESOURCE_DIR_DEFAULT}")
|
||||
endif()
|
||||
|
|
@ -241,7 +274,8 @@ set(CGAL_DOC_SCRIPT_DIR "${CMAKE_CURRENT_LIST_DIR}/scripts")
|
|||
set(CGAL_DOC_HEADER ${CGAL_DOC_DXY_DIR}/header.html)
|
||||
configure_file(${CGAL_DOC_RESOURCE_DIR}/header.html ${CGAL_DOC_HEADER} @ONLY)
|
||||
set(CGAL_DOC_HEADER_PACKAGE ${CGAL_DOC_DXY_DIR}/header_package.html)
|
||||
configure_file(${CGAL_DOC_RESOURCE_DIR}/header_package.html ${CGAL_DOC_HEADER_PACKAGE} @ONLY)
|
||||
configure_file(${CGAL_DOC_RESOURCE_DIR}/header_package.html
|
||||
${CGAL_DOC_HEADER_PACKAGE} @ONLY)
|
||||
|
||||
#Generate the bibtex file
|
||||
#this is needed also for BaseDoxyfile.in
|
||||
|
|
@ -255,24 +289,29 @@ else()
|
|||
set(CGAL_RELEASE_YEAR_ID "${CGAL_BUILD_YEAR2}a")
|
||||
endif()
|
||||
|
||||
if (NOT CGAL_CREATED_VERSION_NUM)
|
||||
if (CGAL_BRANCH_BUILD)
|
||||
if(NOT CGAL_CREATED_VERSION_NUM)
|
||||
if(CGAL_BRANCH_BUILD)
|
||||
include(${CGAL_ROOT}/CGALConfigVersion.cmake)
|
||||
|
||||
if (CGAL_BUGFIX_VERSION AND CGAL_BUGFIX_VERSION GREATER 0)
|
||||
set(CGAL_CREATED_VERSION_NUM "${CGAL_MAJOR_VERSION}.${CGAL_MINOR_VERSION}.${CGAL_BUGFIX_VERSION}")
|
||||
if(CGAL_BUGFIX_VERSION AND CGAL_BUGFIX_VERSION GREATER 0)
|
||||
set(CGAL_CREATED_VERSION_NUM
|
||||
"${CGAL_MAJOR_VERSION}.${CGAL_MINOR_VERSION}.${CGAL_BUGFIX_VERSION}")
|
||||
else()
|
||||
set(CGAL_CREATED_VERSION_NUM "${CGAL_MAJOR_VERSION}.${CGAL_MINOR_VERSION}")
|
||||
set(CGAL_CREATED_VERSION_NUM
|
||||
"${CGAL_MAJOR_VERSION}.${CGAL_MINOR_VERSION}")
|
||||
endif()
|
||||
else()
|
||||
if(EXISTS "${CGAL_ROOT}/doc/public_release_name")
|
||||
file(STRINGS "${CGAL_ROOT}/doc/public_release_name" CGAL_VERSION_LINE)
|
||||
string(REGEX REPLACE "CGAL-" "" CGAL_CREATED_VERSION_NUM "${CGAL_VERSION_LINE}")
|
||||
string(REGEX REPLACE "CGAL-" "" CGAL_CREATED_VERSION_NUM
|
||||
"${CGAL_VERSION_LINE}")
|
||||
else()
|
||||
#read version.h and get the line with CGAL_VERSION
|
||||
file(STRINGS "${CGAL_ROOT}/include/CGAL/version.h" CGAL_VERSION_LINE REGEX "CGAL_VERSION ")
|
||||
file(STRINGS "${CGAL_ROOT}/include/CGAL/version.h" CGAL_VERSION_LINE
|
||||
REGEX "CGAL_VERSION ")
|
||||
#extract release id
|
||||
string(REGEX MATCH "[0-9]+\\.[0-9]+\\.?[0-9]*" CGAL_CREATED_VERSION_NUM "${CGAL_VERSION_LINE}")
|
||||
string(REGEX MATCH "[0-9]+\\.[0-9]+\\.?[0-9]*" CGAL_CREATED_VERSION_NUM
|
||||
"${CGAL_VERSION_LINE}")
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
|
@ -284,39 +323,47 @@ set(CGAL_DOC_VERSION ${CGAL_CREATED_VERSION_NUM})
|
|||
|
||||
## generate how_to_cite files
|
||||
if(PYTHONINTERP_FOUND)
|
||||
execute_process(COMMAND ${PYTHON_EXECUTABLE}
|
||||
${CGAL_DOC_SCRIPT_DIR}/generate_how_to_cite.py
|
||||
${CGAL_ROOT}
|
||||
${CMAKE_BINARY_DIR}
|
||||
"${CGAL_BRANCH_BUILD}"
|
||||
RESULT_VARIABLE GENERATE_HOW_TO_CITE_RESULT)
|
||||
execute_process(
|
||||
COMMAND ${PYTHON_EXECUTABLE} ${CGAL_DOC_SCRIPT_DIR}/generate_how_to_cite.py
|
||||
${CGAL_ROOT} ${CMAKE_BINARY_DIR} "${CGAL_BRANCH_BUILD}"
|
||||
RESULT_VARIABLE GENERATE_HOW_TO_CITE_RESULT)
|
||||
if(NOT GENERATE_HOW_TO_CITE_RESULT EQUAL "0")
|
||||
message(FATAL_ERROR "generate_how_to_cite did not exit correctly")
|
||||
endif()
|
||||
|
||||
configure_file(${CMAKE_BINARY_DIR}/how_to_cite_cgal.bib.in ${CMAKE_BINARY_DIR}/how_to_cite_cgal.bib)
|
||||
configure_file(${CMAKE_BINARY_DIR}/how_to_cite_cgal.txt.in ${CMAKE_BINARY_DIR}/how_to_cite_cgal.txt)
|
||||
configure_file(${CMAKE_BINARY_DIR}/how_to_cite.html.in ${CMAKE_BINARY_DIR}/how_to_cite.html)
|
||||
configure_file(${CMAKE_BINARY_DIR}/how_to_cite_cgal.bib.in
|
||||
${CMAKE_BINARY_DIR}/how_to_cite_cgal.bib)
|
||||
configure_file(${CMAKE_BINARY_DIR}/how_to_cite_cgal.txt.in
|
||||
${CMAKE_BINARY_DIR}/how_to_cite_cgal.txt)
|
||||
configure_file(${CMAKE_BINARY_DIR}/how_to_cite.html.in
|
||||
${CMAKE_BINARY_DIR}/how_to_cite.html)
|
||||
endif()
|
||||
|
||||
configure_file(${CGAL_DOC_RESOURCE_DIR}/BaseDoxyfile.in ${CGAL_DOC_DXY_DIR}/BaseDoxyfile)
|
||||
configure_file(${CGAL_DOC_RESOURCE_DIR}/BaseDoxyfile.in
|
||||
${CGAL_DOC_DXY_DIR}/BaseDoxyfile)
|
||||
|
||||
set(CGAL_DOC_DOXY_DEFAULT "${CGAL_DOC_DXY_DIR}/BaseDoxyfile")
|
||||
|
||||
# pkglist_filter gets the path to the pkglist_filter of this source
|
||||
# directory.
|
||||
if(WIN32)
|
||||
configure_file(${CGAL_DOC_SCRIPT_DIR}/pkglist_filter.bat ${CMAKE_BINARY_DIR}/pkglist_filter.bat)
|
||||
configure_file(${CGAL_DOC_SCRIPT_DIR}/pkglist_filter.bat
|
||||
${CMAKE_BINARY_DIR}/pkglist_filter.bat)
|
||||
endif()
|
||||
configure_file(${CGAL_DOC_SCRIPT_DIR}/pkglist_filter ${CMAKE_BINARY_DIR}/pkglist_filter)
|
||||
configure_file(${CGAL_DOC_SCRIPT_DIR}/pkglist_filter.py ${CMAKE_BINARY_DIR}/pkglist_filter.py)
|
||||
configure_file(${CGAL_DOC_SCRIPT_DIR}/pkglist_filter
|
||||
${CMAKE_BINARY_DIR}/pkglist_filter)
|
||||
configure_file(${CGAL_DOC_SCRIPT_DIR}/pkglist_filter.py
|
||||
${CMAKE_BINARY_DIR}/pkglist_filter.py)
|
||||
|
||||
set(CGAL_DOC_PACKAGES "")
|
||||
if(CGAL_BRANCH_BUILD)
|
||||
file(GLOB CGAL_ALL_PACKAGES RELATIVE ${CGAL_ROOT} "${CGAL_ROOT}/*")
|
||||
foreach (pkg ${CGAL_ALL_PACKAGES})
|
||||
file(
|
||||
GLOB CGAL_ALL_PACKAGES
|
||||
RELATIVE ${CGAL_ROOT}
|
||||
"${CGAL_ROOT}/*")
|
||||
foreach(pkg ${CGAL_ALL_PACKAGES})
|
||||
#detect packages with documentation to process
|
||||
if (IS_DIRECTORY ${CGAL_ROOT}/${pkg})
|
||||
if(IS_DIRECTORY ${CGAL_ROOT}/${pkg})
|
||||
if(EXISTS "${CGAL_ROOT}/${pkg}/doc/${pkg}/PackageDescription.txt")
|
||||
list(APPEND CGAL_DOC_PACKAGES ${pkg})
|
||||
endif()
|
||||
|
|
@ -343,7 +390,8 @@ else()
|
|||
|
||||
subdirlist(CGAL_EXAMPLE_PACKAGES ${CGAL_ROOT}/examples)
|
||||
subdirlist(CGAL_DEMO_PACKAGES ${CGAL_ROOT}/demo)
|
||||
list(APPEND CGAL_EXAMPLE_PACKAGES "BGL") # manually add BGL to the list of packages
|
||||
list(APPEND CGAL_EXAMPLE_PACKAGES "BGL"
|
||||
)# manually add BGL to the list of packages
|
||||
foreach(pkg ${CGAL_EXAMPLE_PACKAGES})
|
||||
set(CGAL_${pkg}_EXAMPLE_DIR "${CGAL_ROOT}/examples")
|
||||
# This might not be entirely correct, but there is no reliable,
|
||||
|
|
@ -358,7 +406,7 @@ endif()
|
|||
|
||||
option(CGAL_BUILD_THREE_DOC "Build the documentation of the Three package" OFF)
|
||||
|
||||
if (NOT CGAL_BUILD_THREE_DOC)
|
||||
if(NOT CGAL_BUILD_THREE_DOC)
|
||||
list(REMOVE_ITEM CGAL_DOC_PACKAGES "Three")
|
||||
endif()
|
||||
|
||||
|
|
@ -391,25 +439,47 @@ add_dependencies(doc doc_post)
|
|||
if(PYTHONINTERP_FOUND)
|
||||
set(CGAL_DOC_TESTSUITE_SCRIPT "${CGAL_DOC_SCRIPT_DIR}/testsuite.py")
|
||||
|
||||
add_custom_target(doc_with_postprocessing
|
||||
${PYTHON_EXECUTABLE} ${CGAL_DOC_SCRIPT_DIR}/html_output_post_processing.py --output ${CGAL_DOC_OUTPUT_DIR} --resources ${CGAL_DOC_RESOURCE_DIR}
|
||||
)
|
||||
add_custom_target(
|
||||
doc_with_postprocessing
|
||||
${PYTHON_EXECUTABLE} ${CGAL_DOC_SCRIPT_DIR}/html_output_post_processing.py
|
||||
--output ${CGAL_DOC_OUTPUT_DIR} --resources ${CGAL_DOC_RESOURCE_DIR})
|
||||
add_dependencies(doc_with_postprocessing doc)
|
||||
|
||||
if(CGAL_DOC_CREATE_LOGS)
|
||||
add_custom_target(Documentation_test
|
||||
${PYTHON_EXECUTABLE} ${CGAL_DOC_TESTSUITE_SCRIPT} --output-dir ${CGAL_DOC_OUTPUT_DIR} --doc-log-dir ${CGAL_DOC_LOG_DIR}
|
||||
)
|
||||
add_custom_target(
|
||||
Documentation_test
|
||||
${PYTHON_EXECUTABLE} ${CGAL_DOC_TESTSUITE_SCRIPT} --output-dir
|
||||
${CGAL_DOC_OUTPUT_DIR} --doc-log-dir ${CGAL_DOC_LOG_DIR})
|
||||
add_dependencies(Documentation_test doc)
|
||||
|
||||
add_custom_target(Documentation_test_publish
|
||||
${PYTHON_EXECUTABLE} ${CGAL_DOC_TESTSUITE_SCRIPT} --output-dir ${CGAL_DOC_OUTPUT_DIR} --doc-log-dir ${CGAL_DOC_LOG_DIR} --publish ${CGAL_DOC_PUBLISH_DIR} --do-copy-results
|
||||
)
|
||||
add_custom_target(
|
||||
Documentation_test_publish
|
||||
${PYTHON_EXECUTABLE}
|
||||
${CGAL_DOC_TESTSUITE_SCRIPT}
|
||||
--output-dir
|
||||
${CGAL_DOC_OUTPUT_DIR}
|
||||
--doc-log-dir
|
||||
${CGAL_DOC_LOG_DIR}
|
||||
--publish
|
||||
${CGAL_DOC_PUBLISH_DIR}
|
||||
--do-copy-results)
|
||||
add_dependencies(Documentation_test_publish doc)
|
||||
|
||||
add_custom_target(doc_and_publish_testsuite
|
||||
${PYTHON_EXECUTABLE} ${CGAL_DOC_TESTSUITE_SCRIPT} --output-dir ${CGAL_DOC_OUTPUT_DIR} --doc-log-dir ${CGAL_DOC_LOG_DIR} --publish ${CGAL_DOC_PUBLISH_DIR} --do-copy-results --cgal-version "${CGAL_FULL_VERSION}" --version-to-keep 10
|
||||
)
|
||||
add_custom_target(
|
||||
doc_and_publish_testsuite
|
||||
${PYTHON_EXECUTABLE}
|
||||
${CGAL_DOC_TESTSUITE_SCRIPT}
|
||||
--output-dir
|
||||
${CGAL_DOC_OUTPUT_DIR}
|
||||
--doc-log-dir
|
||||
${CGAL_DOC_LOG_DIR}
|
||||
--publish
|
||||
${CGAL_DOC_PUBLISH_DIR}
|
||||
--do-copy-results
|
||||
--cgal-version
|
||||
"${CGAL_FULL_VERSION}"
|
||||
--version-to-keep
|
||||
10)
|
||||
add_dependencies(doc_and_publish_testsuite doc_with_postprocessing)
|
||||
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -1,24 +1,16 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Envelope_2_Examples )
|
||||
project(Envelope_2_Examples)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,24 +1,16 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Envelope_2_Tests )
|
||||
project(Envelope_2_Tests)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,26 +1,18 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Envelope_3_Examples )
|
||||
project(Envelope_3_Examples)
|
||||
|
||||
find_package(CGAL REQUIRED COMPONENTS Core)
|
||||
|
||||
find_package(CGAL QUIET COMPONENTS Core )
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
include(${CGAL_USE_FILE})
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
include(${CGAL_USE_FILE})
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,26 +1,18 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Envelope_3_Tests )
|
||||
project(Envelope_3_Tests)
|
||||
|
||||
find_package(CGAL REQUIRED COMPONENTS Core)
|
||||
|
||||
find_package(CGAL QUIET COMPONENTS Core )
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
include(${CGAL_USE_FILE})
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
include(${CGAL_USE_FILE})
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,35 +1,28 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Filtered_kernel_test )
|
||||
|
||||
|
||||
project(Filtered_kernel_test)
|
||||
|
||||
add_executable(bench_simple_comparisons bench_simple_comparisons.cpp)
|
||||
|
||||
find_package(CGAL QUIET COMPONENTS Core )
|
||||
find_package(CGAL REQUIRED COMPONENTS Core)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
include(${CGAL_USE_FILE})
|
||||
|
||||
include(${CGAL_USE_FILE})
|
||||
add_executable(bench_orientation_3 "orientation_3.cpp")
|
||||
target_link_libraries(bench_orientation_3 ${CGAL_LIBRARIES}
|
||||
${CGAL_3RD_PARTY_LIBRARIES})
|
||||
|
||||
add_executable( bench_orientation_3 "orientation_3.cpp" )
|
||||
target_link_libraries(bench_orientation_3 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )
|
||||
|
||||
add_executable( bench_comparisons "orientation_3.cpp" )
|
||||
target_link_libraries(bench_comparisons ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )
|
||||
set_property(
|
||||
TARGET bench_comparisons
|
||||
APPEND
|
||||
PROPERTY COMPILE_DEFINITIONS ONLY_TEST_COMPARISONS )
|
||||
|
||||
get_property(DEF TARGET bench_comparisons PROPERTY COMPILE_DEFINITIONS)
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
add_executable(bench_comparisons "orientation_3.cpp")
|
||||
target_link_libraries(bench_comparisons ${CGAL_LIBRARIES}
|
||||
${CGAL_3RD_PARTY_LIBRARIES})
|
||||
set_property(
|
||||
TARGET bench_comparisons
|
||||
APPEND
|
||||
PROPERTY COMPILE_DEFINITIONS ONLY_TEST_COMPARISONS)
|
||||
|
||||
get_property(
|
||||
DEF
|
||||
TARGET bench_comparisons
|
||||
PROPERTY COMPILE_DEFINITIONS)
|
||||
|
|
|
|||
|
|
@ -1,24 +1,16 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Filtered_kernel_Examples )
|
||||
project(Filtered_kernel_Examples)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,24 +1,16 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Filtered_kernel_Tests )
|
||||
project(Filtered_kernel_Tests)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,23 +1,16 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Generalized_map_Examples )
|
||||
project(Generalized_map_Examples)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -2,26 +2,18 @@
|
|||
# This is the CMake script for compiling a set of CGAL applications.
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Generalized_map_Tests )
|
||||
|
||||
|
||||
project(Generalized_map_Tests)
|
||||
|
||||
# CGAL and its components
|
||||
find_package( CGAL QUIET COMPONENTS )
|
||||
|
||||
if ( NOT CGAL_FOUND )
|
||||
|
||||
message(STATUS "This project requires the CGAL library, and will not be compiled.")
|
||||
return()
|
||||
|
||||
endif()
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
# Boost and its components
|
||||
find_package( Boost REQUIRED )
|
||||
find_package(Boost REQUIRED)
|
||||
|
||||
if ( NOT Boost_FOUND )
|
||||
if(NOT Boost_FOUND)
|
||||
|
||||
message(STATUS "This project requires the Boost library, and will not be compiled.")
|
||||
message(
|
||||
STATUS "This project requires the Boost library, and will not be compiled.")
|
||||
|
||||
return()
|
||||
|
||||
|
|
@ -34,6 +26,4 @@ endif()
|
|||
# Creating entries for all C++ files with "main" routine
|
||||
# ##########################################################
|
||||
|
||||
create_single_source_cgal_program( "Generalized_map_test.cpp" )
|
||||
|
||||
|
||||
create_single_source_cgal_program("Generalized_map_test.cpp")
|
||||
|
|
|
|||
|
|
@ -1,29 +1,17 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Generator_example )
|
||||
project(Generator_example)
|
||||
|
||||
find_package(CGAL REQUIRED COMPONENTS Core)
|
||||
|
||||
include(${CGAL_USE_FILE})
|
||||
|
||||
find_package(CGAL QUIET COMPONENTS Core )
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
include(${CGAL_USE_FILE})
|
||||
|
||||
find_package(Boost REQUIRED program_options)
|
||||
include_directories(${Boost_PROGRAM_OPTIONS_INCLUDE_DIR})
|
||||
add_definitions( "-DCGAL_USE_BOOST_PROGRAM_OPTIONS" )
|
||||
list(APPEND CGAL_3RD_PARTY_LIBRARIES ${Boost_PROGRAM_OPTIONS_LIBRARY})
|
||||
|
||||
create_single_source_cgal_program( "random_grid.cpp" )
|
||||
create_single_source_cgal_program( "random_disc_2.cpp" )
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
find_package(Boost REQUIRED program_options)
|
||||
include_directories(${Boost_PROGRAM_OPTIONS_INCLUDE_DIR})
|
||||
add_definitions("-DCGAL_USE_BOOST_PROGRAM_OPTIONS")
|
||||
list(APPEND CGAL_3RD_PARTY_LIBRARIES ${Boost_PROGRAM_OPTIONS_LIBRARY})
|
||||
|
||||
create_single_source_cgal_program("random_grid.cpp")
|
||||
create_single_source_cgal_program("random_disc_2.cpp")
|
||||
|
|
|
|||
|
|
@ -1,35 +1,28 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Generator_Examples )
|
||||
project(Generator_Examples)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
# Use Eigen
|
||||
find_package(Eigen3 3.1.0 QUIET) #(3.1.0 or greater)
|
||||
include(CGAL_Eigen_support)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
# Use Eigen
|
||||
find_package(Eigen3 3.1.0 QUIET) #(3.1.0 or greater)
|
||||
include(CGAL_Eigen_support)
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
if(NOT (${cppfile} STREQUAL "random_points_in_tetrahedral_mesh_3.cpp")
|
||||
OR NOT (${cppfile} STREQUAL "random_points_on_tetrahedral_mesh_3.cpp")
|
||||
OR TARGET CGAL::Eigen_support)
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
if (TARGET CGAL::Eigen_support)
|
||||
get_filename_component(target ${cppfile} NAME_WE)
|
||||
target_link_libraries(${target} PUBLIC CGAL::Eigen_support)
|
||||
endif()
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
if(NOT (${cppfile} STREQUAL "random_points_in_tetrahedral_mesh_3.cpp")
|
||||
OR NOT (${cppfile} STREQUAL "random_points_on_tetrahedral_mesh_3.cpp")
|
||||
OR TARGET CGAL::Eigen_support)
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
if(TARGET CGAL::Eigen_support)
|
||||
get_filename_component(target ${cppfile} NAME_WE)
|
||||
target_link_libraries(${target} PUBLIC CGAL::Eigen_support)
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
endif()
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,33 +1,27 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Generator_Tests )
|
||||
project(Generator_Tests)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
# Use Eigen
|
||||
find_package(Eigen3 3.1.0 QUIET) #(3.1.0 or greater)
|
||||
include(CGAL_Eigen_support)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
# Use Eigen
|
||||
find_package(Eigen3 3.1.0 QUIET) #(3.1.0 or greater)
|
||||
include(CGAL_Eigen_support)
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
if(NOT (${cppfile} STREQUAL "generic_random_test.cpp") OR TARGET CGAL::Eigen_support)
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
if (TARGET CGAL::Eigen_support)
|
||||
get_filename_component(target ${cppfile} NAME_WE)
|
||||
target_link_libraries(${target} PUBLIC CGAL::Eigen_support)
|
||||
endif()
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
if(NOT (${cppfile} STREQUAL "generic_random_test.cpp") OR TARGET
|
||||
CGAL::Eigen_support)
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
if(TARGET CGAL::Eigen_support)
|
||||
get_filename_component(target ${cppfile} NAME_WE)
|
||||
target_link_libraries(${target} PUBLIC CGAL::Eigen_support)
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
endif()
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,9 +1,8 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Geomview_Demo )
|
||||
project(Geomview_Demo)
|
||||
|
||||
if(NOT POLICY CMP0070 AND POLICY CMP0053)
|
||||
# Only set CMP0053 to OLD with CMake<3.10, otherwise there is a warning.
|
||||
|
|
@ -12,17 +11,8 @@ endif()
|
|||
|
||||
set_property(DIRECTORY PROPERTY CGAL_NO_TESTING TRUE)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
create_single_source_cgal_program( "input.cpp" )
|
||||
create_single_source_cgal_program( "kernel.cpp" )
|
||||
create_single_source_cgal_program( "gv_terrain.cpp" )
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
create_single_source_cgal_program("input.cpp")
|
||||
create_single_source_cgal_program("kernel.cpp")
|
||||
create_single_source_cgal_program("gv_terrain.cpp")
|
||||
|
|
|
|||
|
|
@ -1,24 +1,16 @@
|
|||
# Created by the script cgal_create_cmake_script
|
||||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project( Geomview_Tests )
|
||||
project(Geomview_Tests)
|
||||
|
||||
find_package(CGAL REQUIRED)
|
||||
|
||||
find_package(CGAL QUIET)
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
# create a target per cppfile
|
||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program( "${cppfile}" )
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
||||
# create a target per cppfile
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project (Alpha_shapes_2_Demo)
|
||||
project(Alpha_shapes_2_Demo)
|
||||
|
||||
if(NOT POLICY CMP0070 AND POLICY CMP0053)
|
||||
# Only set CMP0053 to OLD with CMake<3.10, otherwise there is a warning.
|
||||
|
|
@ -13,40 +13,43 @@ if(POLICY CMP0071)
|
|||
cmake_policy(SET CMP0071 NEW)
|
||||
endif()
|
||||
|
||||
find_package(CGAL COMPONENTS Qt5)
|
||||
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt5)
|
||||
|
||||
find_package(Qt5 QUIET COMPONENTS Xml Script OpenGL Svg)
|
||||
include_directories (BEFORE ./include)
|
||||
include_directories(BEFORE ./include)
|
||||
|
||||
if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND )
|
||||
add_definitions(-DQT_NO_KEYWORDS)
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
#--------------------------------
|
||||
# The "Delaunay" demo: Alpha_shapes_2
|
||||
#--------------------------------
|
||||
# UI files (Qt Designer files)
|
||||
qt5_wrap_ui( DT_UI_FILES Alpha_shapes_2.ui )
|
||||
if(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||
add_definitions(-DQT_NO_KEYWORDS)
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
#--------------------------------
|
||||
# The "Delaunay" demo: Alpha_shapes_2
|
||||
#--------------------------------
|
||||
# UI files (Qt Designer files)
|
||||
qt5_wrap_ui(DT_UI_FILES Alpha_shapes_2.ui)
|
||||
|
||||
# qrc files (resources files, that contain icons, at least)
|
||||
qt5_add_resources ( CGAL_Qt5_RESOURCE_FILES ./Alpha_shapes_2.qrc )
|
||||
# qrc files (resources files, that contain icons, at least)
|
||||
qt5_add_resources(CGAL_Qt5_RESOURCE_FILES ./Alpha_shapes_2.qrc)
|
||||
|
||||
# The executable itself.
|
||||
add_executable ( Alpha_shapes_2 Alpha_shapes_2.cpp ${DT_UI_FILES} ${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES})
|
||||
# The executable itself.
|
||||
add_executable(
|
||||
Alpha_shapes_2 Alpha_shapes_2.cpp ${DT_UI_FILES} ${CGAL_Qt5_RESOURCE_FILES}
|
||||
${CGAL_Qt5_MOC_FILES})
|
||||
|
||||
add_to_cached_list( CGAL_EXECUTABLE_TARGETS Alpha_shapes_2 )
|
||||
add_to_cached_list(CGAL_EXECUTABLE_TARGETS Alpha_shapes_2)
|
||||
|
||||
target_link_libraries( Alpha_shapes_2 PRIVATE
|
||||
CGAL::CGAL CGAL::CGAL_Qt5 Qt5::Gui )
|
||||
target_link_libraries(Alpha_shapes_2 PRIVATE CGAL::CGAL CGAL::CGAL_Qt5
|
||||
Qt5::Gui)
|
||||
|
||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||
cgal_add_compilation_test(Alpha_shapes_2)
|
||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||
cgal_add_compilation_test(Alpha_shapes_2)
|
||||
|
||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||
cgal_add_compilation_test(Alpha_shapes_2)
|
||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||
cgal_add_compilation_test(Alpha_shapes_2)
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||
message(
|
||||
STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project (Apollonius_graph_2_Demo)
|
||||
project(Apollonius_graph_2_Demo)
|
||||
|
||||
if(NOT POLICY CMP0070 AND POLICY CMP0053)
|
||||
# Only set CMP0053 to OLD with CMake<3.10, otherwise there is a warning.
|
||||
|
|
@ -13,40 +13,42 @@ if(POLICY CMP0071)
|
|||
cmake_policy(SET CMP0071 NEW)
|
||||
endif()
|
||||
|
||||
find_package(CGAL COMPONENTS Qt5)
|
||||
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt5)
|
||||
|
||||
find_package(Qt5 QUIET COMPONENTS Xml Script OpenGL Svg)
|
||||
|
||||
if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND )
|
||||
add_definitions(-DQT_NO_KEYWORDS)
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
#--------------------------------
|
||||
# UI files (Qt Designer files)
|
||||
qt5_wrap_ui( DT_UI_FILES Apollonius_graph_2.ui )
|
||||
if(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||
add_definitions(-DQT_NO_KEYWORDS)
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
#--------------------------------
|
||||
# UI files (Qt Designer files)
|
||||
qt5_wrap_ui(DT_UI_FILES Apollonius_graph_2.ui)
|
||||
|
||||
# qrc files (resources files, that contain icons, at least)
|
||||
qt5_add_resources ( CGAL_Qt5_RESOURCE_FILES ./Apollonius_graph_2.qrc )
|
||||
# qrc files (resources files, that contain icons, at least)
|
||||
qt5_add_resources(CGAL_Qt5_RESOURCE_FILES ./Apollonius_graph_2.qrc)
|
||||
|
||||
# use the Qt MOC preprocessor on classes that derives from QObject
|
||||
# use the Qt MOC preprocessor on classes that derives from QObject
|
||||
|
||||
# The executable itself.
|
||||
add_executable ( Apollonius_graph_2 Apollonius_graph_2.cpp ${DT_UI_FILES} ${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES})
|
||||
# The executable itself.
|
||||
add_executable(
|
||||
Apollonius_graph_2 Apollonius_graph_2.cpp ${DT_UI_FILES}
|
||||
${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES})
|
||||
|
||||
add_to_cached_list( CGAL_EXECUTABLE_TARGETS Apollonius_graph_2 )
|
||||
add_to_cached_list(CGAL_EXECUTABLE_TARGETS Apollonius_graph_2)
|
||||
|
||||
target_link_libraries( Apollonius_graph_2 PRIVATE
|
||||
CGAL::CGAL CGAL::CGAL_Qt5
|
||||
Qt5::Gui )
|
||||
target_link_libraries(Apollonius_graph_2 PRIVATE CGAL::CGAL CGAL::CGAL_Qt5
|
||||
Qt5::Gui)
|
||||
|
||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||
cgal_add_compilation_test(Apollonius_graph_2)
|
||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||
cgal_add_compilation_test(Apollonius_graph_2)
|
||||
|
||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||
cgal_add_compilation_test(Apollonius_graph_2)
|
||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||
cgal_add_compilation_test(Apollonius_graph_2)
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||
message(
|
||||
STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project (Bounding_volumes_Demo)
|
||||
project(Bounding_volumes_Demo)
|
||||
|
||||
if(NOT POLICY CMP0070 AND POLICY CMP0053)
|
||||
# Only set CMP0053 to OLD with CMake<3.10, otherwise there is a warning.
|
||||
|
|
@ -13,45 +13,47 @@ if(POLICY CMP0071)
|
|||
cmake_policy(SET CMP0071 NEW)
|
||||
endif()
|
||||
|
||||
find_package(CGAL COMPONENTS Qt5)
|
||||
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt5)
|
||||
|
||||
find_package(Qt5 QUIET COMPONENTS Xml Script OpenGL Svg)
|
||||
include_directories (BEFORE ./include)
|
||||
include_directories(BEFORE ./include)
|
||||
|
||||
if(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||
|
||||
if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND )
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
add_definitions(-DQT_NO_KEYWORDS)
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
add_definitions(-DQT_NO_KEYWORDS)
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
#----------------------------------------------
|
||||
# The "Bounding volumes" demo: Bounding_volumes
|
||||
#----------------------------------------------
|
||||
# UI files (Qt Designer files)
|
||||
qt5_wrap_ui(DT_UI_FILES Bounding_volumes.ui)
|
||||
|
||||
#----------------------------------------------
|
||||
# The "Bounding volumes" demo: Bounding_volumes
|
||||
#----------------------------------------------
|
||||
# UI files (Qt Designer files)
|
||||
qt5_wrap_ui( DT_UI_FILES Bounding_volumes.ui )
|
||||
# qrc files (resources files, that contain icons, at least)
|
||||
qt5_add_resources(CGAL_Qt5_RESOURCE_FILES ./Bounding_volumes.qrc)
|
||||
|
||||
# qrc files (resources files, that contain icons, at least)
|
||||
qt5_add_resources ( CGAL_Qt5_RESOURCE_FILES ./Bounding_volumes.qrc )
|
||||
# use the Qt MOC preprocessor on classes that derives from QObject
|
||||
|
||||
# use the Qt MOC preprocessor on classes that derives from QObject
|
||||
# The executable itself.
|
||||
add_executable(
|
||||
Bounding_volumes Bounding_volumes.cpp ${DT_UI_FILES}
|
||||
${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES})
|
||||
|
||||
# The executable itself.
|
||||
add_executable ( Bounding_volumes Bounding_volumes.cpp ${DT_UI_FILES} ${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES})
|
||||
add_to_cached_list(CGAL_EXECUTABLE_TARGETS Bounding_volumes)
|
||||
|
||||
add_to_cached_list( CGAL_EXECUTABLE_TARGETS Bounding_volumes )
|
||||
target_link_libraries(Bounding_volumes PRIVATE CGAL::CGAL CGAL::CGAL_Qt5
|
||||
Qt5::Gui)
|
||||
|
||||
target_link_libraries( Bounding_volumes PRIVATE
|
||||
CGAL::CGAL CGAL::CGAL_Qt5 Qt5::Gui)
|
||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||
cgal_add_compilation_test(Bounding_volumes)
|
||||
|
||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||
cgal_add_compilation_test(Bounding_volumes)
|
||||
|
||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||
cgal_add_compilation_test(Bounding_volumes)
|
||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||
cgal_add_compilation_test(Bounding_volumes)
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||
message(
|
||||
STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project (Circular_kernel_2_Demo)
|
||||
project(Circular_kernel_2_Demo)
|
||||
|
||||
if(NOT POLICY CMP0070 AND POLICY CMP0053)
|
||||
# Only set CMP0053 to OLD with CMake<3.10, otherwise there is a warning.
|
||||
|
|
@ -13,12 +13,11 @@ if(POLICY CMP0071)
|
|||
cmake_policy(SET CMP0071 NEW)
|
||||
endif()
|
||||
|
||||
find_package(CGAL COMPONENTS Qt5)
|
||||
|
||||
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt5)
|
||||
|
||||
find_package(Qt5 QUIET COMPONENTS Xml Script OpenGL Svg)
|
||||
|
||||
if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND )
|
||||
if(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||
add_definitions(-DQT_NO_KEYWORDS)
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
|
|
@ -27,21 +26,22 @@ if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND )
|
|||
# The demo: Circular_kernel_2
|
||||
#--------------------------------
|
||||
# UI files (Qt Designer files)
|
||||
qt5_wrap_ui( DT_UI_FILES Circular_kernel_2.ui )
|
||||
qt5_wrap_ui(DT_UI_FILES Circular_kernel_2.ui)
|
||||
|
||||
# qrc files (resources files, that contain icons, at least)
|
||||
qt5_add_resources ( CGAL_Qt5_RESOURCE_FILES ./Circular_kernel_2.qrc )
|
||||
qt5_add_resources(CGAL_Qt5_RESOURCE_FILES ./Circular_kernel_2.qrc)
|
||||
|
||||
# use the Qt MOC preprocessor on classes that derives from QObject
|
||||
|
||||
|
||||
# The executable itself.
|
||||
add_executable ( Circular_kernel_2 Circular_kernel_2.cpp ${DT_UI_FILES} ${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES})
|
||||
add_executable(
|
||||
Circular_kernel_2 Circular_kernel_2.cpp ${DT_UI_FILES}
|
||||
${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES})
|
||||
|
||||
add_to_cached_list( CGAL_EXECUTABLE_TARGETS Circular_kernel_2 )
|
||||
add_to_cached_list(CGAL_EXECUTABLE_TARGETS Circular_kernel_2)
|
||||
|
||||
target_link_libraries( Circular_kernel_2 PRIVATE
|
||||
CGAL::CGAL CGAL::CGAL_Qt5 Qt5::Gui)
|
||||
target_link_libraries(Circular_kernel_2 PRIVATE CGAL::CGAL CGAL::CGAL_Qt5
|
||||
Qt5::Gui)
|
||||
|
||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||
cgal_add_compilation_test(Circular_kernel_2)
|
||||
|
|
@ -51,6 +51,7 @@ if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND )
|
|||
|
||||
else()
|
||||
|
||||
message(STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||
message(
|
||||
STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project (Generator_Demo)
|
||||
project(Generator_Demo)
|
||||
|
||||
if(NOT POLICY CMP0070 AND POLICY CMP0053)
|
||||
# Only set CMP0053 to OLD with CMake<3.10, otherwise there is a warning.
|
||||
|
|
@ -12,11 +12,11 @@ if(POLICY CMP0071)
|
|||
cmake_policy(SET CMP0071 NEW)
|
||||
endif()
|
||||
|
||||
find_package(CGAL COMPONENTS Qt5)
|
||||
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt5)
|
||||
|
||||
find_package(Qt5 QUIET COMPONENTS Xml Script OpenGL Svg)
|
||||
|
||||
if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND )
|
||||
if(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||
|
||||
add_definitions(-DQT_NO_KEYWORDS)
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
|
|
@ -26,25 +26,27 @@ if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND )
|
|||
# Demo: Generator_2
|
||||
#--------------------------------
|
||||
# UI files (Qt Designer files)
|
||||
qt5_wrap_ui( DT_UI_FILES Generator_2.ui )
|
||||
qt5_wrap_ui(DT_UI_FILES Generator_2.ui)
|
||||
|
||||
# qrc files (resources files, that contain icons, at least)
|
||||
qt5_add_resources ( CGAL_Qt5_RESOURCE_FILES ./Generator_2.qrc )
|
||||
qt5_add_resources(CGAL_Qt5_RESOURCE_FILES ./Generator_2.qrc)
|
||||
|
||||
# use the Qt MOC preprocessor on classes that derives from QObject
|
||||
|
||||
# The executable itself.
|
||||
add_executable ( Generator_2 Generator_2.cpp ${DT_UI_FILES} ${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES} )
|
||||
add_executable(Generator_2 Generator_2.cpp ${DT_UI_FILES}
|
||||
${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES})
|
||||
|
||||
add_to_cached_list( CGAL_EXECUTABLE_TARGETS Generator_2 )
|
||||
add_to_cached_list(CGAL_EXECUTABLE_TARGETS Generator_2)
|
||||
|
||||
target_link_libraries( Generator_2 PRIVATE
|
||||
CGAL::CGAL CGAL::CGAL_Qt5 Qt5::Gui )
|
||||
target_link_libraries(Generator_2 PRIVATE CGAL::CGAL CGAL::CGAL_Qt5 Qt5::Gui)
|
||||
|
||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||
cgal_add_compilation_test(Generator_2)
|
||||
else()
|
||||
|
||||
message(STATUS "NOTICE: This demo requires CGAL, and Qt5, and will not be compiled.")
|
||||
message(
|
||||
STATUS "NOTICE: This demo requires CGAL, and Qt5, and will not be compiled."
|
||||
)
|
||||
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
# This is the CMake script for compiling a CGAL application.
|
||||
|
||||
cmake_minimum_required(VERSION 3.1...3.15)
|
||||
project (GraphicsView_Demo)
|
||||
project(GraphicsView_Demo)
|
||||
|
||||
if(NOT POLICY CMP0070 AND POLICY CMP0053)
|
||||
# Only set CMP0053 to OLD with CMake<3.10, otherwise there is a warning.
|
||||
|
|
@ -12,26 +12,26 @@ if(POLICY CMP0071)
|
|||
cmake_policy(SET CMP0071 NEW)
|
||||
endif()
|
||||
|
||||
find_package(CGAL COMPONENTS Qt5)
|
||||
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt5)
|
||||
|
||||
find_package(Qt5 QUIET COMPONENTS Xml Script OpenGL Svg)
|
||||
|
||||
if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND )
|
||||
if(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||
|
||||
add_definitions(-DQT_NO_KEYWORDS)
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
|
||||
add_executable ( min min.cpp ${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES})
|
||||
add_executable(min min.cpp ${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES})
|
||||
|
||||
add_to_cached_list( CGAL_EXECUTABLE_TARGETS min )
|
||||
add_to_cached_list(CGAL_EXECUTABLE_TARGETS min)
|
||||
|
||||
target_link_libraries( min PRIVATE
|
||||
CGAL::CGAL CGAL::CGAL_Qt5 Qt5::Gui )
|
||||
target_link_libraries(min PRIVATE CGAL::CGAL CGAL::CGAL_Qt5 Qt5::Gui)
|
||||
|
||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||
cgal_add_compilation_test(min)
|
||||
else()
|
||||
|
||||
message(STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||
message(
|
||||
STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue