mirror of https://github.com/CGAL/cgal
Use FeatureSummary in the demo, and remove CGAL_FOUND
This commit is contained in:
parent
b94c11ec4c
commit
9c15f2c9dc
|
|
@ -2,10 +2,9 @@
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.14)
|
cmake_minimum_required(VERSION 3.1...3.14)
|
||||||
project( AABB_traits_benchmark )
|
project(AABB_traits_benchmark)
|
||||||
|
|
||||||
find_package(CGAL REQUIRED QUIET OPTIONAL_COMPONENTS Core )
|
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Core)
|
||||||
|
|
||||||
create_single_source_cgal_program( "test.cpp" )
|
|
||||||
create_single_source_cgal_program( "tree_construction.cpp" )
|
|
||||||
|
|
||||||
|
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.
|
# This is the CMake script for compiling the AABB tree demo.
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
project( AABB_tree_Demo )
|
project(AABB_tree_Demo)
|
||||||
|
|
||||||
# Find includes in corresponding build directories
|
# Find includes in corresponding build directories
|
||||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||||
|
|
@ -17,58 +17,56 @@ if(POLICY CMP0071)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Include this package's headers first
|
# Include this package's headers first
|
||||||
include_directories( BEFORE ./ ./include )
|
include_directories(BEFORE ./ ./include)
|
||||||
|
|
||||||
# Find CGAL and CGAL Qt5
|
# Find CGAL and CGAL Qt5
|
||||||
find_package(CGAL COMPONENTS Qt5)
|
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt5)
|
||||||
|
|
||||||
# Find Qt5 itself
|
# Find Qt5 itself
|
||||||
find_package(Qt5 QUIET COMPONENTS Xml Script OpenGL Gui Svg)
|
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)
|
include(AddFileDependencies)
|
||||||
|
|
||||||
qt5_generate_moc( "MainWindow.h" "${CMAKE_CURRENT_BINARY_DIR}/MainWindow_moc.cpp" )
|
qt5_generate_moc("MainWindow.h"
|
||||||
add_file_dependencies( MainWindow_moc.cpp "${CMAKE_CURRENT_SOURCE_DIR}/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" )
|
qt5_generate_moc("Viewer.h" "${CMAKE_CURRENT_BINARY_DIR}/Viewer_moc.cpp")
|
||||||
add_file_dependencies( Viewer_moc.cpp "${CMAKE_CURRENT_SOURCE_DIR}/Viewer.h" )
|
add_file_dependencies(Viewer_moc.cpp "${CMAKE_CURRENT_SOURCE_DIR}/Viewer.h")
|
||||||
|
|
||||||
qt5_generate_moc( "Scene.h" "${CMAKE_CURRENT_BINARY_DIR}/Scene_moc.cpp" )
|
qt5_generate_moc("Scene.h" "${CMAKE_CURRENT_BINARY_DIR}/Scene_moc.cpp")
|
||||||
add_file_dependencies( Scene_moc.cpp "${CMAKE_CURRENT_SOURCE_DIR}/Scene.h" )
|
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"
|
add_file_dependencies(
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}/Viewer_moc.cpp"
|
AABB_demo.cpp "${CMAKE_CURRENT_BINARY_DIR}/MainWindow_moc.cpp"
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}/Scene_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}
|
#${CGAL_Qt5_MOC_FILES}
|
||||||
)
|
)
|
||||||
# Link with Qt libraries
|
# Link with Qt libraries
|
||||||
target_link_libraries( AABB_demo PRIVATE
|
target_link_libraries(AABB_demo PRIVATE Qt5::OpenGL Qt5::Gui Qt5::Xml
|
||||||
Qt5::OpenGL Qt5::Gui Qt5::Xml
|
CGAL::CGAL CGAL::CGAL_Qt5)
|
||||||
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)
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
cgal_add_compilation_test(AABB_demo)
|
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 "")
|
set(AABB_MISSING_DEPS "")
|
||||||
|
|
||||||
if(NOT CGAL_FOUND)
|
|
||||||
set(AABB_MISSING_DEPS "the CGAL library, ${AABB_MISSING_DEPS}")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(NOT CGAL_Qt5_FOUND)
|
if(NOT CGAL_Qt5_FOUND)
|
||||||
set(AABB_MISSING_DEPS "CGAL_Qt5, ${AABB_MISSING_DEPS}")
|
set(AABB_MISSING_DEPS "CGAL_Qt5, ${AABB_MISSING_DEPS}")
|
||||||
endif()
|
endif()
|
||||||
|
|
@ -77,6 +75,11 @@ else (CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||||
set(AABB_MISSING_DEPS "Qt5, ${AABB_MISSING_DEPS}")
|
set(AABB_MISSING_DEPS "Qt5, ${AABB_MISSING_DEPS}")
|
||||||
endif()
|
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
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
project( AABB_tree_Examples )
|
project(AABB_tree_Examples)
|
||||||
|
|
||||||
|
find_package(CGAL REQUIRED)
|
||||||
|
|
||||||
find_package(CGAL QUIET)
|
# create a target per cppfile
|
||||||
|
file(
|
||||||
if ( CGAL_FOUND )
|
GLOB cppfiles
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
# create a target per cppfile
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
foreach(cppfile ${cppfiles})
|
||||||
foreach(cppfile ${cppfiles})
|
create_single_source_cgal_program("${cppfile}")
|
||||||
create_single_source_cgal_program( "${cppfile}" )
|
endforeach()
|
||||||
endforeach()
|
|
||||||
|
|
||||||
else()
|
|
||||||
|
|
||||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,26 +1,18 @@
|
||||||
# Created by the script cgal_create_cmake_script
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
project( AABB_tree_Tests )
|
project(AABB_tree_Tests)
|
||||||
|
|
||||||
|
find_package(CGAL REQUIRED)
|
||||||
|
|
||||||
find_package(CGAL QUIET)
|
include(${CGAL_USE_FILE}) # Kept to test the old behaviour.
|
||||||
|
|
||||||
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()
|
|
||||||
|
|
||||||
|
# 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
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
# create a target per cppfile
|
||||||
|
file(
|
||||||
if ( CGAL_FOUND )
|
GLOB cppfiles
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
# create a target per cppfile
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
foreach(cppfile ${cppfiles})
|
||||||
foreach(cppfile ${cppfiles})
|
create_single_source_cgal_program("${cppfile}")
|
||||||
create_single_source_cgal_program( "${cppfile}" )
|
endforeach()
|
||||||
endforeach()
|
|
||||||
|
|
||||||
else()
|
|
||||||
|
|
||||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,16 @@
|
||||||
# Created by the script cgal_create_cmake_script
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
# create a target per cppfile
|
||||||
|
file(
|
||||||
if ( CGAL_FOUND )
|
GLOB cppfiles
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
# create a target per cppfile
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
foreach(cppfile ${cppfiles})
|
||||||
foreach(cppfile ${cppfiles})
|
create_single_source_cgal_program("${cppfile}")
|
||||||
create_single_source_cgal_program( "${cppfile}" )
|
endforeach()
|
||||||
endforeach()
|
|
||||||
|
|
||||||
else()
|
|
||||||
|
|
||||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,16 @@
|
||||||
# Created by the script cgal_create_cmake_script
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
project( Algebraic_foundations_Examples )
|
project(Algebraic_foundations_Examples)
|
||||||
|
|
||||||
|
find_package(CGAL REQUIRED)
|
||||||
|
|
||||||
find_package(CGAL QUIET)
|
# create a target per cppfile
|
||||||
|
file(
|
||||||
if ( CGAL_FOUND )
|
GLOB cppfiles
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
# create a target per cppfile
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
foreach(cppfile ${cppfiles})
|
||||||
foreach(cppfile ${cppfiles})
|
create_single_source_cgal_program("${cppfile}")
|
||||||
create_single_source_cgal_program( "${cppfile}" )
|
endforeach()
|
||||||
endforeach()
|
|
||||||
|
|
||||||
else()
|
|
||||||
|
|
||||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,26 +1,18 @@
|
||||||
# Created by the script cgal_create_cmake_script
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
include(${CGAL_USE_FILE})
|
||||||
|
|
||||||
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()
|
|
||||||
|
|
||||||
|
# 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)
|
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 )
|
include(${CGAL_USE_FILE})
|
||||||
find_package(MPFI QUIET)
|
include(${MPFI_USE_FILE})
|
||||||
endif()
|
include(CGAL_VersionUtils)
|
||||||
|
|
||||||
if( CGAL_FOUND AND MPFI_FOUND)
|
create_single_source_cgal_program("Compare_1.cpp")
|
||||||
|
create_single_source_cgal_program("Construct_algebraic_real_1.cpp")
|
||||||
include( ${CGAL_USE_FILE} )
|
create_single_source_cgal_program("Isolate_1.cpp")
|
||||||
include( ${MPFI_USE_FILE} )
|
create_single_source_cgal_program("Sign_at_1.cpp")
|
||||||
include( CGAL_VersionUtils )
|
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()
|
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()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -1,67 +1,65 @@
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
project( Algebraic_kernel_d_Tests )
|
project(Algebraic_kernel_d_Tests)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# CGAL and its components
|
# CGAL and its components
|
||||||
find_package( CGAL QUIET COMPONENTS Core)
|
find_package(CGAL REQUIRED COMPONENTS Core)
|
||||||
|
|
||||||
if ( NOT CGAL_FOUND )
|
|
||||||
|
|
||||||
message(STATUS "This project requires the CGAL library, and will not be compiled.")
|
|
||||||
return()
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
find_package(RS3 QUIET)
|
find_package(RS3 QUIET)
|
||||||
|
|
||||||
if(MPFI_FOUND)
|
if(MPFI_FOUND)
|
||||||
include( ${MPFI_USE_FILE} )
|
include(${MPFI_USE_FILE})
|
||||||
endif()
|
endif()
|
||||||
if(RS3_FOUND)
|
if(RS3_FOUND)
|
||||||
include( ${RS3_USE_FILE} )
|
include(${RS3_USE_FILE})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Boost and its components
|
# 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()
|
return()
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# include for local directory
|
# 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
|
# Creating entries for all .cpp/.C files with "main" routine
|
||||||
# ##########################################################
|
# ##########################################################
|
||||||
|
|
||||||
create_single_source_cgal_program( "cyclic.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.cpp")
|
||||||
create_single_source_cgal_program( "algebraic_curve_kernel_2_tools.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_LEDA.cpp")
|
||||||
|
|
||||||
create_single_source_cgal_program( "Algebraic_kernel_d_1_CORE_Integer_rational.cpp" )
|
create_single_source_cgal_program(
|
||||||
create_single_source_cgal_program( "Algebraic_kernel_d_1_CORE_SqrtII_rational.cpp" )
|
"Algebraic_kernel_d_1_CORE_Integer_rational.cpp")
|
||||||
create_single_source_cgal_program( "Algebraic_kernel_d_1_CORE_SqrtRI_rational.cpp" )
|
create_single_source_cgal_program(
|
||||||
create_single_source_cgal_program( "Algebraic_kernel_d_1_CORE_SqrtRR_rational.cpp" )
|
"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_1_GMP.cpp")
|
||||||
create_single_source_cgal_program( "Algebraic_kernel_d_2.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("Algebraic_real_d_1.cpp")
|
||||||
create_single_source_cgal_program( "Bitstream_descartes.cpp" )
|
create_single_source_cgal_program("Bitstream_descartes.cpp")
|
||||||
create_single_source_cgal_program( "Curve_analysis_2.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("Curve_pair_analysis_2.cpp")
|
||||||
create_single_source_cgal_program( "Descartes.cpp" )
|
create_single_source_cgal_program("Descartes.cpp")
|
||||||
create_single_source_cgal_program( "Real_embeddable_traits_extension.cpp" )
|
create_single_source_cgal_program("Real_embeddable_traits_extension.cpp")
|
||||||
if(RS_FOUND)
|
if(RS_FOUND)
|
||||||
create_single_source_cgal_program( "Algebraic_kernel_rs_gmpq_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" )
|
create_single_source_cgal_program("Algebraic_kernel_rs_gmpz_d_1.cpp")
|
||||||
else()
|
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()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -1,26 +1,18 @@
|
||||||
# Created by the script cgal_create_cmake_script
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
include_directories(BEFORE "include")
|
||||||
|
|
||||||
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()
|
|
||||||
|
|
||||||
|
# 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
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
include_directories(BEFORE "include")
|
||||||
|
|
||||||
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()
|
|
||||||
|
|
||||||
|
# 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
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
# create a target per cppfile
|
||||||
|
file(
|
||||||
if ( CGAL_FOUND )
|
GLOB cppfiles
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
# create a target per cppfile
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
foreach(cppfile ${cppfiles})
|
||||||
foreach(cppfile ${cppfiles})
|
create_single_source_cgal_program("${cppfile}")
|
||||||
create_single_source_cgal_program( "${cppfile}" )
|
endforeach()
|
||||||
endforeach()
|
|
||||||
|
|
||||||
else()
|
|
||||||
|
|
||||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,16 @@
|
||||||
# Created by the script cgal_create_cmake_script
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
# create a target per cppfile
|
||||||
|
file(
|
||||||
if ( CGAL_FOUND )
|
GLOB cppfiles
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
# create a target per cppfile
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
foreach(cppfile ${cppfiles})
|
||||||
foreach(cppfile ${cppfiles})
|
create_single_source_cgal_program("${cppfile}")
|
||||||
create_single_source_cgal_program( "${cppfile}" )
|
endforeach()
|
||||||
endforeach()
|
|
||||||
|
|
||||||
else()
|
|
||||||
|
|
||||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
project (Alpha_shapes_3_Demo)
|
project(Alpha_shapes_3_Demo)
|
||||||
|
|
||||||
# Find includes in corresponding build directories
|
# Find includes in corresponding build directories
|
||||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||||
|
|
@ -16,35 +16,38 @@ if(POLICY CMP0071)
|
||||||
cmake_policy(SET CMP0071 NEW)
|
cmake_policy(SET CMP0071 NEW)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(CGAL COMPONENTS Qt5)
|
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt5)
|
||||||
|
|
||||||
find_package(Qt5 QUIET COMPONENTS Xml Script OpenGL Svg)
|
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)
|
add_definitions(-DQT_NO_KEYWORDS)
|
||||||
|
|
||||||
# include(${QT_USE_FILE})
|
# include(${QT_USE_FILE})
|
||||||
include_directories (BEFORE ./ )
|
include_directories(BEFORE ./)
|
||||||
|
|
||||||
# ui file, created wih Qt Designer
|
# 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)
|
# 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_executable(
|
||||||
add_to_cached_list( CGAL_EXECUTABLE_TARGETS Alpha_shape_3 )
|
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
|
target_link_libraries(Alpha_shape_3 PRIVATE CGAL::CGAL CGAL::CGAL_Qt5
|
||||||
CGAL::CGAL CGAL::CGAL_Qt5
|
Qt5::OpenGL Qt5::Gui)
|
||||||
Qt5::OpenGL Qt5::Gui )
|
|
||||||
|
|
||||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
cgal_add_compilation_test(Alpha_shape_3)
|
cgal_add_compilation_test(Alpha_shape_3)
|
||||||
|
|
||||||
else()
|
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()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,16 @@
|
||||||
# Created by the script cgal_create_cmake_script
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
# create a target per cppfile
|
||||||
|
file(
|
||||||
if ( CGAL_FOUND )
|
GLOB cppfiles
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
# create a target per cppfile
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
foreach(cppfile ${cppfiles})
|
||||||
foreach(cppfile ${cppfiles})
|
create_single_source_cgal_program("${cppfile}")
|
||||||
create_single_source_cgal_program( "${cppfile}" )
|
endforeach()
|
||||||
endforeach()
|
|
||||||
|
|
||||||
else()
|
|
||||||
|
|
||||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,26 +1,18 @@
|
||||||
# Created by the script cgal_create_cmake_script
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
include_directories(BEFORE "include")
|
||||||
|
|
||||||
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()
|
|
||||||
|
|
||||||
|
# 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
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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 )
|
include(${CGAL_USE_FILE})
|
||||||
|
|
||||||
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()
|
|
||||||
|
|
||||||
|
# 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
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
include_directories(BEFORE "include")
|
||||||
|
|
||||||
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()
|
|
||||||
|
|
||||||
|
# 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
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
project( Arithmetic_kernel_Tests )
|
project(Arithmetic_kernel_Tests)
|
||||||
|
|
||||||
|
find_package(CGAL REQUIRED COMPONENTS Core)
|
||||||
|
|
||||||
|
|
||||||
find_package(CGAL QUIET COMPONENTS Core)
|
|
||||||
|
|
||||||
find_package(GMP QUIET)
|
find_package(GMP QUIET)
|
||||||
|
|
||||||
if ( CGAL_FOUND AND GMP_FOUND )
|
if(GMP_FOUND)
|
||||||
|
|
||||||
include(${CGAL_USE_FILE})
|
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)
|
include_directories(include)
|
||||||
|
|
||||||
find_package( MPFI )
|
find_package(MPFI)
|
||||||
|
|
||||||
if( MPFI_FOUND )
|
if(MPFI_FOUND)
|
||||||
include( ${MPFI_USE_FILE} )
|
include(${MPFI_USE_FILE})
|
||||||
|
|
||||||
# for the testsuite, the version of MPFI shipped with RS is used; this
|
# 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
|
# version needs GMP>=4.2, so we require this dependency only here and
|
||||||
# not in FindMPFI.cmake
|
# not in FindMPFI.cmake
|
||||||
if( _IS_GMP_VERSION_TO_LOW )
|
if(_IS_GMP_VERSION_TO_LOW)
|
||||||
message( STATUS
|
message(
|
||||||
"MPFI tests need GMP>=4.2, some of the tests will not be compiled" )
|
STATUS
|
||||||
else( _IS_GMP_VERSION_TO_LOW )
|
"MPFI tests need GMP>=4.2, some of the tests will not be compiled")
|
||||||
include( ${MPFI_USE_FILE} )
|
else(_IS_GMP_VERSION_TO_LOW)
|
||||||
create_single_source_cgal_program( "GMP_arithmetic_kernel.cpp" )
|
include(${MPFI_USE_FILE})
|
||||||
endif( _IS_GMP_VERSION_TO_LOW )
|
create_single_source_cgal_program("GMP_arithmetic_kernel.cpp")
|
||||||
else( MPFI_FOUND )
|
endif(_IS_GMP_VERSION_TO_LOW)
|
||||||
message( STATUS
|
else(MPFI_FOUND)
|
||||||
"MPFI is not present, some of the tests will not be compiled." )
|
message(
|
||||||
endif( MPFI_FOUND )
|
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("Arithmetic_kernel.cpp")
|
||||||
create_single_source_cgal_program( "LEDA_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("CORE_arithmetic_kernel.cpp")
|
||||||
create_single_source_cgal_program( "Get_arithmetic_kernel.cpp" )
|
create_single_source_cgal_program("Get_arithmetic_kernel.cpp")
|
||||||
|
|
||||||
else()
|
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()
|
endif()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
project( Arrangement_on_surface_2_Demo )
|
project(Arrangement_on_surface_2_Demo)
|
||||||
|
|
||||||
if(NOT POLICY CMP0070 AND POLICY CMP0053)
|
if(NOT POLICY CMP0070 AND POLICY CMP0053)
|
||||||
# Only set CMP0053 to OLD with CMake<3.10, otherwise there is a warning.
|
# Only set CMP0053 to OLD with CMake<3.10, otherwise there is a warning.
|
||||||
|
|
@ -12,28 +12,27 @@ if(POLICY CMP0071)
|
||||||
cmake_policy(SET CMP0071 NEW)
|
cmake_policy(SET CMP0071 NEW)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(CGAL COMPONENTS Core Qt5 )
|
find_package(CGAL REQUIRED COMPONENTS Core Qt5)
|
||||||
|
|
||||||
find_package( Qt5 QUIET COMPONENTS Gui Widgets)
|
find_package(Qt5 QUIET COMPONENTS Gui Widgets)
|
||||||
|
|
||||||
if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND AND CGAL_Core_FOUND)
|
if(CGAL_Qt5_FOUND
|
||||||
|
AND Qt5_FOUND
|
||||||
|
AND CGAL_Core_FOUND)
|
||||||
include(${CGAL_USE_FILE})
|
include(${CGAL_USE_FILE})
|
||||||
|
|
||||||
include_directories( ./ )
|
include_directories(./)
|
||||||
# Arrangement package includes
|
# Arrangement package includes
|
||||||
add_definitions(-DQT_NO_KEYWORDS)
|
add_definitions(-DQT_NO_KEYWORDS)
|
||||||
|
|
||||||
qt5_wrap_ui( arrangement_2_uis
|
qt5_wrap_ui(arrangement_2_uis ArrangementDemoWindow.ui NewTabDialog.ui
|
||||||
ArrangementDemoWindow.ui
|
OverlayDialog.ui ArrangementDemoPropertiesDialog.ui)
|
||||||
NewTabDialog.ui
|
qt5_wrap_cpp(
|
||||||
OverlayDialog.ui
|
CGAL_Qt5_MOC_FILES
|
||||||
ArrangementDemoPropertiesDialog.ui
|
|
||||||
)
|
|
||||||
qt5_wrap_cpp( CGAL_Qt5_MOC_FILES
|
|
||||||
ArrangementDemoWindow.h
|
ArrangementDemoWindow.h
|
||||||
ArrangementDemoTab.h
|
ArrangementDemoTab.h
|
||||||
Callback.h
|
Callback.h
|
||||||
# NewTabDialog.h
|
# NewTabDialog.h
|
||||||
OverlayDialog.h
|
OverlayDialog.h
|
||||||
ArrangementDemoPropertiesDialog.h
|
ArrangementDemoPropertiesDialog.h
|
||||||
ColorItemEditor.h
|
ColorItemEditor.h
|
||||||
|
|
@ -41,10 +40,9 @@ if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND AND CGAL_Core_FOUND)
|
||||||
PropertyValueDelegate.h
|
PropertyValueDelegate.h
|
||||||
#PropertyValueDelegate.cpp
|
#PropertyValueDelegate.cpp
|
||||||
)
|
)
|
||||||
qt5_add_resources( CGAL_Qt5_RESOURCE_FILES
|
qt5_add_resources(CGAL_Qt5_RESOURCE_FILES ArrangementDemoWindow.qrc)
|
||||||
ArrangementDemoWindow.qrc
|
add_executable(
|
||||||
)
|
arrangement_2
|
||||||
add_executable( arrangement_2
|
|
||||||
arrangement_2.cpp
|
arrangement_2.cpp
|
||||||
ArrangementGraphicsItem.cpp
|
ArrangementGraphicsItem.cpp
|
||||||
ArrangementDemoWindow.cpp
|
ArrangementDemoWindow.cpp
|
||||||
|
|
@ -67,22 +65,22 @@ if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND AND CGAL_Core_FOUND)
|
||||||
DeleteCurveModeItemEditor.cpp
|
DeleteCurveModeItemEditor.cpp
|
||||||
PointsGraphicsItem.cpp
|
PointsGraphicsItem.cpp
|
||||||
VerticalRayGraphicsItem.cpp
|
VerticalRayGraphicsItem.cpp
|
||||||
${CGAL_Qt5_MOC_FILES}
|
${CGAL_Qt5_MOC_FILES}
|
||||||
${arrangement_2_uis}
|
${arrangement_2_uis}
|
||||||
${CGAL_Qt5_RESOURCE_FILES}
|
${CGAL_Qt5_RESOURCE_FILES})
|
||||||
)
|
target_link_libraries(arrangement_2 PRIVATE CGAL::CGAL CGAL::CGAL_Qt5
|
||||||
target_link_libraries( arrangement_2 PRIVATE
|
CGAL::CGAL_Core Qt5::Gui)
|
||||||
CGAL::CGAL CGAL::CGAL_Qt5 CGAL::CGAL_Core
|
|
||||||
Qt5::Gui
|
|
||||||
)
|
|
||||||
|
|
||||||
add_to_cached_list( CGAL_EXECUTABLE_TARGETS arrangement_2 )
|
add_to_cached_list(CGAL_EXECUTABLE_TARGETS arrangement_2)
|
||||||
|
|
||||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
cgal_add_compilation_test(arrangement_2)
|
cgal_add_compilation_test(arrangement_2)
|
||||||
else()
|
else()
|
||||||
|
|
||||||
message(STATUS "NOTICE: This demo requires CGAL, CGAL-Core and Qt5, and will not be compiled.")
|
message(
|
||||||
|
STATUS
|
||||||
|
"NOTICE: This demo requires CGAL, CGAL-Core and Qt5, and will not be compiled."
|
||||||
|
)
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
add_executable( Test Test.cpp )
|
add_executable(Test Test.cpp)
|
||||||
add_executable( TestRayPL TestRayPL.cpp )
|
add_executable(TestRayPL TestRayPL.cpp)
|
||||||
add_executable( TestAlgebraic TestAlgebraic.cpp )
|
add_executable(TestAlgebraic TestAlgebraic.cpp)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,26 +1,18 @@
|
||||||
# Created by the script cgal_create_cmake_script
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
include(${CGAL_USE_FILE})
|
||||||
|
|
||||||
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()
|
|
||||||
|
|
||||||
|
# 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
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
project( Arrangement_on_surface_2_Tests )
|
project(Arrangement_on_surface_2_Tests)
|
||||||
|
|
||||||
enable_testing()
|
enable_testing()
|
||||||
|
|
||||||
|
find_package(CGAL REQUIRED COMPONENTS Core)
|
||||||
|
|
||||||
find_package(CGAL QUIET COMPONENTS Core)
|
include(${CGAL_USE_FILE})
|
||||||
|
|
||||||
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()
|
|
||||||
|
|
||||||
|
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()
|
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()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -2,26 +2,18 @@
|
||||||
# This is the CMake script for compiling a set of CGAL applications.
|
# This is the CMake script for compiling a set of CGAL applications.
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
project( BGL_LCC_Examples )
|
project(BGL_LCC_Examples)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# CGAL and its components
|
# CGAL and its components
|
||||||
find_package( CGAL QUIET COMPONENTS )
|
find_package(CGAL REQUIRED)
|
||||||
|
|
||||||
if ( NOT CGAL_FOUND )
|
|
||||||
|
|
||||||
message(STATUS "This project requires the CGAL library, and will not be compiled.")
|
|
||||||
return()
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# Boost and its components
|
# 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()
|
return()
|
||||||
|
|
||||||
|
|
@ -33,7 +25,10 @@ endif()
|
||||||
# ##########################################################
|
# ##########################################################
|
||||||
|
|
||||||
# create a target per cppfile
|
# 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})
|
foreach(cppfile ${cppfiles})
|
||||||
create_single_source_cgal_program("${cppfile}")
|
create_single_source_cgal_program("${cppfile}")
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
|
||||||
|
|
@ -2,38 +2,31 @@
|
||||||
# This is the CMake script for compiling a set of CGAL applications.
|
# This is the CMake script for compiling a set of CGAL applications.
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
project( BGL_OpenMesh_Examples )
|
project(BGL_OpenMesh_Examples)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# CGAL and its components
|
# CGAL and its components
|
||||||
find_package( CGAL QUIET COMPONENTS )
|
find_package(CGAL REQUIRED)
|
||||||
|
|
||||||
if ( NOT CGAL_FOUND )
|
|
||||||
|
|
||||||
message(STATUS "This project requires the CGAL library, and will not be compiled.")
|
|
||||||
return()
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# Boost and its components
|
# 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()
|
return()
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package( OpenMesh QUIET )
|
find_package(OpenMesh QUIET)
|
||||||
|
|
||||||
if ( OpenMesh_FOUND )
|
if(OpenMesh_FOUND)
|
||||||
include( UseOpenMesh )
|
include(UseOpenMesh)
|
||||||
else()
|
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()
|
return()
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
@ -46,7 +39,6 @@ endif()
|
||||||
# ##########################################################
|
# ##########################################################
|
||||||
|
|
||||||
if(OpenMesh_FOUND)
|
if(OpenMesh_FOUND)
|
||||||
create_single_source_cgal_program( "TriMesh.cpp" )
|
create_single_source_cgal_program("TriMesh.cpp")
|
||||||
target_link_libraries( TriMesh PRIVATE ${OPENMESH_LIBRARIES} )
|
target_link_libraries(TriMesh PRIVATE ${OPENMESH_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,13 @@
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
# create a target per cppfile
|
||||||
|
file(
|
||||||
if ( CGAL_FOUND )
|
GLOB cppfiles
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
# create a target per cppfile
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
foreach(cppfile ${cppfiles})
|
||||||
foreach(cppfile ${cppfiles})
|
create_single_source_cgal_program("${cppfile}")
|
||||||
create_single_source_cgal_program( "${cppfile}" )
|
endforeach()
|
||||||
endforeach()
|
|
||||||
|
|
||||||
else()
|
|
||||||
|
|
||||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,26 +3,18 @@
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
|
|
||||||
project( BGL_graphcut_Examples )
|
project(BGL_graphcut_Examples)
|
||||||
|
|
||||||
|
|
||||||
# CGAL and its components
|
# CGAL and its components
|
||||||
find_package( CGAL QUIET COMPONENTS )
|
find_package(CGAL REQUIRED)
|
||||||
|
|
||||||
if ( NOT CGAL_FOUND )
|
|
||||||
|
|
||||||
message(STATUS "This project requires the CGAL library, and will not be compiled.")
|
|
||||||
return()
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
||||||
# Boost and its components
|
# 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()
|
return()
|
||||||
|
|
||||||
|
|
@ -32,12 +24,9 @@ endif()
|
||||||
|
|
||||||
# include for local package
|
# include for local package
|
||||||
|
|
||||||
|
|
||||||
# Creating entries for all C++ files with "main" routine
|
# Creating entries for all C++ files with "main" routine
|
||||||
# ##########################################################
|
# ##########################################################
|
||||||
|
|
||||||
|
create_single_source_cgal_program("alpha_expansion_example.cpp")
|
||||||
create_single_source_cgal_program( "alpha_expansion_example.cpp" )
|
create_single_source_cgal_program(
|
||||||
create_single_source_cgal_program( "face_selection_borders_regularization_example.cpp" )
|
"face_selection_borders_regularization_example.cpp")
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,46 +2,38 @@
|
||||||
# This is the CMake script for compiling a set of CGAL applications.
|
# This is the CMake script for compiling a set of CGAL applications.
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
project( BGL_polyhedron_3_Examples )
|
project(BGL_polyhedron_3_Examples)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# CGAL and its components
|
# CGAL and its components
|
||||||
find_package( CGAL QUIET COMPONENTS )
|
find_package(CGAL REQUIRED)
|
||||||
|
|
||||||
if ( NOT CGAL_FOUND )
|
|
||||||
|
|
||||||
message(STATUS "This project requires the CGAL library, and will not be compiled.")
|
|
||||||
return()
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# Boost and its components
|
# 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()
|
return()
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package( OpenMesh QUIET )
|
find_package(OpenMesh QUIET)
|
||||||
|
|
||||||
if ( OpenMesh_FOUND )
|
if(OpenMesh_FOUND)
|
||||||
include( UseOpenMesh )
|
include(UseOpenMesh)
|
||||||
add_definitions( -DCGAL_USE_OPENMESH )
|
add_definitions(-DCGAL_USE_OPENMESH)
|
||||||
else()
|
else()
|
||||||
message(STATUS "Examples that use OpenMesh will not be compiled.")
|
message(STATUS "Examples that use OpenMesh will not be compiled.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package( METIS )
|
find_package(METIS)
|
||||||
|
|
||||||
if( METIS_FOUND )
|
if(METIS_FOUND)
|
||||||
include_directories(${METIS_INCLUDE_DIRS} )
|
include_directories(${METIS_INCLUDE_DIRS})
|
||||||
else()
|
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()
|
endif()
|
||||||
|
|
||||||
# include for local directory
|
# include for local directory
|
||||||
|
|
@ -51,28 +43,27 @@ endif()
|
||||||
# Creating entries for all C++ files with "main" routine
|
# 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)
|
if(OpenMesh_FOUND)
|
||||||
target_link_libraries( copy_polyhedron PRIVATE ${OPENMESH_LIBRARIES} )
|
target_link_libraries(copy_polyhedron PRIVATE ${OPENMESH_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if( METIS_FOUND )
|
if(METIS_FOUND)
|
||||||
create_single_source_cgal_program( "polyhedron_partition.cpp" )
|
create_single_source_cgal_program("polyhedron_partition.cpp")
|
||||||
target_link_libraries( polyhedron_partition PRIVATE ${METIS_LIBRARIES} )
|
target_link_libraries(polyhedron_partition PRIVATE ${METIS_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,31 +1,24 @@
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
project( BGL_surface_mesh_Examples )
|
project(BGL_surface_mesh_Examples)
|
||||||
|
|
||||||
|
find_package(CGAL REQUIRED)
|
||||||
find_package( CGAL QUIET )
|
|
||||||
|
|
||||||
if ( NOT CGAL_FOUND )
|
|
||||||
message( STATUS "This project requires the CGAL library, and will not be compiled." )
|
|
||||||
return()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# include for local package
|
# include for local package
|
||||||
|
|
||||||
create_single_source_cgal_program( "prim.cpp" )
|
create_single_source_cgal_program("prim.cpp")
|
||||||
create_single_source_cgal_program( "gwdwg.cpp" )
|
create_single_source_cgal_program("gwdwg.cpp")
|
||||||
create_single_source_cgal_program( "seam_mesh.cpp" )
|
create_single_source_cgal_program("seam_mesh.cpp")
|
||||||
create_single_source_cgal_program( "write_inp.cpp" )
|
create_single_source_cgal_program("write_inp.cpp")
|
||||||
create_single_source_cgal_program( "surface_mesh_dual.cpp" )
|
create_single_source_cgal_program("surface_mesh_dual.cpp")
|
||||||
create_single_source_cgal_program( "connected_components.cpp" )
|
create_single_source_cgal_program("connected_components.cpp")
|
||||||
|
|
||||||
find_package( METIS )
|
find_package(METIS)
|
||||||
|
|
||||||
if( METIS_FOUND )
|
if(METIS_FOUND)
|
||||||
include_directories(${METIS_INCLUDE_DIRS} )
|
include_directories(${METIS_INCLUDE_DIRS})
|
||||||
|
|
||||||
create_single_source_cgal_program( "surface_mesh_partition.cpp" )
|
create_single_source_cgal_program("surface_mesh_partition.cpp")
|
||||||
target_link_libraries( surface_mesh_partition PRIVATE ${METIS_LIBRARIES} )
|
target_link_libraries(surface_mesh_partition PRIVATE ${METIS_LIBRARIES})
|
||||||
else()
|
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()
|
endif()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,13 @@
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
# create a target per cppfile
|
||||||
|
file(
|
||||||
if ( CGAL_FOUND )
|
GLOB cppfiles
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
# create a target per cppfile
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
foreach(cppfile ${cppfiles})
|
||||||
foreach(cppfile ${cppfiles})
|
create_single_source_cgal_program("${cppfile}")
|
||||||
create_single_source_cgal_program( "${cppfile}" )
|
endforeach()
|
||||||
endforeach()
|
|
||||||
|
|
||||||
else()
|
|
||||||
|
|
||||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,113 +2,102 @@
|
||||||
# This is the CMake script for compiling a set of CGAL applications.
|
# This is the CMake script for compiling a set of CGAL applications.
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
project( BGL_Tests )
|
project(BGL_Tests)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# CGAL and its components
|
# CGAL and its components
|
||||||
find_package( CGAL QUIET COMPONENTS )
|
find_package(CGAL REQUIRED)
|
||||||
|
|
||||||
if ( NOT CGAL_FOUND )
|
|
||||||
|
|
||||||
message(STATUS "This project requires the CGAL library, and will not be compiled.")
|
|
||||||
return()
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# Boost and its components
|
# 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()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package( OpenMesh QUIET )
|
find_package(OpenMesh QUIET)
|
||||||
|
|
||||||
if ( OpenMesh_FOUND )
|
if(OpenMesh_FOUND)
|
||||||
include( UseOpenMesh )
|
include(UseOpenMesh)
|
||||||
add_definitions( -DCGAL_USE_OPENMESH )
|
add_definitions(-DCGAL_USE_OPENMESH)
|
||||||
else()
|
else()
|
||||||
message(STATUS "Examples that use OpenMesh will not be compiled.")
|
message(STATUS "Examples that use OpenMesh will not be compiled.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# include for local package
|
# include for local package
|
||||||
|
|
||||||
# Creating entries for all .cpp/.C files with "main" routine
|
# Creating entries for all .cpp/.C files with "main" routine
|
||||||
# ##########################################################
|
# ##########################################################
|
||||||
|
|
||||||
if(OpenMesh_FOUND)
|
if(OpenMesh_FOUND)
|
||||||
create_single_source_cgal_program( "graph_concept_OpenMesh.cpp" )
|
create_single_source_cgal_program("graph_concept_OpenMesh.cpp")
|
||||||
target_link_libraries( graph_concept_OpenMesh PRIVATE ${OPENMESH_LIBRARIES} )
|
target_link_libraries(graph_concept_OpenMesh PRIVATE ${OPENMESH_LIBRARIES})
|
||||||
endif()
|
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( "test_clear.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_Collapse_edge.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")
|
||||||
|
|
||||||
if(OpenMesh_FOUND)
|
if(OpenMesh_FOUND)
|
||||||
target_link_libraries( test_clear PRIVATE ${OPENMESH_LIBRARIES})
|
target_link_libraries(test_clear PRIVATE ${OPENMESH_LIBRARIES})
|
||||||
target_link_libraries( test_Euler_operations 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_Collapse_edge PRIVATE ${OPENMESH_LIBRARIES})
|
||||||
target_link_libraries( test_Face_filtered_graph 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_graph_traits PRIVATE ${OPENMESH_LIBRARIES})
|
||||||
target_link_libraries( test_Properties 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_bgl_read_write PRIVATE ${OPENMESH_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,16 @@
|
||||||
# Created by the script cgal_create_cmake_script
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
# create a target per cppfile
|
||||||
|
file(
|
||||||
if ( CGAL_FOUND )
|
GLOB cppfiles
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
# create a target per cppfile
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
foreach(cppfile ${cppfiles})
|
||||||
foreach(cppfile ${cppfiles})
|
create_single_source_cgal_program("${cppfile}")
|
||||||
create_single_source_cgal_program( "${cppfile}" )
|
endforeach()
|
||||||
endforeach()
|
|
||||||
|
|
||||||
else()
|
|
||||||
|
|
||||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,16 @@
|
||||||
# Created by the script cgal_create_cmake_script
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
# create a target per cppfile
|
||||||
|
file(
|
||||||
if ( CGAL_FOUND )
|
GLOB cppfiles
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
# create a target per cppfile
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
foreach(cppfile ${cppfiles})
|
||||||
foreach(cppfile ${cppfiles})
|
create_single_source_cgal_program("${cppfile}")
|
||||||
create_single_source_cgal_program( "${cppfile}" )
|
endforeach()
|
||||||
endforeach()
|
|
||||||
|
|
||||||
else()
|
|
||||||
|
|
||||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,42 +2,49 @@
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
if(NOT POLICY CMP0070 AND POLICY CMP0053)
|
||||||
# Only set CMP0053 to OLD with CMake<3.10, otherwise there is a warning.
|
# Only set CMP0053 to OLD with CMake<3.10, otherwise there is a warning.
|
||||||
cmake_policy(SET CMP0053 OLD)
|
cmake_policy(SET CMP0053 OLD)
|
||||||
endif()
|
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)
|
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 )
|
if(CGAL_Qt5_FOUND
|
||||||
set(CMAKE_AUTOMOC ON)
|
AND Qt5_FOUND
|
||||||
|
AND CGAL_Core_FOUND)
|
||||||
|
set(CMAKE_AUTOMOC ON)
|
||||||
# UI files (Qt Designer files)
|
# 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)
|
# 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
|
# use the Qt MOC preprocessor on classes that derives from QObject
|
||||||
|
|
||||||
|
|
||||||
# The executable itself.
|
# 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
|
# 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
|
# 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()
|
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()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -1,26 +1,18 @@
|
||||||
# Created by the script cgal_create_cmake_script
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
include(${CGAL_USE_FILE})
|
||||||
|
|
||||||
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()
|
|
||||||
|
|
||||||
|
# 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
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
# create a target per cppfile
|
||||||
|
file(
|
||||||
if ( CGAL_FOUND )
|
GLOB cppfiles
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
# create a target per cppfile
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
foreach(cppfile ${cppfiles})
|
||||||
foreach(cppfile ${cppfiles})
|
create_single_source_cgal_program("${cppfile}")
|
||||||
create_single_source_cgal_program( "${cppfile}" )
|
endforeach()
|
||||||
endforeach()
|
|
||||||
|
|
||||||
else()
|
|
||||||
|
|
||||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,31 +1,25 @@
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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 )
|
# create a target per cppfile
|
||||||
|
file(
|
||||||
# Use Eigen
|
GLOB cppfiles
|
||||||
find_package(Eigen3 3.1.0 QUIET) #(3.1.0 or greater)
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
include(CGAL_Eigen_support)
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
|
foreach(cppfile ${cppfiles})
|
||||||
# create a target per cppfile
|
if(NOT (${cppfile} STREQUAL "ellipsoid.cpp") OR TARGET CGAL::Eigen_support)
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
get_filename_component(target ${cppfile} NAME_WE)
|
||||||
foreach(cppfile ${cppfiles})
|
add_executable(${target} ${cppfile})
|
||||||
if(NOT (${cppfile} STREQUAL "ellipsoid.cpp") OR TARGET CGAL::Eigen_support)
|
if(TARGET CGAL::Eigen_support)
|
||||||
get_filename_component(target ${cppfile} NAME_WE)
|
target_link_libraries(${target} CGAL::CGAL CGAL::Eigen_support)
|
||||||
add_executable(${target} ${cppfile})
|
else()
|
||||||
if (TARGET CGAL::Eigen_support)
|
target_link_libraries(${target} CGAL::CGAL)
|
||||||
target_link_libraries(${target} CGAL::CGAL CGAL::Eigen_support)
|
|
||||||
else()
|
|
||||||
target_link_libraries(${target} CGAL::CGAL)
|
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endif()
|
||||||
|
endforeach()
|
||||||
else()
|
|
||||||
|
|
||||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,13 @@
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
# create a target per cppfile
|
||||||
|
file(
|
||||||
if ( CGAL_FOUND )
|
GLOB cppfiles
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
# create a target per cppfile
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
foreach(cppfile ${cppfiles})
|
||||||
foreach(cppfile ${cppfiles})
|
create_single_source_cgal_program("${cppfile}")
|
||||||
create_single_source_cgal_program( "${cppfile}" )
|
endforeach()
|
||||||
endforeach()
|
|
||||||
|
|
||||||
else()
|
|
||||||
|
|
||||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,13 @@
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
# create a target per cppfile
|
||||||
|
file(
|
||||||
if ( CGAL_FOUND )
|
GLOB cppfiles
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
# create a target per cppfile
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
foreach(cppfile ${cppfiles})
|
||||||
foreach(cppfile ${cppfiles})
|
create_single_source_cgal_program("${cppfile}")
|
||||||
create_single_source_cgal_program( "${cppfile}" )
|
endforeach()
|
||||||
endforeach()
|
|
||||||
|
|
||||||
else()
|
|
||||||
|
|
||||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,13 @@
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
# create a target per cppfile
|
||||||
|
file(
|
||||||
if ( CGAL_FOUND )
|
GLOB cppfiles
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
# create a target per cppfile
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
foreach(cppfile ${cppfiles})
|
||||||
foreach(cppfile ${cppfiles})
|
create_single_source_cgal_program("${cppfile}")
|
||||||
create_single_source_cgal_program( "${cppfile}" )
|
endforeach()
|
||||||
endforeach()
|
|
||||||
|
|
||||||
else()
|
|
||||||
|
|
||||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,13 @@
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
# create a target per cppfile
|
||||||
|
file(
|
||||||
if ( CGAL_FOUND )
|
GLOB cppfiles
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
# create a target per cppfile
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
foreach(cppfile ${cppfiles})
|
||||||
foreach(cppfile ${cppfiles})
|
create_single_source_cgal_program("${cppfile}")
|
||||||
create_single_source_cgal_program( "${cppfile}" )
|
endforeach()
|
||||||
endforeach()
|
|
||||||
|
|
||||||
else()
|
|
||||||
|
|
||||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,13 @@
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
# create a target per cppfile
|
||||||
|
file(
|
||||||
if ( CGAL_FOUND )
|
GLOB cppfiles
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
# create a target per cppfile
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
foreach(cppfile ${cppfiles})
|
||||||
foreach(cppfile ${cppfiles})
|
create_single_source_cgal_program("${cppfile}")
|
||||||
create_single_source_cgal_program( "${cppfile}" )
|
endforeach()
|
||||||
endforeach()
|
|
||||||
|
|
||||||
else()
|
|
||||||
|
|
||||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,13 @@
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
# create a target per cppfile
|
||||||
|
file(
|
||||||
if ( CGAL_FOUND )
|
GLOB cppfiles
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
# create a target per cppfile
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
foreach(cppfile ${cppfiles})
|
||||||
foreach(cppfile ${cppfiles})
|
create_single_source_cgal_program("${cppfile}")
|
||||||
create_single_source_cgal_program( "${cppfile}" )
|
endforeach()
|
||||||
endforeach()
|
|
||||||
|
|
||||||
else()
|
|
||||||
|
|
||||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,13 @@
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
# create a target per cppfile
|
||||||
|
file(
|
||||||
if ( CGAL_FOUND )
|
GLOB cppfiles
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
# create a target per cppfile
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
foreach(cppfile ${cppfiles})
|
||||||
foreach(cppfile ${cppfiles})
|
create_single_source_cgal_program("${cppfile}")
|
||||||
create_single_source_cgal_program( "${cppfile}" )
|
endforeach()
|
||||||
endforeach()
|
|
||||||
|
|
||||||
else()
|
|
||||||
|
|
||||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,37 +1,31 @@
|
||||||
# Created by the script cgal_create_cmake_script
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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})
|
# create a target per cppfile
|
||||||
|
file(
|
||||||
# Use Eigen
|
GLOB cppfiles
|
||||||
find_package(Eigen3 3.1.0 QUIET) #(3.1.0 or greater)
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
include(CGAL_Eigen_support)
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
|
foreach(cppfile ${cppfiles})
|
||||||
# create a target per cppfile
|
if(NOT (${cppfile} STREQUAL "Approximate_min_ellipsoid_d.cpp")
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
OR TARGET CGAL::Eigen_support)
|
||||||
foreach(cppfile ${cppfiles})
|
get_filename_component(target ${cppfile} NAME_WE)
|
||||||
if(NOT (${cppfile} STREQUAL "Approximate_min_ellipsoid_d.cpp") OR TARGET CGAL::Eigen_support)
|
add_executable(${target} ${cppfile})
|
||||||
get_filename_component(target ${cppfile} NAME_WE)
|
if(TARGET CGAL::Eigen_support)
|
||||||
add_executable(${target} ${cppfile})
|
target_link_libraries(${target} CGAL::CGAL CGAL::Eigen_support)
|
||||||
if (TARGET CGAL::Eigen_support)
|
else()
|
||||||
target_link_libraries(${target} CGAL::CGAL CGAL::Eigen_support)
|
target_link_libraries(${target} CGAL::CGAL)
|
||||||
else()
|
|
||||||
target_link_libraries(${target} CGAL::CGAL)
|
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endif()
|
||||||
|
endforeach()
|
||||||
else()
|
|
||||||
|
|
||||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,16 @@
|
||||||
# Created by the script cgal_create_cmake_script
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
# create a target per cppfile
|
||||||
|
file(
|
||||||
if ( CGAL_FOUND )
|
GLOB cppfiles
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
# create a target per cppfile
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
foreach(cppfile ${cppfiles})
|
||||||
foreach(cppfile ${cppfiles})
|
create_single_source_cgal_program("${cppfile}")
|
||||||
create_single_source_cgal_program( "${cppfile}" )
|
endforeach()
|
||||||
endforeach()
|
|
||||||
|
|
||||||
else()
|
|
||||||
|
|
||||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,22 @@
|
||||||
# Created by the script cgal_create_cmake_script
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
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" )
|
if(TARGET CGAL::TBB_support)
|
||||||
create_single_source_cgal_program( "benchmark_box_intersection.cpp" )
|
target_link_libraries(test_box_grid PUBLIC CGAL::TBB_support)
|
||||||
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()
|
|
||||||
else()
|
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()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -1,26 +1,25 @@
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
project( Core_Examples )
|
project(Core_Examples)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# CGAL and its components
|
# 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()
|
return()
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Boost and its components
|
# 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()
|
return()
|
||||||
|
|
||||||
|
|
@ -34,4 +33,4 @@ include(${CGAL_USE_FILE})
|
||||||
# Creating entries for all .cpp/.C files with "main" routine
|
# 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)
|
set(keyword PUBLIC)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
CGAL_setup_CGAL_Core_dependencies(CGAL_Core ${keyword})
|
cgal_setup_cgal_core_dependencies(CGAL_Core ${keyword})
|
||||||
|
|
||||||
message("libCGAL_Core is configured")
|
message("libCGAL_Core is configured")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,24 +6,21 @@ if(NOT POLICY CMP0070 AND POLICY CMP0053)
|
||||||
cmake_policy(SET CMP0053 OLD)
|
cmake_policy(SET CMP0053 OLD)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
set(PACKAGE_ROOT ../..)
|
set(PACKAGE_ROOT ../..)
|
||||||
|
|
||||||
# Add several CGAL packages to the include and link paths,
|
# Add several CGAL packages to the include and link paths,
|
||||||
# if they lie in ${PACKAGE_ROOT}/.
|
# if they lie in ${PACKAGE_ROOT}/.
|
||||||
foreach(INC_DIR ${PACKAGE_ROOT}/include
|
foreach(INC_DIR ${PACKAGE_ROOT}/include ${PACKAGE_ROOT}/../CGAL_ImageIO/include)
|
||||||
${PACKAGE_ROOT}/../CGAL_ImageIO/include )
|
|
||||||
if(EXISTS ${INC_DIR})
|
if(EXISTS ${INC_DIR})
|
||||||
include_directories (BEFORE ${INC_DIR})
|
include_directories(BEFORE ${INC_DIR})
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
foreach(LIB_DIR ${PACKAGE_ROOT}/../CGAL_ImageIO/src/CGAL_ImageIO)
|
foreach(LIB_DIR ${PACKAGE_ROOT}/../CGAL_ImageIO/src/CGAL_ImageIO)
|
||||||
if (EXISTS ${LIB_DIR})
|
if(EXISTS ${LIB_DIR})
|
||||||
link_directories (${LIB_DIR})
|
link_directories(${LIB_DIR})
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
|
|
||||||
find_package(CGAL REQUIRED ImageIO)
|
find_package(CGAL REQUIRED ImageIO)
|
||||||
find_package(VTK QUIET NO_MODULE)
|
find_package(VTK QUIET NO_MODULE)
|
||||||
|
|
||||||
|
|
@ -35,19 +32,24 @@ if(VTK_FOUND)
|
||||||
include(${VTK_USE_FILE})
|
include(${VTK_USE_FILE})
|
||||||
find_package(Qt${VTK_QT_VERSION} COMPONENTS QtGui)
|
find_package(Qt${VTK_QT_VERSION} COMPONENTS QtGui)
|
||||||
if(NOT TARGET Qt${VTK_QT_VERSION}::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()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_executable( image_to_vtk_viewer image_to_vtk_viewer.cpp )
|
add_executable(image_to_vtk_viewer image_to_vtk_viewer.cpp)
|
||||||
add_to_cached_list( CGAL_EXECUTABLE_TARGETS image_to_vtk_viewer )
|
add_to_cached_list(CGAL_EXECUTABLE_TARGETS image_to_vtk_viewer)
|
||||||
|
|
||||||
target_link_libraries( image_to_vtk_viewer
|
target_link_libraries(
|
||||||
${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES}
|
image_to_vtk_viewer ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES}
|
||||||
${VTK_LIBRARIES} Qt${VTK_QT_VERSION}::QtGui
|
${VTK_LIBRARIES} Qt${VTK_QT_VERSION}::QtGui)
|
||||||
)
|
|
||||||
else()
|
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()
|
endif()
|
||||||
else()
|
else()
|
||||||
message(STATUS "NOTICE: This demo needs VTK, and will not be compiled.")
|
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.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
project( CGALimageIO_Examples )
|
project(CGALimageIO_Examples)
|
||||||
|
|
||||||
|
|
||||||
if(POLICY CMP0074)
|
if(POLICY CMP0074)
|
||||||
cmake_policy(SET CMP0074 NEW)
|
cmake_policy(SET CMP0074 NEW)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(CGAL QUIET COMPONENTS ImageIO )
|
find_package(CGAL REQUIRED COMPONENTS ImageIO)
|
||||||
|
|
||||||
if(CGAL_ImageIO_FOUND)
|
if(CGAL_ImageIO_FOUND)
|
||||||
include(${CGAL_USE_FILE})
|
include(${CGAL_USE_FILE})
|
||||||
|
|
||||||
create_single_source_cgal_program( "convert_raw_image_to_inr.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("test_imageio.cpp")
|
||||||
create_single_source_cgal_program( "extract_a_sub_image.cpp" )
|
create_single_source_cgal_program("extract_a_sub_image.cpp")
|
||||||
else()
|
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()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
message("Configuring libCGAL_ImageIO")
|
message("Configuring libCGAL_ImageIO")
|
||||||
|
|
||||||
collect_cgal_library( CGAL_ImageIO "")
|
collect_cgal_library(CGAL_ImageIO "")
|
||||||
|
|
||||||
include(CGAL_SetupCGAL_ImageIODependencies)
|
include(CGAL_SetupCGAL_ImageIODependencies)
|
||||||
|
|
||||||
|
|
@ -8,11 +8,11 @@ if(CGAL_HEADER_ONLY)
|
||||||
set(keyword "INTERFACE")
|
set(keyword "INTERFACE")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
CGAL_setup_CGAL_ImageIO_dependencies(CGAL_ImageIO ${keyword})
|
cgal_setup_cgal_imageio_dependencies(CGAL_ImageIO ${keyword})
|
||||||
|
|
||||||
if(COMMAND add_config_flag)
|
if(COMMAND add_config_flag)
|
||||||
set( CGAL_HAS_IMAGEIO TRUE )
|
set(CGAL_HAS_IMAGEIO TRUE)
|
||||||
add_config_flag( CGAL_HAS_IMAGEIO )
|
add_config_flag(CGAL_HAS_IMAGEIO)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(ZLIB_FOUND)
|
if(ZLIB_FOUND)
|
||||||
|
|
|
||||||
|
|
@ -1,29 +1,22 @@
|
||||||
# Created by the script cgal_create_cmake_script
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
project( CGAL_ImageIO_Tests )
|
project(CGAL_ImageIO_Tests)
|
||||||
|
|
||||||
|
|
||||||
if(POLICY CMP0074)
|
if(POLICY CMP0074)
|
||||||
cmake_policy(SET CMP0074 NEW)
|
cmake_policy(SET CMP0074 NEW)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(CGAL QUIET COMPONENTS ImageIO )
|
find_package(CGAL REQUIRED COMPONENTS ImageIO)
|
||||||
|
|
||||||
if ( CGAL_FOUND )
|
include(${CGAL_USE_FILE})
|
||||||
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()
|
|
||||||
|
|
||||||
|
if(WITH_CGAL_ImageIO)
|
||||||
|
create_single_source_cgal_program("test_trilinear_interpolation.cpp")
|
||||||
else()
|
else()
|
||||||
|
message(
|
||||||
message(STATUS "NOTICE: This program requires the CGAL library, and will not be compiled.")
|
STATUS
|
||||||
|
"NOTICE: Some tests require the CGAL_ImageIO library, and will not be compiled."
|
||||||
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,162 +6,172 @@ if(NOT POLICY CMP0070 AND POLICY CMP0053)
|
||||||
cmake_policy(SET CMP0053 OLD)
|
cmake_policy(SET CMP0053 OLD)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
macro( remove_leading_zero var )
|
macro(remove_leading_zero var)
|
||||||
string(SUBSTRING "${${var}}" 0 1 ONECHAR)
|
string(SUBSTRING "${${var}}" 0 1 ONECHAR)
|
||||||
string(COMPARE EQUAL "${ONECHAR}" "0" ISZERO)
|
string(COMPARE EQUAL "${ONECHAR}" "0" ISZERO)
|
||||||
if (${ISZERO})
|
if(${ISZERO})
|
||||||
string(SUBSTRING "${${var}}" 1 1 ONECHAR)
|
string(SUBSTRING "${${var}}" 1 1 ONECHAR)
|
||||||
set(${var} ${ONECHAR})
|
set(${var} ${ONECHAR})
|
||||||
endif()
|
endif()
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#path where to build libraries
|
#path where to build libraries
|
||||||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}")
|
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)
|
||||||
find_package(Eigen3 3.1.0) #(requires 3.1.0 or greater)
|
if(NOT TARGET CGAL::Eigen_support)
|
||||||
include(CGAL_Eigen_support)
|
message(
|
||||||
if (NOT TARGET CGAL::Eigen_support)
|
STATUS
|
||||||
message(STATUS "NOTICE: This project requires the Eigen library, and will not be compiled.")
|
"NOTICE: This project requires the Eigen library, and will not be compiled."
|
||||||
return()
|
)
|
||||||
endif()
|
return()
|
||||||
|
endif()
|
||||||
find_package(IPE 6)
|
|
||||||
|
find_package(IPE 6)
|
||||||
if ( IPE_FOUND )
|
|
||||||
include_directories(BEFORE ${IPE_INCLUDE_DIR})
|
if(IPE_FOUND)
|
||||||
|
include_directories(BEFORE ${IPE_INCLUDE_DIR})
|
||||||
if (${IPE_VERSION} EQUAL "7")
|
|
||||||
set(WITH_IPE_7 ON)
|
if(${IPE_VERSION} EQUAL "7")
|
||||||
elseif(${IPE_VERSION} EQUAL "6")
|
set(WITH_IPE_7 ON)
|
||||||
set(WITH_IPE_7 OFF)
|
elseif(${IPE_VERSION} EQUAL "6")
|
||||||
else()
|
set(WITH_IPE_7 OFF)
|
||||||
message("-- Error: ${IPE_VERSION} is not a supported version of IPE (only 6 and 7 are).")
|
else()
|
||||||
set(IPE_FOUND FALSE)
|
message(
|
||||||
endif()
|
"-- Error: ${IPE_VERSION} is not a supported version of IPE (only 6 and 7 are)."
|
||||||
# starting ipe 7.2.1, a compiler with c++11 must be used to compile ipelets
|
)
|
||||||
if (${IPE_VERSION} EQUAL "7" AND
|
set(IPE_FOUND FALSE)
|
||||||
${IPE_MINOR_VERSION_1} GREATER "1" AND
|
endif()
|
||||||
${IPE_MINOR_VERSION_2} GREATER "0")
|
# starting ipe 7.2.1, a compiler with c++11 must be used to compile ipelets
|
||||||
message(STATUS "Starting from Ipe 7.2.1 a compiler with c++11 support must be used")
|
if(${IPE_VERSION} EQUAL "7"
|
||||||
|
AND ${IPE_MINOR_VERSION_1} GREATER "1"
|
||||||
list(FIND CMAKE_CXX_COMPILE_FEATURES cxx_generalized_initializers has_cpp11)
|
AND ${IPE_MINOR_VERSION_2} GREATER "0")
|
||||||
if(has_cpp11 LESS 0)
|
message(
|
||||||
message(STATUS "NOTICE: This demo requires a C++11 compiler and will not be compiled.")
|
STATUS
|
||||||
return()
|
"Starting from Ipe 7.2.1 a compiler with c++11 support must be used")
|
||||||
endif()
|
|
||||||
|
list(FIND CMAKE_CXX_COMPILE_FEATURES cxx_generalized_initializers has_cpp11)
|
||||||
# Use C++11 for this directory and its sub-directories.
|
if(has_cpp11 LESS 0)
|
||||||
set(CMAKE_CXX_STANDARD 11)
|
message(
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
|
STATUS
|
||||||
|
"NOTICE: This demo requires a C++11 compiler and will not be compiled."
|
||||||
endif()
|
)
|
||||||
endif()
|
return()
|
||||||
|
endif()
|
||||||
if ( IPE_FOUND AND IPE_VERSION)
|
|
||||||
if (WITH_IPE_7)
|
# Use C++11 for this directory and its sub-directories.
|
||||||
add_definitions(-DCGAL_USE_IPE_7)
|
set(CMAKE_CXX_STANDARD 11)
|
||||||
endif()
|
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
|
||||||
|
|
||||||
message("-- Using IPE version ${IPE_VERSION} compatibility.")
|
endif()
|
||||||
|
endif()
|
||||||
#setting installation directory
|
|
||||||
get_filename_component(IPE_LIBRARY_DIR ${IPE_LIBRARIES} PATH)
|
if(IPE_FOUND AND IPE_VERSION)
|
||||||
if (IPE_FOUND AND NOT IPELET_INSTALL_DIR)
|
if(WITH_IPE_7)
|
||||||
if (WITH_IPE_7)
|
add_definitions(-DCGAL_USE_IPE_7)
|
||||||
remove_leading_zero(IPE_MINOR_VERSION_1)
|
endif()
|
||||||
remove_leading_zero(IPE_MINOR_VERSION_2)
|
|
||||||
set(INSTALL_PATHS "${IPE_LIBRARY_DIR}/ipe/7.${IPE_MINOR_VERSION_1}.${IPE_MINOR_VERSION_2}/ipelets/")
|
message("-- Using IPE version ${IPE_VERSION} compatibility.")
|
||||||
find_path(IPELET_INSTALL_DIR
|
|
||||||
NAMES libgoodies.lua goodies.lua
|
#setting installation directory
|
||||||
PATHS ${INSTALL_PATHS}
|
get_filename_component(IPE_LIBRARY_DIR ${IPE_LIBRARIES} PATH)
|
||||||
DOC "The folder where ipelets will be installed"
|
if(IPE_FOUND AND NOT IPELET_INSTALL_DIR)
|
||||||
ENV IPELETPATH
|
if(WITH_IPE_7)
|
||||||
)
|
remove_leading_zero(IPE_MINOR_VERSION_1)
|
||||||
else()
|
remove_leading_zero(IPE_MINOR_VERSION_2)
|
||||||
foreach (VER RANGE 28 40)
|
set(INSTALL_PATHS
|
||||||
string(REPLACE XX ${VER} PATHC "${IPE_LIBRARY_DIR}/ipe/6.0preXX/ipelets/" )
|
"${IPE_LIBRARY_DIR}/ipe/7.${IPE_MINOR_VERSION_1}.${IPE_MINOR_VERSION_2}/ipelets/"
|
||||||
set(INSTALL_PATHS ${INSTALL_PATHS} ${PATHC})
|
)
|
||||||
endforeach()
|
find_path(
|
||||||
set(INSTALL_PATHS ${INSTALL_PATHS} ${PATHC})
|
IPELET_INSTALL_DIR
|
||||||
set(INSTALL_PATHS ${INSTALL_PATHS} /usr/lib64/ipe/6.0/ipelets)
|
NAMES libgoodies.lua goodies.lua
|
||||||
set(INSTALL_PATHS ${INSTALL_PATHS} /usr/lib/ipe/6.0/ipelets)
|
PATHS ${INSTALL_PATHS}
|
||||||
|
DOC "The folder where ipelets will be installed" ENV IPELETPATH)
|
||||||
|
else()
|
||||||
find_library(IPELET_INSTALL_DIR_FILES
|
foreach(VER RANGE 28 40)
|
||||||
NAMES align
|
string(REPLACE XX ${VER} PATHC
|
||||||
PATHS ${INSTALL_PATHS}
|
"${IPE_LIBRARY_DIR}/ipe/6.0preXX/ipelets/")
|
||||||
ENV IPELETPATH
|
set(INSTALL_PATHS ${INSTALL_PATHS} ${PATHC})
|
||||||
)
|
endforeach()
|
||||||
if (IPELET_INSTALL_DIR_FILES)
|
set(INSTALL_PATHS ${INSTALL_PATHS} ${PATHC})
|
||||||
get_filename_component(IPELET_INSTALL_DIR ${IPELET_INSTALL_DIR_FILES} PATH)
|
set(INSTALL_PATHS ${INSTALL_PATHS} /usr/lib64/ipe/6.0/ipelets)
|
||||||
endif()
|
set(INSTALL_PATHS ${INSTALL_PATHS} /usr/lib/ipe/6.0/ipelets)
|
||||||
endif()
|
|
||||||
endif()
|
find_library(
|
||||||
|
IPELET_INSTALL_DIR_FILES
|
||||||
set(CGAL_IPELETS ${CGAL_IPELETS})
|
NAMES align
|
||||||
set(CGAL_IPELETS ${CGAL_IPELETS} alpha_shapes)
|
PATHS ${INSTALL_PATHS} ENV IPELETPATH)
|
||||||
set(CGAL_IPELETS ${CGAL_IPELETS} arrangement)
|
if(IPELET_INSTALL_DIR_FILES)
|
||||||
set(CGAL_IPELETS ${CGAL_IPELETS} bbox_restriction)
|
get_filename_component(IPELET_INSTALL_DIR ${IPELET_INSTALL_DIR_FILES}
|
||||||
set(CGAL_IPELETS ${CGAL_IPELETS} diagrams)
|
PATH)
|
||||||
set(CGAL_IPELETS ${CGAL_IPELETS} hilbert_sort)
|
endif()
|
||||||
set(CGAL_IPELETS ${CGAL_IPELETS} hull)
|
endif()
|
||||||
set(CGAL_IPELETS ${CGAL_IPELETS} generator)
|
endif()
|
||||||
set(CGAL_IPELETS ${CGAL_IPELETS} mesh_2)
|
|
||||||
set(CGAL_IPELETS ${CGAL_IPELETS} minkowski)
|
set(CGAL_IPELETS ${CGAL_IPELETS})
|
||||||
set(CGAL_IPELETS ${CGAL_IPELETS} mst)
|
set(CGAL_IPELETS ${CGAL_IPELETS} alpha_shapes)
|
||||||
set(CGAL_IPELETS ${CGAL_IPELETS} multi_delaunay)
|
set(CGAL_IPELETS ${CGAL_IPELETS} arrangement)
|
||||||
set(CGAL_IPELETS ${CGAL_IPELETS} multi_regular)
|
set(CGAL_IPELETS ${CGAL_IPELETS} bbox_restriction)
|
||||||
set(CGAL_IPELETS ${CGAL_IPELETS} partition)
|
set(CGAL_IPELETS ${CGAL_IPELETS} diagrams)
|
||||||
set(CGAL_IPELETS ${CGAL_IPELETS} pca)
|
set(CGAL_IPELETS ${CGAL_IPELETS} hilbert_sort)
|
||||||
set(CGAL_IPELETS ${CGAL_IPELETS} skeleton)
|
set(CGAL_IPELETS ${CGAL_IPELETS} hull)
|
||||||
set(CGAL_IPELETS ${CGAL_IPELETS} svdlinf)
|
set(CGAL_IPELETS ${CGAL_IPELETS} generator)
|
||||||
set(CGAL_IPELETS ${CGAL_IPELETS} triangulation)
|
set(CGAL_IPELETS ${CGAL_IPELETS} mesh_2)
|
||||||
set(CGAL_IPELETS ${CGAL_IPELETS} circle_pencils)
|
set(CGAL_IPELETS ${CGAL_IPELETS} minkowski)
|
||||||
set(CGAL_IPELETS ${CGAL_IPELETS} hyperbolic)
|
set(CGAL_IPELETS ${CGAL_IPELETS} mst)
|
||||||
set(CGAL_IPELETS ${CGAL_IPELETS} distance)
|
set(CGAL_IPELETS ${CGAL_IPELETS} multi_delaunay)
|
||||||
if(CGAL_Core_FOUND)
|
set(CGAL_IPELETS ${CGAL_IPELETS} multi_regular)
|
||||||
set(CGAL_IPELETS ${CGAL_IPELETS} cone_spanners)
|
set(CGAL_IPELETS ${CGAL_IPELETS} partition)
|
||||||
endif()
|
set(CGAL_IPELETS ${CGAL_IPELETS} pca)
|
||||||
|
set(CGAL_IPELETS ${CGAL_IPELETS} skeleton)
|
||||||
|
set(CGAL_IPELETS ${CGAL_IPELETS} svdlinf)
|
||||||
if ( IPELET_INSTALL_DIR )
|
set(CGAL_IPELETS ${CGAL_IPELETS} triangulation)
|
||||||
message(STATUS "Set Ipelets install dir: ${IPELET_INSTALL_DIR}")
|
set(CGAL_IPELETS ${CGAL_IPELETS} circle_pencils)
|
||||||
endif()
|
set(CGAL_IPELETS ${CGAL_IPELETS} hyperbolic)
|
||||||
|
set(CGAL_IPELETS ${CGAL_IPELETS} distance)
|
||||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
if(CGAL_Core_FOUND)
|
||||||
|
set(CGAL_IPELETS ${CGAL_IPELETS} cone_spanners)
|
||||||
foreach(IPELET ${CGAL_IPELETS})
|
endif()
|
||||||
add_library(CGAL_${IPELET} MODULE ${IPELET}.cpp)
|
|
||||||
add_to_cached_list(CGAL_EXECUTABLE_TARGETS CGAL_${IPELET})
|
if(IPELET_INSTALL_DIR)
|
||||||
target_link_libraries(CGAL_${IPELET} PRIVATE CGAL::CGAL CGAL::Eigen_support ${IPE_LIBRARIES})
|
message(STATUS "Set Ipelets install dir: ${IPELET_INSTALL_DIR}")
|
||||||
if ( IPELET_INSTALL_DIR )
|
endif()
|
||||||
install(TARGETS CGAL_${IPELET} DESTINATION ${IPELET_INSTALL_DIR})
|
|
||||||
if (WITH_IPE_7)
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
install(FILES ./lua/libCGAL_${IPELET}.lua DESTINATION ${IPELET_INSTALL_DIR}) #only for ipe 7
|
|
||||||
endif()
|
foreach(IPELET ${CGAL_IPELETS})
|
||||||
endif ()
|
add_library(CGAL_${IPELET} MODULE ${IPELET}.cpp)
|
||||||
cgal_add_compilation_test(CGAL_${IPELET})
|
add_to_cached_list(CGAL_EXECUTABLE_TARGETS CGAL_${IPELET})
|
||||||
endforeach(IPELET)
|
target_link_libraries(CGAL_${IPELET} PRIVATE CGAL::CGAL CGAL::Eigen_support
|
||||||
if(CGAL_Core_FOUND)
|
${IPE_LIBRARIES})
|
||||||
target_link_libraries(CGAL_cone_spanners PRIVATE CGAL::CGAL_Core CGAL::Eigen_support)
|
if(IPELET_INSTALL_DIR)
|
||||||
endif()
|
install(TARGETS CGAL_${IPELET} DESTINATION ${IPELET_INSTALL_DIR})
|
||||||
#example in doc not installed
|
if(WITH_IPE_7)
|
||||||
add_library(simple_triangulation MODULE simple_triangulation.cpp)
|
install(FILES ./lua/libCGAL_${IPELET}.lua
|
||||||
add_to_cached_list(CGAL_EXECUTABLE_TARGETS simple_triangulation)
|
DESTINATION ${IPELET_INSTALL_DIR}) #only for ipe 7
|
||||||
target_link_libraries(simple_triangulation CGAL::Eigen_support ${IPE_LIBRARIES})
|
endif()
|
||||||
cgal_add_compilation_test(simple_triangulation)
|
endif()
|
||||||
|
cgal_add_compilation_test(CGAL_${IPELET})
|
||||||
else()
|
endforeach(IPELET)
|
||||||
message(STATUS "NOTICE: This program requires the Ipe include files and library, and will not be compiled.")
|
if(CGAL_Core_FOUND)
|
||||||
endif()
|
target_link_libraries(CGAL_cone_spanners PRIVATE CGAL::CGAL_Core
|
||||||
else()
|
CGAL::Eigen_support)
|
||||||
message(STATUS "NOTICE: This program requires the CGAL library, and will not be compiled.")
|
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()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,16 @@
|
||||||
# Created by the script cgal_create_cmake_script
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
project( CGAL_ipelets_Examples )
|
project(CGAL_ipelets_Examples)
|
||||||
|
|
||||||
|
find_package(CGAL REQUIRED)
|
||||||
|
|
||||||
find_package(CGAL QUIET)
|
# create a target per cppfile
|
||||||
|
file(
|
||||||
if ( CGAL_FOUND )
|
GLOB cppfiles
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
# create a target per cppfile
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
foreach(cppfile ${cppfiles})
|
||||||
foreach(cppfile ${cppfiles})
|
create_single_source_cgal_program("${cppfile}")
|
||||||
create_single_source_cgal_program( "${cppfile}" )
|
endforeach()
|
||||||
endforeach()
|
|
||||||
|
|
||||||
else()
|
|
||||||
|
|
||||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,23 +3,27 @@
|
||||||
# Minimal version of CMake:
|
# Minimal version of CMake:
|
||||||
cmake_minimum_required(VERSION 3.1)
|
cmake_minimum_required(VERSION 3.1)
|
||||||
|
|
||||||
message( "== CMake setup ==" )
|
message("== CMake setup ==")
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
project(CGAL CXX C)
|
project(CGAL CXX C)
|
||||||
export(PACKAGE CGAL)
|
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}/CGALConfigVersion.cmake)
|
||||||
include(${CMAKE_SOURCE_DIR}/Installation/cmake/modules/CGAL_SCM.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)
|
function(CGAL_error_if_detect_in_source_build)
|
||||||
# If in a Git repository, forbid in-source builds
|
# If in a Git repository, forbid in-source builds
|
||||||
get_filename_component(srcdir "${CMAKE_SOURCE_DIR}" REALPATH)
|
get_filename_component(srcdir "${CMAKE_SOURCE_DIR}" REALPATH)
|
||||||
get_filename_component(bindir "${CMAKE_BINARY_DIR}" REALPATH)
|
get_filename_component(bindir "${CMAKE_BINARY_DIR}" REALPATH)
|
||||||
if("${srcdir}" STREQUAL "${bindir}")
|
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
|
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
|
repository. See this StackOverlow question and answers for a way to create
|
||||||
|
|
@ -30,19 +34,23 @@ a separate build directory:
|
||||||
endif()
|
endif()
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
if ( "${CGAL_SCM_NAME}" STREQUAL "git" )
|
if("${CGAL_SCM_NAME}" STREQUAL "git")
|
||||||
CGAL_error_if_detect_in_source_build()
|
cgal_error_if_detect_in_source_build()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# add option for duplicate file detection
|
# 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
|
# Enable testing with BUILD_TESTING
|
||||||
option(BUILD_TESTING "Build the testing tree." OFF)
|
option(BUILD_TESTING "Build the testing tree." OFF)
|
||||||
if(BUILD_TESTING AND NOT POLICY CMP0064)
|
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.")
|
The variable BUILD_TESTING must be set of OFF.")
|
||||||
endif()
|
endif()
|
||||||
if(BUILD_TESTING)
|
if(BUILD_TESTING)
|
||||||
|
|
@ -50,16 +58,15 @@ if(BUILD_TESTING)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# and finally start actual build
|
# and finally start actual build
|
||||||
add_subdirectory( Installation )
|
add_subdirectory(Installation)
|
||||||
add_subdirectory( Documentation/doc)
|
add_subdirectory(Documentation/doc)
|
||||||
|
|
||||||
if(NOT TARGET uninstall)
|
if(NOT TARGET uninstall)
|
||||||
configure_file(
|
configure_file(
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in
|
${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake
|
${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake IMMEDIATE @ONLY)
|
||||||
IMMEDIATE @ONLY)
|
|
||||||
|
|
||||||
add_custom_target(uninstall
|
add_custom_target(
|
||||||
COMMAND ${CMAKE_COMMAND} -P
|
uninstall COMMAND ${CMAKE_COMMAND} -P
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
|
${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,16 @@
|
||||||
# Created by the script cgal_create_cmake_script
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
# create a target per cppfile
|
||||||
|
file(
|
||||||
if ( CGAL_FOUND )
|
GLOB cppfiles
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
# create a target per cppfile
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
foreach(cppfile ${cppfiles})
|
||||||
foreach(cppfile ${cppfiles})
|
create_single_source_cgal_program("${cppfile}")
|
||||||
create_single_source_cgal_program( "${cppfile}" )
|
endforeach()
|
||||||
endforeach()
|
|
||||||
|
|
||||||
else()
|
|
||||||
|
|
||||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,41 +1,31 @@
|
||||||
# Created by the script cgal_create_cmake_script
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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
|
# 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
|
# The following `include_directories` is used in the layout of the
|
||||||
# internal releases tarballs
|
# 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_Circular_kernel.cpp")
|
||||||
create_single_source_cgal_program( "test_Lazy_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_Exact_circular_kernel.cpp")
|
||||||
create_single_source_cgal_program( "test_Filtered_bbox_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_Line_arc.cpp")
|
||||||
create_single_source_cgal_program( "test_Circular_kernel_basic.cpp" )
|
create_single_source_cgal_program("test_Circular_kernel_basic.cpp")
|
||||||
create_single_source_cgal_program( "test_Exact_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()
|
|
||||||
|
|
||||||
if(BUILD_TESTING)
|
if(BUILD_TESTING)
|
||||||
set_tests_properties(
|
set_tests_properties(
|
||||||
execution___of__test_Circular_kernel_basic
|
execution___of__test_Circular_kernel_basic
|
||||||
execution___of__test_Exact_circular_kernel_basic
|
execution___of__test_Exact_circular_kernel_basic
|
||||||
PROPERTIES RESOURCE_LOCK Circular_kernel_basic)
|
PROPERTIES RESOURCE_LOCK Circular_kernel_basic)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
if(NOT POLICY CMP0070 AND POLICY CMP0053)
|
||||||
# Only set CMP0053 to OLD with CMake<3.10, otherwise there is a warning.
|
# 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)
|
cmake_policy(SET CMP0071 NEW)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(CGAL COMPONENTS Qt5)
|
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt5)
|
||||||
|
|
||||||
find_package(Qt5 QUIET COMPONENTS Xml Script OpenGL)
|
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
|
target_link_libraries(Circular_kernel_3 PRIVATE CGAL::CGAL CGAL::CGAL_Qt5
|
||||||
CGAL::CGAL CGAL::CGAL_Qt5
|
Qt5::OpenGL Qt5::Gui)
|
||||||
Qt5::OpenGL Qt5::Gui)
|
|
||||||
|
|
||||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
cgal_add_compilation_test(Circular_kernel_3)
|
cgal_add_compilation_test(Circular_kernel_3)
|
||||||
|
|
@ -32,6 +33,8 @@ if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||||
|
|
||||||
else()
|
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()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,16 @@
|
||||||
# Created by the script cgal_create_cmake_script
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
# create a target per cppfile
|
||||||
|
file(
|
||||||
if ( CGAL_FOUND )
|
GLOB cppfiles
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
# create a target per cppfile
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
foreach(cppfile ${cppfiles})
|
||||||
foreach(cppfile ${cppfiles})
|
create_single_source_cgal_program("${cppfile}")
|
||||||
create_single_source_cgal_program( "${cppfile}" )
|
endforeach()
|
||||||
endforeach()
|
|
||||||
|
|
||||||
else()
|
|
||||||
|
|
||||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,35 +1,25 @@
|
||||||
# Created by the script cgal_create_cmake_script
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
project( Circular_kernel_3_Tests )
|
project(Circular_kernel_3_Tests)
|
||||||
|
|
||||||
find_package(CGAL QUIET COMPONENTS Core )
|
find_package(CGAL REQUIRED COMPONENTS Core)
|
||||||
|
|
||||||
if ( CGAL_FOUND )
|
|
||||||
|
|
||||||
include(${CGAL_USE_FILE})
|
include(${CGAL_USE_FILE})
|
||||||
|
|
||||||
include_directories (BEFORE include)
|
include_directories(BEFORE include)
|
||||||
|
|
||||||
# The following `include_directories` is used in the git layout
|
# 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
|
# The following `include_directories` is used in the layout of the
|
||||||
# internal releases tarballs
|
# internal releases tarballs
|
||||||
include_directories (BEFORE ../Kernel_23/include)
|
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()
|
|
||||||
|
|
||||||
|
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
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
project( Circulator_Examples )
|
project(Circulator_Examples)
|
||||||
|
|
||||||
|
find_package(CGAL REQUIRED)
|
||||||
|
|
||||||
find_package(CGAL QUIET)
|
# create a target per cppfile
|
||||||
|
file(
|
||||||
if ( CGAL_FOUND )
|
GLOB cppfiles
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
# create a target per cppfile
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
foreach(cppfile ${cppfiles})
|
||||||
foreach(cppfile ${cppfiles})
|
create_single_source_cgal_program("${cppfile}")
|
||||||
create_single_source_cgal_program( "${cppfile}" )
|
endforeach()
|
||||||
endforeach()
|
|
||||||
|
|
||||||
else()
|
|
||||||
|
|
||||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,16 @@
|
||||||
# Created by the script cgal_create_cmake_script
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
project( Circulator_Tests )
|
project(Circulator_Tests)
|
||||||
|
|
||||||
|
find_package(CGAL REQUIRED)
|
||||||
|
|
||||||
find_package(CGAL QUIET)
|
# create a target per cppfile
|
||||||
|
file(
|
||||||
if ( CGAL_FOUND )
|
GLOB cppfiles
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
# create a target per cppfile
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
foreach(cppfile ${cppfiles})
|
||||||
foreach(cppfile ${cppfiles})
|
create_single_source_cgal_program("${cppfile}")
|
||||||
create_single_source_cgal_program( "${cppfile}" )
|
endforeach()
|
||||||
endforeach()
|
|
||||||
|
|
||||||
else()
|
|
||||||
|
|
||||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,99 +2,109 @@
|
||||||
# This is the CMake script for compiling a set of CGAL applications.
|
# This is the CMake script for compiling a set of CGAL applications.
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
project( Classification_Examples )
|
project(Classification_Examples)
|
||||||
|
|
||||||
|
|
||||||
# CGAL and its components
|
# CGAL and its components
|
||||||
find_package( CGAL QUIET COMPONENTS )
|
find_package(CGAL REQUIRED)
|
||||||
|
|
||||||
if ( NOT CGAL_FOUND )
|
|
||||||
message(STATUS "This project requires the CGAL library, and will not be compiled.")
|
|
||||||
return()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# Boost and its components
|
# 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()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(Classification_dependencies_met TRUE)
|
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_serialization_support)
|
||||||
include(CGAL_Boost_iostreams_support)
|
include(CGAL_Boost_iostreams_support)
|
||||||
|
|
||||||
if (NOT TARGET CGAL::Boost_serialization_support)
|
if(NOT TARGET CGAL::Boost_serialization_support)
|
||||||
message(STATUS "NOTICE: This project requires Boost Serialization, and will not be compiled.")
|
message(
|
||||||
|
STATUS
|
||||||
|
"NOTICE: This project requires Boost Serialization, and will not be compiled."
|
||||||
|
)
|
||||||
set(Classification_dependencies_met FALSE)
|
set(Classification_dependencies_met FALSE)
|
||||||
endif()
|
endif()
|
||||||
if (NOT TARGET CGAL::Boost_iostreams_support)
|
if(NOT TARGET CGAL::Boost_iostreams_support)
|
||||||
message(STATUS "NOTICE: This project requires Boost IO Streams, and will not be compiled.")
|
message(
|
||||||
|
STATUS
|
||||||
|
"NOTICE: This project requires Boost IO Streams, and will not be compiled."
|
||||||
|
)
|
||||||
set(Classification_dependencies_met FALSE)
|
set(Classification_dependencies_met FALSE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(OpenCV QUIET COMPONENTS core ml) # Need core + machine learning
|
find_package(OpenCV QUIET COMPONENTS core ml) # Need core + machine learning
|
||||||
include(CGAL_OpenCV_support)
|
include(CGAL_OpenCV_support)
|
||||||
if (NOT TARGET 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.")
|
message(
|
||||||
|
STATUS
|
||||||
|
"NOTICE: OpenCV was not found. OpenCV random forest predicate for classification won't be available."
|
||||||
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(TensorFlow QUIET)
|
find_package(TensorFlow QUIET)
|
||||||
include(CGAL_TensorFlow_support)
|
include(CGAL_TensorFlow_support)
|
||||||
if (NOT TARGET 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.")
|
message(
|
||||||
|
STATUS
|
||||||
|
"NOTICE: TensorFlow was not found. TensorFlow neural network predicate for classification won't be available."
|
||||||
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(Eigen3 3.1.0 REQUIRED) #(3.1.0 or greater)
|
find_package(Eigen3 3.1.0 REQUIRED) #(3.1.0 or greater)
|
||||||
include(CGAL_Eigen_support)
|
include(CGAL_Eigen_support)
|
||||||
if (NOT TARGET CGAL::Eigen_support)
|
if(NOT TARGET CGAL::Eigen_support)
|
||||||
message(STATUS "This project requires the Eigen library, and will not be compiled.")
|
message(
|
||||||
|
STATUS "This project requires the Eigen library, and will not be compiled.")
|
||||||
set(Classification_dependencies_met FALSE)
|
set(Classification_dependencies_met FALSE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(TBB QUIET)
|
find_package(TBB QUIET)
|
||||||
include(CGAL_TBB_support)
|
include(CGAL_TBB_support)
|
||||||
|
|
||||||
if (NOT Classification_dependencies_met)
|
if(NOT Classification_dependencies_met)
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
create_single_source_cgal_program( "example_classification.cpp" )
|
create_single_source_cgal_program("example_classification.cpp")
|
||||||
create_single_source_cgal_program( "example_ethz_random_forest.cpp" )
|
create_single_source_cgal_program("example_ethz_random_forest.cpp")
|
||||||
create_single_source_cgal_program( "example_feature.cpp" )
|
create_single_source_cgal_program("example_feature.cpp")
|
||||||
create_single_source_cgal_program( "example_generation_and_training.cpp" )
|
create_single_source_cgal_program("example_generation_and_training.cpp")
|
||||||
create_single_source_cgal_program( "example_mesh_classification.cpp" )
|
create_single_source_cgal_program("example_mesh_classification.cpp")
|
||||||
create_single_source_cgal_program( "example_cluster_classification.cpp" )
|
create_single_source_cgal_program("example_cluster_classification.cpp")
|
||||||
create_single_source_cgal_program( "gis_tutorial_example.cpp" )
|
create_single_source_cgal_program("gis_tutorial_example.cpp")
|
||||||
|
|
||||||
if (TARGET CGAL::OpenCV_support)
|
if(TARGET CGAL::OpenCV_support)
|
||||||
create_single_source_cgal_program( "example_opencv_random_forest.cpp" )
|
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()
|
endif()
|
||||||
|
|
||||||
if (TARGET CGAL::TensorFlow_support)
|
if(TARGET CGAL::TensorFlow_support)
|
||||||
create_single_source_cgal_program( "example_tensorflow_neural_network.cpp" )
|
create_single_source_cgal_program("example_tensorflow_neural_network.cpp")
|
||||||
target_link_libraries(example_opencv_random_forest PUBLIC CGAL::TensorFlow_support)
|
target_link_libraries(example_opencv_random_forest
|
||||||
|
PUBLIC CGAL::TensorFlow_support)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
foreach(target
|
foreach(
|
||||||
example_classification
|
target
|
||||||
example_ethz_random_forest
|
example_classification
|
||||||
example_feature
|
example_ethz_random_forest
|
||||||
example_generation_and_training
|
example_feature
|
||||||
example_mesh_classification
|
example_generation_and_training
|
||||||
example_cluster_classification
|
example_mesh_classification
|
||||||
example_opencv_random_forest
|
example_cluster_classification
|
||||||
example_tensorflow_neural_network
|
example_opencv_random_forest
|
||||||
gis_tutorial_example)
|
example_tensorflow_neural_network
|
||||||
|
gis_tutorial_example)
|
||||||
if(TARGET ${target})
|
if(TARGET ${target})
|
||||||
target_link_libraries(${target} PUBLIC
|
target_link_libraries(
|
||||||
CGAL::Eigen_support
|
${target} PUBLIC CGAL::Eigen_support CGAL::Boost_iostreams_support
|
||||||
CGAL::Boost_iostreams_support
|
CGAL::Boost_serialization_support)
|
||||||
CGAL::Boost_serialization_support)
|
|
||||||
if(TARGET CGAL::TBB_support)
|
if(TARGET CGAL::TBB_support)
|
||||||
target_link_libraries(${target} PUBLIC CGAL::TBB_support)
|
target_link_libraries(${target} PUBLIC CGAL::TBB_support)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -2,62 +2,63 @@
|
||||||
# This is the CMake script for compiling a set of CGAL applications.
|
# This is the CMake script for compiling a set of CGAL applications.
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
project( Classification_Tests )
|
project(Classification_Tests)
|
||||||
|
|
||||||
|
|
||||||
# CGAL and its components
|
# CGAL and its components
|
||||||
find_package( CGAL QUIET COMPONENTS )
|
find_package(CGAL REQUIRED)
|
||||||
|
|
||||||
if ( NOT CGAL_FOUND )
|
|
||||||
message(STATUS "This project requires the CGAL library, and will not be compiled.")
|
|
||||||
return()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# Boost and its components
|
# 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()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(Classification_dependencies_met TRUE)
|
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_serialization_support)
|
||||||
include(CGAL_Boost_iostreams_support)
|
include(CGAL_Boost_iostreams_support)
|
||||||
|
|
||||||
if (NOT TARGET CGAL::Boost_serialization_support)
|
if(NOT TARGET CGAL::Boost_serialization_support)
|
||||||
message(STATUS "NOTICE: This project requires Boost Serialization, and will not be compiled.")
|
message(
|
||||||
|
STATUS
|
||||||
|
"NOTICE: This project requires Boost Serialization, and will not be compiled."
|
||||||
|
)
|
||||||
set(Classification_dependencies_met FALSE)
|
set(Classification_dependencies_met FALSE)
|
||||||
endif()
|
endif()
|
||||||
if (NOT TARGET CGAL::Boost_iostreams_support)
|
if(NOT TARGET CGAL::Boost_iostreams_support)
|
||||||
message(STATUS "NOTICE: This project requires Boost IO Streams, and will not be compiled.")
|
message(
|
||||||
|
STATUS
|
||||||
|
"NOTICE: This project requires Boost IO Streams, and will not be compiled."
|
||||||
|
)
|
||||||
set(Classification_dependencies_met FALSE)
|
set(Classification_dependencies_met FALSE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(Eigen3 3.1.0 REQUIRED) #(3.1.0 or greater)
|
find_package(Eigen3 3.1.0 REQUIRED) #(3.1.0 or greater)
|
||||||
include(CGAL_Eigen_support)
|
include(CGAL_Eigen_support)
|
||||||
if (NOT TARGET CGAL::Eigen_support)
|
if(NOT TARGET CGAL::Eigen_support)
|
||||||
message(STATUS "This project requires the Eigen library, and will not be compiled.")
|
message(
|
||||||
|
STATUS "This project requires the Eigen library, and will not be compiled.")
|
||||||
set(Classification_dependencies_met FALSE)
|
set(Classification_dependencies_met FALSE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(TBB QUIET)
|
find_package(TBB QUIET)
|
||||||
include(CGAL_TBB_support)
|
include(CGAL_TBB_support)
|
||||||
|
|
||||||
if (NOT Classification_dependencies_met)
|
if(NOT Classification_dependencies_met)
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
create_single_source_cgal_program( "test_classification_point_set.cpp" )
|
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_io.cpp")
|
||||||
|
|
||||||
foreach(target test_classification_point_set test_classification_io)
|
foreach(target test_classification_point_set test_classification_io)
|
||||||
target_link_libraries(${target} PUBLIC
|
target_link_libraries(
|
||||||
CGAL::Eigen_support
|
${target} PUBLIC CGAL::Eigen_support CGAL::Boost_iostreams_support
|
||||||
CGAL::Boost_iostreams_support
|
CGAL::Boost_serialization_support)
|
||||||
CGAL::Boost_serialization_support)
|
|
||||||
if(TARGET CGAL::TBB_support)
|
if(TARGET CGAL::TBB_support)
|
||||||
target_link_libraries(${target} PUBLIC CGAL::TBB_support)
|
target_link_libraries(${target} PUBLIC CGAL::TBB_support)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -1,23 +1,16 @@
|
||||||
# Created by the script cgal_create_cmake_script
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
project( Combinatorial_map_Examples )
|
project(Combinatorial_map_Examples)
|
||||||
|
|
||||||
|
find_package(CGAL REQUIRED)
|
||||||
|
|
||||||
find_package(CGAL QUIET)
|
# create a target per cppfile
|
||||||
|
file(
|
||||||
if ( CGAL_FOUND )
|
GLOB cppfiles
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
# create a target per cppfile
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
foreach(cppfile ${cppfiles})
|
||||||
foreach(cppfile ${cppfiles})
|
create_single_source_cgal_program("${cppfile}")
|
||||||
create_single_source_cgal_program( "${cppfile}" )
|
endforeach()
|
||||||
endforeach()
|
|
||||||
|
|
||||||
else()
|
|
||||||
|
|
||||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
|
||||||
|
|
@ -1,29 +1,21 @@
|
||||||
# Created by the script cgal_create_cmake_script
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
project( Combinatorial_map_Tests )
|
project(Combinatorial_map_Tests)
|
||||||
|
|
||||||
|
find_package(CGAL REQUIRED)
|
||||||
|
|
||||||
find_package(CGAL QUIET)
|
# create a target per cppfile
|
||||||
|
file(
|
||||||
if ( CGAL_FOUND )
|
GLOB cppfiles
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
# create a target per cppfile
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
foreach(cppfile ${cppfiles})
|
||||||
foreach(cppfile ${cppfiles})
|
create_single_source_cgal_program("${cppfile}")
|
||||||
create_single_source_cgal_program( "${cppfile}" )
|
endforeach()
|
||||||
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.")
|
|
||||||
|
|
||||||
|
find_package(OpenMesh QUIET)
|
||||||
|
if(TARGET OpenMesh::OpenMesh)
|
||||||
|
target_link_libraries(Combinatorial_map_copy_test PRIVATE OpenMesh::OpenMesh)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,28 +1,32 @@
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
find_package(CGAL REQUIRED QUIET OPTIONAL_COMPONENTS Core)
|
||||||
include(${CGAL_USE_FILE})
|
include(${CGAL_USE_FILE})
|
||||||
find_package(LEDA QUIET)
|
find_package(LEDA QUIET)
|
||||||
|
|
||||||
if ( CGAL_Core_FOUND OR LEDA_FOUND )
|
if(CGAL_Core_FOUND OR LEDA_FOUND)
|
||||||
if (MSVC)
|
if(MSVC)
|
||||||
# Turn off a boost related warning that appears with VC2015
|
# Turn off a boost related warning that appears with VC2015
|
||||||
# boost_1_65_1\boost\graph\named_function_params.hpp(240) :
|
# boost_1_65_1\boost\graph\named_function_params.hpp(240) :
|
||||||
# warning C4172: returning address of local variable or temporary
|
# 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()
|
endif()
|
||||||
|
|
||||||
# create a target per cppfile
|
# 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})
|
foreach(cppfile ${cppfiles})
|
||||||
create_single_source_cgal_program( "${cppfile}" )
|
create_single_source_cgal_program("${cppfile}")
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
else()
|
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()
|
endif()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,26 +1,29 @@
|
||||||
# Created by the script cgal_create_cmake_script
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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_Core_FOUND)
|
||||||
|
|
||||||
if ( CGAL_FOUND AND CGAL_Core_FOUND)
|
|
||||||
include(${CGAL_USE_FILE})
|
include(${CGAL_USE_FILE})
|
||||||
include_directories (BEFORE "include")
|
include_directories(BEFORE "include")
|
||||||
|
|
||||||
# create a target per cppfile
|
# 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})
|
foreach(cppfile ${cppfiles})
|
||||||
create_single_source_cgal_program( "${cppfile}" )
|
create_single_source_cgal_program("${cppfile}")
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
else()
|
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()
|
endif()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,16 @@
|
||||||
# Created by the script cgal_create_cmake_script
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
# create a target per cppfile
|
||||||
|
file(
|
||||||
if ( CGAL_FOUND )
|
GLOB cppfiles
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
# create a target per cppfile
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
foreach(cppfile ${cppfiles})
|
||||||
foreach(cppfile ${cppfiles})
|
create_single_source_cgal_program("${cppfile}")
|
||||||
create_single_source_cgal_program( "${cppfile}" )
|
endforeach()
|
||||||
endforeach()
|
|
||||||
|
|
||||||
else()
|
|
||||||
|
|
||||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,16 @@
|
||||||
# Created by the script cgal_create_cmake_script
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
# create a target per cppfile
|
||||||
|
file(
|
||||||
if ( CGAL_FOUND )
|
GLOB cppfiles
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
# create a target per cppfile
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
foreach(cppfile ${cppfiles})
|
||||||
foreach(cppfile ${cppfiles})
|
create_single_source_cgal_program("${cppfile}")
|
||||||
create_single_source_cgal_program( "${cppfile}" )
|
endforeach()
|
||||||
endforeach()
|
|
||||||
|
|
||||||
else()
|
|
||||||
|
|
||||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,26 +1,18 @@
|
||||||
# Created by the script cgal_create_cmake_script
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
include_directories(BEFORE "include")
|
||||||
|
|
||||||
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()
|
|
||||||
|
|
||||||
|
# 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
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
include_directories(BEFORE "include")
|
||||||
|
|
||||||
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()
|
|
||||||
|
|
||||||
|
# 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
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
if(NOT POLICY CMP0070 AND POLICY CMP0053)
|
||||||
# Only set CMP0053 to OLD with CMake<3.10, otherwise there is a warning.
|
# 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)
|
set_property(DIRECTORY PROPERTY CGAL_NO_TESTING TRUE)
|
||||||
|
|
||||||
find_package(CGAL QUIET)
|
find_package(CGAL REQUIRED)
|
||||||
|
|
||||||
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()
|
|
||||||
|
|
||||||
|
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.
|
# This is the CMake script for compiling a set of CGAL applications.
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
project( Convex_hull_3_Examples )
|
project(Convex_hull_3_Examples)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# CGAL and its components
|
# CGAL and its components
|
||||||
find_package( CGAL QUIET COMPONENTS )
|
find_package(CGAL REQUIRED)
|
||||||
|
|
||||||
if ( NOT CGAL_FOUND )
|
|
||||||
|
|
||||||
message(STATUS "This project requires the CGAL library, and will not be compiled.")
|
|
||||||
return()
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# Boost and its components
|
# 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()
|
return()
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package( OpenMesh QUIET )
|
find_package(OpenMesh QUIET)
|
||||||
|
|
||||||
if ( OpenMesh_FOUND )
|
if(OpenMesh_FOUND)
|
||||||
include( UseOpenMesh )
|
include(UseOpenMesh)
|
||||||
else()
|
else()
|
||||||
message(STATUS "Examples that use OpenMesh will not be compiled.")
|
message(STATUS "Examples that use OpenMesh will not be compiled.")
|
||||||
endif()
|
endif()
|
||||||
|
|
@ -42,32 +34,30 @@ endif()
|
||||||
# Creating entries for all C++ files with "main" routine
|
# 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_points_3_sm.cpp" )
|
|
||||||
|
|
||||||
create_single_source_cgal_program( "extreme_indices_3.cpp" )
|
|
||||||
|
|
||||||
|
create_single_source_cgal_program("extreme_indices_3.cpp")
|
||||||
|
|
||||||
if(OpenMesh_FOUND)
|
if(OpenMesh_FOUND)
|
||||||
create_single_source_cgal_program( "quickhull_OM_3.cpp" )
|
create_single_source_cgal_program("quickhull_OM_3.cpp")
|
||||||
create_single_source_cgal_program( "dynamic_hull_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(quickhull_OM_3 PRIVATE ${OPENMESH_LIBRARIES})
|
||||||
target_link_libraries( dynamic_hull_OM_3 PRIVATE ${OPENMESH_LIBRARIES} )
|
target_link_libraries(dynamic_hull_OM_3 PRIVATE ${OPENMESH_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -1,34 +1,26 @@
|
||||||
# Created by the script cgal_create_cmake_script
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
find_package(OpenMesh 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()
|
|
||||||
|
|
||||||
|
if(OpenMesh_FOUND)
|
||||||
|
include(UseOpenMesh)
|
||||||
else()
|
else()
|
||||||
|
message(STATUS "Examples that use OpenMesh will not be compiled.")
|
||||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
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
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
include_directories(BEFORE "include")
|
||||||
|
|
||||||
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()
|
|
||||||
|
|
||||||
|
# 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
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
project( Distance_2_Tests )
|
project(Distance_2_Tests)
|
||||||
|
|
||||||
|
find_package(CGAL REQUIRED)
|
||||||
|
|
||||||
find_package(CGAL QUIET)
|
# create a target per cppfile
|
||||||
|
file(
|
||||||
if ( CGAL_FOUND )
|
GLOB cppfiles
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
# create a target per cppfile
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
foreach(cppfile ${cppfiles})
|
||||||
foreach(cppfile ${cppfiles})
|
create_single_source_cgal_program("${cppfile}")
|
||||||
create_single_source_cgal_program( "${cppfile}" )
|
endforeach()
|
||||||
endforeach()
|
|
||||||
|
|
||||||
else()
|
|
||||||
|
|
||||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,31 +1,23 @@
|
||||||
# Created by the script cgal_create_cmake_script
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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(MSVC)
|
||||||
|
# Turn off a VC++ warning on a potential division by zero
|
||||||
if ( CGAL_FOUND )
|
# in Cartesian_kernel/include/CGAL/constructions/kernel_ftC3.h
|
||||||
|
# where CGAL_assume() does not help
|
||||||
if (MSVC)
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4723")
|
||||||
# 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.")
|
|
||||||
|
|
||||||
endif()
|
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:
|
# Minimal version of CMake:
|
||||||
|
|
||||||
# Check whether this cmake script is the top level one
|
# 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
|
# decide if this is a branch build
|
||||||
if ( NOT EXISTS "${CMAKE_SOURCE_DIR}/../VERSION")
|
if(NOT EXISTS "${CMAKE_SOURCE_DIR}/../VERSION")
|
||||||
set(CGAL_BRANCH_BUILD ON CACHE INTERNAL "CGAL Branch build")
|
set(CGAL_BRANCH_BUILD
|
||||||
|
ON
|
||||||
|
CACHE INTERNAL "CGAL Branch build")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (CGAL_BRANCH_BUILD)
|
if(CGAL_BRANCH_BUILD)
|
||||||
set(CGAL_ROOT "${CMAKE_SOURCE_DIR}/../..")
|
set(CGAL_ROOT "${CMAKE_SOURCE_DIR}/../..")
|
||||||
else()
|
else()
|
||||||
set(CGAL_ROOT "${CMAKE_SOURCE_DIR}/..")
|
set(CGAL_ROOT "${CMAKE_SOURCE_DIR}/..")
|
||||||
|
|
@ -34,14 +36,20 @@ endif()
|
||||||
|
|
||||||
#starting from cmake 3.9 the usage of DOXYGEN_EXECUTABLE is deprecated
|
#starting from cmake 3.9 the usage of DOXYGEN_EXECUTABLE is deprecated
|
||||||
if(TARGET Doxygen::doxygen)
|
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()
|
endif()
|
||||||
|
|
||||||
# Visual Studio users might appreciate this
|
# Visual Studio users might appreciate this
|
||||||
# set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
# set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
||||||
|
|
||||||
macro(subdirlist result curdir)
|
macro(subdirlist result curdir)
|
||||||
file(GLOB children RELATIVE ${curdir} ${curdir}/*)
|
file(
|
||||||
|
GLOB children
|
||||||
|
RELATIVE ${curdir}
|
||||||
|
${curdir}/*)
|
||||||
set(dirlist "")
|
set(dirlist "")
|
||||||
foreach(child ${children})
|
foreach(child ${children})
|
||||||
if(IS_DIRECTORY ${curdir}/${child})
|
if(IS_DIRECTORY ${curdir}/${child})
|
||||||
|
|
@ -65,14 +73,18 @@ function(configure_doxygen_package CGAL_PACKAGE_NAME)
|
||||||
return()
|
return()
|
||||||
endif()
|
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(REMOVE ${CGAL_DOC_PACKAGE_DEFAULTS})
|
||||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS} "@INCLUDE = ${CGAL_DOC_DOXY_DEFAULT}\n")
|
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS}
|
||||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS} "OUTPUT_DIRECTORY = ${CGAL_DOC_OUTPUT_DIR}/${CGAL_PACKAGE_NAME}\n")
|
"@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")
|
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS} "HTML_OUTPUT = .\n")
|
||||||
|
|
||||||
if(CGAL_DOC_CREATE_LOGS)
|
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()
|
endif()
|
||||||
|
|
||||||
if(CGAL_DOC_RELEASE)
|
if(CGAL_DOC_RELEASE)
|
||||||
|
|
@ -81,29 +93,40 @@ function(configure_doxygen_package CGAL_PACKAGE_NAME)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(EXISTS "${CGAL_PACKAGE_DIR}/examples")
|
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()
|
endif()
|
||||||
if(CGAL_GENERATE_XML)
|
if(CGAL_GENERATE_XML)
|
||||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS} "GENERATE_XML = YES\n")
|
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS} "GENERATE_XML = YES\n")
|
||||||
endif()
|
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}
|
||||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS} "STRIP_FROM_PATH = ${CGAL_PACKAGE_DOC_DIR}/\n")
|
"GENERATE_TAGFILE = ${CGAL_DOC_TAG_GEN_DIR}/${CGAL_PACKAGE_NAME}.tag\n")
|
||||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS} "STRIP_FROM_PATH += ${CGAL_PACKAGE_DIR}/include/\n")
|
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS}
|
||||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS} "STRIP_FROM_INC_PATH = ${CGAL_PACKAGE_DOC_DIR}/\n")
|
"STRIP_FROM_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}
|
||||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS} "ALIASES += \"cgalPkgDescriptionBegin{2}=\\details \"\n")
|
"STRIP_FROM_PATH += ${CGAL_PACKAGE_DIR}/include/\n")
|
||||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS} "ALIASES += \"cgalPkgManuals{2}=<div class=\\\"PkgManuals\\\"></div>\"\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")
|
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS} "INPUT = ${CGAL_PACKAGE_DOC_DIR}\n")
|
||||||
if(NOT EXISTS "${CGAL_PACKAGE_DOC_DIR}/CGAL")
|
if(NOT EXISTS "${CGAL_PACKAGE_DOC_DIR}/CGAL")
|
||||||
# This package has in-source documentation.
|
# This package has in-source documentation.
|
||||||
if(CGAL_BRANCH_BUILD) # use the entire include subdir
|
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
|
else() # use the filelist
|
||||||
if(EXISTS "${CGAL_PACKAGE_DOC_DIR}/filelist.txt")
|
if(EXISTS "${CGAL_PACKAGE_DOC_DIR}/filelist.txt")
|
||||||
file(STRINGS "${CGAL_PACKAGE_DOC_DIR}/filelist.txt" CGAL_PKG_FILES)
|
file(STRINGS "${CGAL_PACKAGE_DOC_DIR}/filelist.txt" CGAL_PKG_FILES)
|
||||||
foreach(pkg_file ${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()
|
endforeach()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
@ -113,7 +136,7 @@ function(configure_doxygen_package CGAL_PACKAGE_NAME)
|
||||||
set(IMAGE_PATHS "${CGAL_PACKAGE_DOC_DIR}/fig")
|
set(IMAGE_PATHS "${CGAL_PACKAGE_DOC_DIR}/fig")
|
||||||
set(DEPENDENCIES "")
|
set(DEPENDENCIES "")
|
||||||
# figure out the dependencies, using the file `dependencies` or `packages.txt` for Documentation
|
# 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)
|
set(PackageFile ${CGAL_PACKAGE_DOC_DIR}/packages.txt)
|
||||||
file(STRINGS ${PackageFile} EntriesAsList REGEX "^\\\\package_listing{.+}$")
|
file(STRINGS ${PackageFile} EntriesAsList REGEX "^\\\\package_listing{.+}$")
|
||||||
foreach(Line ${EntriesAsList})
|
foreach(Line ${EntriesAsList})
|
||||||
|
|
@ -121,9 +144,9 @@ function(configure_doxygen_package CGAL_PACKAGE_NAME)
|
||||||
list(APPEND DEPENDENCIES ${PKG})
|
list(APPEND DEPENDENCIES ${PKG})
|
||||||
|
|
||||||
if(CGAL_BRANCH_BUILD)
|
if(CGAL_BRANCH_BUILD)
|
||||||
SET(IMG_DIR "${CGAL_ROOT}/${PKG}/doc/${PKG}/fig")
|
set(IMG_DIR "${CGAL_ROOT}/${PKG}/doc/${PKG}/fig")
|
||||||
else()
|
else()
|
||||||
SET(IMG_DIR "${CGAL_ROOT}/doc/${PKG}/fig")
|
set(IMG_DIR "${CGAL_ROOT}/doc/${PKG}/fig")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(EXISTS ${IMG_DIR})
|
if(EXISTS ${IMG_DIR})
|
||||||
|
|
@ -138,43 +161,44 @@ function(configure_doxygen_package CGAL_PACKAGE_NAME)
|
||||||
|
|
||||||
foreach(depend ${DEPENDENCIES})
|
foreach(depend ${DEPENDENCIES})
|
||||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS}
|
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()
|
endforeach()
|
||||||
|
|
||||||
foreach(image_path ${IMAGE_PATHS})
|
foreach(image_path ${IMAGE_PATHS})
|
||||||
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS}
|
file(APPEND ${CGAL_DOC_PACKAGE_DEFAULTS} "IMAGE_PATH += ${image_path}\n")
|
||||||
"IMAGE_PATH += ${image_path}\n")
|
|
||||||
endforeach()
|
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
|
# 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
|
# 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)
|
${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
|
#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")
|
set(CGAL_PACKAGE_TAGFILE "Manual.tag")
|
||||||
else()
|
else()
|
||||||
set(CGAL_PACKAGE_TAGFILE "${CGAL_PACKAGE_NAME}.tag")
|
set(CGAL_PACKAGE_TAGFILE "${CGAL_PACKAGE_NAME}.tag")
|
||||||
endif()
|
endif()
|
||||||
add_custom_target(${CGAL_PACKAGE_NAME}_copy_doc_tags
|
add_custom_target(
|
||||||
${CMAKE_COMMAND} -E copy
|
${CGAL_PACKAGE_NAME}_copy_doc_tags
|
||||||
"${CGAL_DOC_TAG_GEN_DIR}/${CGAL_PACKAGE_TAGFILE}"
|
${CMAKE_COMMAND} -E copy "${CGAL_DOC_TAG_GEN_DIR}/${CGAL_PACKAGE_TAGFILE}"
|
||||||
"${CGAL_DOC_TAG_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 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
|
${DOXYGEN_EXECUTABLE} ${CGAL_DOC_DXY_DIR}/${CGAL_PACKAGE_NAME}.dxy
|
||||||
COMMAND
|
COMMAND
|
||||||
${CMAKE_COMMAND} -E copy
|
${CMAKE_COMMAND} -E copy
|
||||||
"${CGAL_DOC_TAG_GEN_DIR}/${CGAL_PACKAGE_TAGFILE}"
|
"${CGAL_DOC_TAG_GEN_DIR}/${CGAL_PACKAGE_TAGFILE}"
|
||||||
"${CGAL_DOC_TAG_DIR}/${CGAL_PACKAGE_TAGFILE}"
|
"${CGAL_DOC_TAG_DIR}/${CGAL_PACKAGE_TAGFILE}")
|
||||||
)
|
|
||||||
|
|
||||||
# ${depend}_doc)
|
# ${depend}_doc)
|
||||||
# don't do this for now
|
# don't do this for now
|
||||||
|
|
@ -185,29 +209,37 @@ function(configure_doxygen_package CGAL_PACKAGE_NAME)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
# set up the directories and variables
|
# set up the directories and variables
|
||||||
if (CGAL_DOC_MATHJAX_LOCATION)
|
if(CGAL_DOC_MATHJAX_LOCATION)
|
||||||
set(CGAL_DOC_MATHJAX_LOCATION_FULL_OPTION_LINE "MATHJAX_RELPATH = ${CGAL_DOC_MATHJAX_LOCATION}")
|
set(CGAL_DOC_MATHJAX_LOCATION_FULL_OPTION_LINE
|
||||||
|
"MATHJAX_RELPATH = ${CGAL_DOC_MATHJAX_LOCATION}")
|
||||||
else()
|
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()
|
endif()
|
||||||
|
|
||||||
set(CGAL_DOC_OUTPUT_DIR "${CMAKE_BINARY_DIR}/doc_output")
|
set(CGAL_DOC_OUTPUT_DIR "${CMAKE_BINARY_DIR}/doc_output")
|
||||||
file(MAKE_DIRECTORY "${CGAL_DOC_OUTPUT_DIR}")
|
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)
|
if(CGAL_DOC_CREATE_LOGS)
|
||||||
set(CGAL_DOC_LOG_DIR "${CMAKE_BINARY_DIR}/doc_log")
|
set(CGAL_DOC_LOG_DIR "${CMAKE_BINARY_DIR}/doc_log")
|
||||||
file(MAKE_DIRECTORY "${CGAL_DOC_LOG_DIR}")
|
file(MAKE_DIRECTORY "${CGAL_DOC_LOG_DIR}")
|
||||||
endif()
|
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)
|
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()
|
else()
|
||||||
# The default is NO, so we could leave it out, but it is better to have a commented out placeholder
|
# 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.
|
# 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()
|
endif()
|
||||||
|
|
||||||
#we use two directories for the generation/reading of tag files to prevent issues
|
#we use two directories for the generation/reading of tag files to prevent issues
|
||||||
|
|
@ -224,8 +256,9 @@ set(CGAL_DOC_RESOURCE_DIR_DEFAULT "${CMAKE_CURRENT_LIST_DIR}/resources/1.8.14")
|
||||||
|
|
||||||
# first look if resources for the specific doxygen version is available, fallback
|
# first look if resources for the specific doxygen version is available, fallback
|
||||||
# on the default otherwise
|
# on the default otherwise
|
||||||
if (EXISTS "${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}")
|
set(CGAL_DOC_RESOURCE_DIR
|
||||||
|
"${CMAKE_CURRENT_LIST_DIR}/resources/${DOXYGEN_VERSION}")
|
||||||
else()
|
else()
|
||||||
set(CGAL_DOC_RESOURCE_DIR "${CGAL_DOC_RESOURCE_DIR_DEFAULT}")
|
set(CGAL_DOC_RESOURCE_DIR "${CGAL_DOC_RESOURCE_DIR_DEFAULT}")
|
||||||
endif()
|
endif()
|
||||||
|
|
@ -236,7 +269,8 @@ set(CGAL_DOC_SCRIPT_DIR "${CMAKE_CURRENT_LIST_DIR}/scripts")
|
||||||
set(CGAL_DOC_HEADER ${CGAL_DOC_DXY_DIR}/header.html)
|
set(CGAL_DOC_HEADER ${CGAL_DOC_DXY_DIR}/header.html)
|
||||||
configure_file(${CGAL_DOC_RESOURCE_DIR}/header.html ${CGAL_DOC_HEADER} @ONLY)
|
configure_file(${CGAL_DOC_RESOURCE_DIR}/header.html ${CGAL_DOC_HEADER} @ONLY)
|
||||||
set(CGAL_DOC_HEADER_PACKAGE ${CGAL_DOC_DXY_DIR}/header_package.html)
|
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
|
#Generate the bibtex file
|
||||||
#this is needed also for BaseDoxyfile.in
|
#this is needed also for BaseDoxyfile.in
|
||||||
|
|
@ -250,24 +284,29 @@ else()
|
||||||
set(CGAL_RELEASE_YEAR_ID "${CGAL_BUILD_YEAR2}a")
|
set(CGAL_RELEASE_YEAR_ID "${CGAL_BUILD_YEAR2}a")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (NOT CGAL_CREATED_VERSION_NUM)
|
if(NOT CGAL_CREATED_VERSION_NUM)
|
||||||
if (CGAL_BRANCH_BUILD)
|
if(CGAL_BRANCH_BUILD)
|
||||||
include(${CGAL_ROOT}/CGALConfigVersion.cmake)
|
include(${CGAL_ROOT}/CGALConfigVersion.cmake)
|
||||||
|
|
||||||
if (CGAL_BUGFIX_VERSION AND CGAL_BUGFIX_VERSION GREATER 0)
|
if(CGAL_BUGFIX_VERSION AND CGAL_BUGFIX_VERSION GREATER 0)
|
||||||
set(CGAL_CREATED_VERSION_NUM "${CGAL_MAJOR_VERSION}.${CGAL_MINOR_VERSION}.${CGAL_BUGFIX_VERSION}")
|
set(CGAL_CREATED_VERSION_NUM
|
||||||
|
"${CGAL_MAJOR_VERSION}.${CGAL_MINOR_VERSION}.${CGAL_BUGFIX_VERSION}")
|
||||||
else()
|
else()
|
||||||
set(CGAL_CREATED_VERSION_NUM "${CGAL_MAJOR_VERSION}.${CGAL_MINOR_VERSION}")
|
set(CGAL_CREATED_VERSION_NUM
|
||||||
|
"${CGAL_MAJOR_VERSION}.${CGAL_MINOR_VERSION}")
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
if(EXISTS "${CGAL_ROOT}/doc/public_release_name")
|
if(EXISTS "${CGAL_ROOT}/doc/public_release_name")
|
||||||
file(STRINGS "${CGAL_ROOT}/doc/public_release_name" CGAL_VERSION_LINE)
|
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()
|
else()
|
||||||
#read version.h and get the line with CGAL_VERSION
|
#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
|
#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()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
@ -279,39 +318,47 @@ set(CGAL_DOC_VERSION ${CGAL_CREATED_VERSION_NUM})
|
||||||
|
|
||||||
## generate how_to_cite files
|
## generate how_to_cite files
|
||||||
if(PYTHONINTERP_FOUND)
|
if(PYTHONINTERP_FOUND)
|
||||||
execute_process(COMMAND ${PYTHON_EXECUTABLE}
|
execute_process(
|
||||||
${CGAL_DOC_SCRIPT_DIR}/generate_how_to_cite.py
|
COMMAND ${PYTHON_EXECUTABLE} ${CGAL_DOC_SCRIPT_DIR}/generate_how_to_cite.py
|
||||||
${CGAL_ROOT}
|
${CGAL_ROOT} ${CMAKE_BINARY_DIR} "${CGAL_BRANCH_BUILD}"
|
||||||
${CMAKE_BINARY_DIR}
|
RESULT_VARIABLE GENERATE_HOW_TO_CITE_RESULT)
|
||||||
"${CGAL_BRANCH_BUILD}"
|
|
||||||
RESULT_VARIABLE GENERATE_HOW_TO_CITE_RESULT)
|
|
||||||
if(NOT GENERATE_HOW_TO_CITE_RESULT EQUAL "0")
|
if(NOT GENERATE_HOW_TO_CITE_RESULT EQUAL "0")
|
||||||
message(FATAL_ERROR "generate_how_to_cite did not exit correctly")
|
message(FATAL_ERROR "generate_how_to_cite did not exit correctly")
|
||||||
endif()
|
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.bib.in
|
||||||
configure_file(${CMAKE_BINARY_DIR}/how_to_cite_cgal.txt.in ${CMAKE_BINARY_DIR}/how_to_cite_cgal.txt)
|
${CMAKE_BINARY_DIR}/how_to_cite_cgal.bib)
|
||||||
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.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()
|
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")
|
set(CGAL_DOC_DOXY_DEFAULT "${CGAL_DOC_DXY_DIR}/BaseDoxyfile")
|
||||||
|
|
||||||
# pkglist_filter gets the path to the pkglist_filter of this source
|
# pkglist_filter gets the path to the pkglist_filter of this source
|
||||||
# directory.
|
# directory.
|
||||||
if(WIN32)
|
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()
|
endif()
|
||||||
configure_file(${CGAL_DOC_SCRIPT_DIR}/pkglist_filter ${CMAKE_BINARY_DIR}/pkglist_filter)
|
configure_file(${CGAL_DOC_SCRIPT_DIR}/pkglist_filter
|
||||||
configure_file(${CGAL_DOC_SCRIPT_DIR}/pkglist_filter.py ${CMAKE_BINARY_DIR}/pkglist_filter.py)
|
${CMAKE_BINARY_DIR}/pkglist_filter)
|
||||||
|
configure_file(${CGAL_DOC_SCRIPT_DIR}/pkglist_filter.py
|
||||||
|
${CMAKE_BINARY_DIR}/pkglist_filter.py)
|
||||||
|
|
||||||
set(CGAL_DOC_PACKAGES "")
|
set(CGAL_DOC_PACKAGES "")
|
||||||
if(CGAL_BRANCH_BUILD)
|
if(CGAL_BRANCH_BUILD)
|
||||||
file(GLOB CGAL_ALL_PACKAGES RELATIVE ${CGAL_ROOT} "${CGAL_ROOT}/*")
|
file(
|
||||||
foreach (pkg ${CGAL_ALL_PACKAGES})
|
GLOB CGAL_ALL_PACKAGES
|
||||||
|
RELATIVE ${CGAL_ROOT}
|
||||||
|
"${CGAL_ROOT}/*")
|
||||||
|
foreach(pkg ${CGAL_ALL_PACKAGES})
|
||||||
#detect packages with documentation to process
|
#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")
|
if(EXISTS "${CGAL_ROOT}/${pkg}/doc/${pkg}/PackageDescription.txt")
|
||||||
list(APPEND CGAL_DOC_PACKAGES ${pkg})
|
list(APPEND CGAL_DOC_PACKAGES ${pkg})
|
||||||
endif()
|
endif()
|
||||||
|
|
@ -338,7 +385,8 @@ else()
|
||||||
|
|
||||||
subdirlist(CGAL_EXAMPLE_PACKAGES ${CGAL_ROOT}/examples)
|
subdirlist(CGAL_EXAMPLE_PACKAGES ${CGAL_ROOT}/examples)
|
||||||
subdirlist(CGAL_DEMO_PACKAGES ${CGAL_ROOT}/demo)
|
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})
|
foreach(pkg ${CGAL_EXAMPLE_PACKAGES})
|
||||||
set(CGAL_${pkg}_EXAMPLE_DIR "${CGAL_ROOT}/examples")
|
set(CGAL_${pkg}_EXAMPLE_DIR "${CGAL_ROOT}/examples")
|
||||||
# This might not be entirely correct, but there is no reliable,
|
# This might not be entirely correct, but there is no reliable,
|
||||||
|
|
@ -353,7 +401,7 @@ endif()
|
||||||
|
|
||||||
option(CGAL_BUILD_THREE_DOC "Build the documentation of the Three package" OFF)
|
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")
|
list(REMOVE_ITEM CGAL_DOC_PACKAGES "Three")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
@ -386,25 +434,47 @@ add_dependencies(doc doc_post)
|
||||||
if(PYTHONINTERP_FOUND)
|
if(PYTHONINTERP_FOUND)
|
||||||
set(CGAL_DOC_TESTSUITE_SCRIPT "${CGAL_DOC_SCRIPT_DIR}/testsuite.py")
|
set(CGAL_DOC_TESTSUITE_SCRIPT "${CGAL_DOC_SCRIPT_DIR}/testsuite.py")
|
||||||
|
|
||||||
add_custom_target(doc_with_postprocessing
|
add_custom_target(
|
||||||
${PYTHON_EXECUTABLE} ${CGAL_DOC_SCRIPT_DIR}/html_output_post_processing.py --output ${CGAL_DOC_OUTPUT_DIR} --resources ${CGAL_DOC_RESOURCE_DIR}
|
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)
|
add_dependencies(doc_with_postprocessing doc)
|
||||||
|
|
||||||
if(CGAL_DOC_CREATE_LOGS)
|
if(CGAL_DOC_CREATE_LOGS)
|
||||||
add_custom_target(Documentation_test
|
add_custom_target(
|
||||||
${PYTHON_EXECUTABLE} ${CGAL_DOC_TESTSUITE_SCRIPT} --output-dir ${CGAL_DOC_OUTPUT_DIR} --doc-log-dir ${CGAL_DOC_LOG_DIR}
|
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_dependencies(Documentation_test doc)
|
||||||
|
|
||||||
add_custom_target(Documentation_test_publish
|
add_custom_target(
|
||||||
${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
|
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_dependencies(Documentation_test_publish doc)
|
||||||
|
|
||||||
add_custom_target(doc_and_publish_testsuite
|
add_custom_target(
|
||||||
${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
|
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)
|
add_dependencies(doc_and_publish_testsuite doc_with_postprocessing)
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,16 @@
|
||||||
# Created by the script cgal_create_cmake_script
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
project( Envelope_2_Examples )
|
project(Envelope_2_Examples)
|
||||||
|
|
||||||
|
find_package(CGAL REQUIRED)
|
||||||
|
|
||||||
find_package(CGAL QUIET)
|
# create a target per cppfile
|
||||||
|
file(
|
||||||
if ( CGAL_FOUND )
|
GLOB cppfiles
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
# create a target per cppfile
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
foreach(cppfile ${cppfiles})
|
||||||
foreach(cppfile ${cppfiles})
|
create_single_source_cgal_program("${cppfile}")
|
||||||
create_single_source_cgal_program( "${cppfile}" )
|
endforeach()
|
||||||
endforeach()
|
|
||||||
|
|
||||||
else()
|
|
||||||
|
|
||||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,16 @@
|
||||||
# Created by the script cgal_create_cmake_script
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
project( Envelope_2_Tests )
|
project(Envelope_2_Tests)
|
||||||
|
|
||||||
|
find_package(CGAL REQUIRED)
|
||||||
|
|
||||||
find_package(CGAL QUIET)
|
# create a target per cppfile
|
||||||
|
file(
|
||||||
if ( CGAL_FOUND )
|
GLOB cppfiles
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
# create a target per cppfile
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
foreach(cppfile ${cppfiles})
|
||||||
foreach(cppfile ${cppfiles})
|
create_single_source_cgal_program("${cppfile}")
|
||||||
create_single_source_cgal_program( "${cppfile}" )
|
endforeach()
|
||||||
endforeach()
|
|
||||||
|
|
||||||
else()
|
|
||||||
|
|
||||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,26 +1,18 @@
|
||||||
# Created by the script cgal_create_cmake_script
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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 )
|
include(${CGAL_USE_FILE})
|
||||||
|
|
||||||
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()
|
|
||||||
|
|
||||||
|
# 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
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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 )
|
include(${CGAL_USE_FILE})
|
||||||
|
|
||||||
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()
|
|
||||||
|
|
||||||
|
# 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
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
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" )
|
add_executable(bench_comparisons "orientation_3.cpp")
|
||||||
target_link_libraries(bench_orientation_3 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )
|
target_link_libraries(bench_comparisons ${CGAL_LIBRARIES}
|
||||||
|
${CGAL_3RD_PARTY_LIBRARIES})
|
||||||
add_executable( bench_comparisons "orientation_3.cpp" )
|
set_property(
|
||||||
target_link_libraries(bench_comparisons ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )
|
TARGET bench_comparisons
|
||||||
set_property(
|
APPEND
|
||||||
TARGET bench_comparisons
|
PROPERTY COMPILE_DEFINITIONS ONLY_TEST_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()
|
|
||||||
|
|
||||||
|
get_property(
|
||||||
|
DEF
|
||||||
|
TARGET bench_comparisons
|
||||||
|
PROPERTY COMPILE_DEFINITIONS)
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,16 @@
|
||||||
# Created by the script cgal_create_cmake_script
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
project( Filtered_kernel_Examples )
|
project(Filtered_kernel_Examples)
|
||||||
|
|
||||||
|
find_package(CGAL REQUIRED)
|
||||||
|
|
||||||
find_package(CGAL QUIET)
|
# create a target per cppfile
|
||||||
|
file(
|
||||||
if ( CGAL_FOUND )
|
GLOB cppfiles
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
# create a target per cppfile
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
foreach(cppfile ${cppfiles})
|
||||||
foreach(cppfile ${cppfiles})
|
create_single_source_cgal_program("${cppfile}")
|
||||||
create_single_source_cgal_program( "${cppfile}" )
|
endforeach()
|
||||||
endforeach()
|
|
||||||
|
|
||||||
else()
|
|
||||||
|
|
||||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,16 @@
|
||||||
# Created by the script cgal_create_cmake_script
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
project( Filtered_kernel_Tests )
|
project(Filtered_kernel_Tests)
|
||||||
|
|
||||||
|
find_package(CGAL REQUIRED)
|
||||||
|
|
||||||
find_package(CGAL QUIET)
|
# create a target per cppfile
|
||||||
|
file(
|
||||||
if ( CGAL_FOUND )
|
GLOB cppfiles
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
# create a target per cppfile
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
foreach(cppfile ${cppfiles})
|
||||||
foreach(cppfile ${cppfiles})
|
create_single_source_cgal_program("${cppfile}")
|
||||||
create_single_source_cgal_program( "${cppfile}" )
|
endforeach()
|
||||||
endforeach()
|
|
||||||
|
|
||||||
else()
|
|
||||||
|
|
||||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,23 +1,16 @@
|
||||||
# Created by the script cgal_create_cmake_script
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
project( Generalized_map_Examples )
|
project(Generalized_map_Examples)
|
||||||
|
|
||||||
|
find_package(CGAL REQUIRED)
|
||||||
|
|
||||||
find_package(CGAL QUIET)
|
# create a target per cppfile
|
||||||
|
file(
|
||||||
if ( CGAL_FOUND )
|
GLOB cppfiles
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
# create a target per cppfile
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
foreach(cppfile ${cppfiles})
|
||||||
foreach(cppfile ${cppfiles})
|
create_single_source_cgal_program("${cppfile}")
|
||||||
create_single_source_cgal_program( "${cppfile}" )
|
endforeach()
|
||||||
endforeach()
|
|
||||||
|
|
||||||
else()
|
|
||||||
|
|
||||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
|
||||||
|
|
@ -2,26 +2,18 @@
|
||||||
# This is the CMake script for compiling a set of CGAL applications.
|
# This is the CMake script for compiling a set of CGAL applications.
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
project( Generalized_map_Tests )
|
project(Generalized_map_Tests)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# CGAL and its components
|
# CGAL and its components
|
||||||
find_package( CGAL QUIET COMPONENTS )
|
find_package(CGAL REQUIRED)
|
||||||
|
|
||||||
if ( NOT CGAL_FOUND )
|
|
||||||
|
|
||||||
message(STATUS "This project requires the CGAL library, and will not be compiled.")
|
|
||||||
return()
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# Boost and its components
|
# 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()
|
return()
|
||||||
|
|
||||||
|
|
@ -34,6 +26,4 @@ endif()
|
||||||
# Creating entries for all C++ files with "main" routine
|
# 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
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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 )
|
find_package(Boost REQUIRED program_options)
|
||||||
|
include_directories(${Boost_PROGRAM_OPTIONS_INCLUDE_DIR})
|
||||||
if ( CGAL_FOUND )
|
add_definitions("-DCGAL_USE_BOOST_PROGRAM_OPTIONS")
|
||||||
|
list(APPEND CGAL_3RD_PARTY_LIBRARIES ${Boost_PROGRAM_OPTIONS_LIBRARY})
|
||||||
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()
|
|
||||||
|
|
||||||
|
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
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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 )
|
# create a target per cppfile
|
||||||
|
file(
|
||||||
# Use Eigen
|
GLOB cppfiles
|
||||||
find_package(Eigen3 3.1.0 QUIET) #(3.1.0 or greater)
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
include(CGAL_Eigen_support)
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
|
foreach(cppfile ${cppfiles})
|
||||||
# create a target per cppfile
|
if(NOT (${cppfile} STREQUAL "random_points_in_tetrahedral_mesh_3.cpp")
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
OR NOT (${cppfile} STREQUAL "random_points_on_tetrahedral_mesh_3.cpp")
|
||||||
foreach(cppfile ${cppfiles})
|
OR TARGET CGAL::Eigen_support)
|
||||||
if(NOT (${cppfile} STREQUAL "random_points_in_tetrahedral_mesh_3.cpp")
|
create_single_source_cgal_program("${cppfile}")
|
||||||
OR NOT (${cppfile} STREQUAL "random_points_on_tetrahedral_mesh_3.cpp")
|
if(TARGET CGAL::Eigen_support)
|
||||||
OR TARGET CGAL::Eigen_support)
|
get_filename_component(target ${cppfile} NAME_WE)
|
||||||
create_single_source_cgal_program( "${cppfile}" )
|
target_link_libraries(${target} PUBLIC CGAL::Eigen_support)
|
||||||
if (TARGET CGAL::Eigen_support)
|
|
||||||
get_filename_component(target ${cppfile} NAME_WE)
|
|
||||||
target_link_libraries(${target} PUBLIC CGAL::Eigen_support)
|
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endif()
|
||||||
|
endforeach()
|
||||||
else()
|
|
||||||
|
|
||||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
|
||||||
|
|
@ -1,33 +1,27 @@
|
||||||
# Created by the script cgal_create_cmake_script
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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 )
|
# create a target per cppfile
|
||||||
|
file(
|
||||||
# Use Eigen
|
GLOB cppfiles
|
||||||
find_package(Eigen3 3.1.0 QUIET) #(3.1.0 or greater)
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
include(CGAL_Eigen_support)
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
|
foreach(cppfile ${cppfiles})
|
||||||
# create a target per cppfile
|
if(NOT (${cppfile} STREQUAL "generic_random_test.cpp") OR TARGET
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
CGAL::Eigen_support)
|
||||||
foreach(cppfile ${cppfiles})
|
create_single_source_cgal_program("${cppfile}")
|
||||||
if(NOT (${cppfile} STREQUAL "generic_random_test.cpp") OR TARGET CGAL::Eigen_support)
|
if(TARGET CGAL::Eigen_support)
|
||||||
create_single_source_cgal_program( "${cppfile}" )
|
get_filename_component(target ${cppfile} NAME_WE)
|
||||||
if (TARGET CGAL::Eigen_support)
|
target_link_libraries(${target} PUBLIC CGAL::Eigen_support)
|
||||||
get_filename_component(target ${cppfile} NAME_WE)
|
|
||||||
target_link_libraries(${target} PUBLIC CGAL::Eigen_support)
|
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endif()
|
||||||
|
endforeach()
|
||||||
else()
|
|
||||||
|
|
||||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
# Created by the script cgal_create_cmake_script
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
project( Geomview_Demo )
|
project(Geomview_Demo)
|
||||||
|
|
||||||
if(NOT POLICY CMP0070 AND POLICY CMP0053)
|
if(NOT POLICY CMP0070 AND POLICY CMP0053)
|
||||||
# Only set CMP0053 to OLD with CMake<3.10, otherwise there is a warning.
|
# 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)
|
set_property(DIRECTORY PROPERTY CGAL_NO_TESTING TRUE)
|
||||||
|
|
||||||
find_package(CGAL QUIET)
|
find_package(CGAL REQUIRED)
|
||||||
|
|
||||||
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()
|
|
||||||
|
|
||||||
|
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
|
# Created by the script cgal_create_cmake_script
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
project( Geomview_Tests )
|
project(Geomview_Tests)
|
||||||
|
|
||||||
|
find_package(CGAL REQUIRED)
|
||||||
|
|
||||||
find_package(CGAL QUIET)
|
# create a target per cppfile
|
||||||
|
file(
|
||||||
if ( CGAL_FOUND )
|
GLOB cppfiles
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
# create a target per cppfile
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
foreach(cppfile ${cppfiles})
|
||||||
foreach(cppfile ${cppfiles})
|
create_single_source_cgal_program("${cppfile}")
|
||||||
create_single_source_cgal_program( "${cppfile}" )
|
endforeach()
|
||||||
endforeach()
|
|
||||||
|
|
||||||
else()
|
|
||||||
|
|
||||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
if(NOT POLICY CMP0070 AND POLICY CMP0053)
|
||||||
# Only set CMP0053 to OLD with CMake<3.10, otherwise there is a warning.
|
# 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)
|
cmake_policy(SET CMP0071 NEW)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(CGAL COMPONENTS Qt5)
|
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt5)
|
||||||
|
|
||||||
find_package(Qt5 QUIET COMPONENTS Xml Script OpenGL Svg)
|
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 )
|
if(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||||
add_definitions(-DQT_NO_KEYWORDS)
|
add_definitions(-DQT_NO_KEYWORDS)
|
||||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||||
set(CMAKE_AUTOMOC ON)
|
set(CMAKE_AUTOMOC ON)
|
||||||
#--------------------------------
|
#--------------------------------
|
||||||
# The "Delaunay" demo: Alpha_shapes_2
|
# The "Delaunay" demo: Alpha_shapes_2
|
||||||
#--------------------------------
|
#--------------------------------
|
||||||
# UI files (Qt Designer files)
|
# UI files (Qt Designer files)
|
||||||
qt5_wrap_ui( DT_UI_FILES Alpha_shapes_2.ui )
|
qt5_wrap_ui(DT_UI_FILES Alpha_shapes_2.ui)
|
||||||
|
|
||||||
# qrc files (resources files, that contain icons, at least)
|
# qrc files (resources files, that contain icons, at least)
|
||||||
qt5_add_resources ( CGAL_Qt5_RESOURCE_FILES ./Alpha_shapes_2.qrc )
|
qt5_add_resources(CGAL_Qt5_RESOURCE_FILES ./Alpha_shapes_2.qrc)
|
||||||
|
|
||||||
# The executable itself.
|
# The executable itself.
|
||||||
add_executable ( Alpha_shapes_2 Alpha_shapes_2.cpp ${DT_UI_FILES} ${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES})
|
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
|
target_link_libraries(Alpha_shapes_2 PRIVATE CGAL::CGAL CGAL::CGAL_Qt5
|
||||||
CGAL::CGAL CGAL::CGAL_Qt5 Qt5::Gui )
|
Qt5::Gui)
|
||||||
|
|
||||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
cgal_add_compilation_test(Alpha_shapes_2)
|
cgal_add_compilation_test(Alpha_shapes_2)
|
||||||
|
|
||||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
cgal_add_compilation_test(Alpha_shapes_2)
|
cgal_add_compilation_test(Alpha_shapes_2)
|
||||||
|
|
||||||
else()
|
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()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
if(NOT POLICY CMP0070 AND POLICY CMP0053)
|
||||||
# Only set CMP0053 to OLD with CMake<3.10, otherwise there is a warning.
|
# 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)
|
cmake_policy(SET CMP0071 NEW)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(CGAL COMPONENTS Qt5)
|
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt5)
|
||||||
|
|
||||||
find_package(Qt5 QUIET COMPONENTS Xml Script OpenGL Svg)
|
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)
|
add_definitions(-DQT_NO_KEYWORDS)
|
||||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||||
set(CMAKE_AUTOMOC ON)
|
set(CMAKE_AUTOMOC ON)
|
||||||
#--------------------------------
|
#--------------------------------
|
||||||
# UI files (Qt Designer files)
|
# UI files (Qt Designer files)
|
||||||
qt5_wrap_ui( DT_UI_FILES Apollonius_graph_2.ui )
|
qt5_wrap_ui(DT_UI_FILES Apollonius_graph_2.ui)
|
||||||
|
|
||||||
# qrc files (resources files, that contain icons, at least)
|
# qrc files (resources files, that contain icons, at least)
|
||||||
qt5_add_resources ( CGAL_Qt5_RESOURCE_FILES ./Apollonius_graph_2.qrc )
|
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.
|
# The executable itself.
|
||||||
add_executable ( Apollonius_graph_2 Apollonius_graph_2.cpp ${DT_UI_FILES} ${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES})
|
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
|
target_link_libraries(Apollonius_graph_2 PRIVATE CGAL::CGAL CGAL::CGAL_Qt5
|
||||||
CGAL::CGAL CGAL::CGAL_Qt5
|
Qt5::Gui)
|
||||||
Qt5::Gui )
|
|
||||||
|
|
||||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
cgal_add_compilation_test(Apollonius_graph_2)
|
cgal_add_compilation_test(Apollonius_graph_2)
|
||||||
|
|
||||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
cgal_add_compilation_test(Apollonius_graph_2)
|
cgal_add_compilation_test(Apollonius_graph_2)
|
||||||
|
|
||||||
else()
|
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()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
project (Bounding_volumes_Demo)
|
project(Bounding_volumes_Demo)
|
||||||
|
|
||||||
if(NOT POLICY CMP0070 AND POLICY CMP0053)
|
if(NOT POLICY CMP0070 AND POLICY CMP0053)
|
||||||
# Only set CMP0053 to OLD with CMake<3.10, otherwise there is a warning.
|
# 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)
|
cmake_policy(SET CMP0071 NEW)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(CGAL COMPONENTS Qt5)
|
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt5)
|
||||||
|
|
||||||
find_package(Qt5 QUIET COMPONENTS Xml Script OpenGL Svg)
|
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)
|
# The "Bounding volumes" demo: Bounding_volumes
|
||||||
set(CMAKE_AUTOMOC ON)
|
#----------------------------------------------
|
||||||
|
# UI files (Qt Designer files)
|
||||||
|
qt5_wrap_ui(DT_UI_FILES Bounding_volumes.ui)
|
||||||
|
|
||||||
#----------------------------------------------
|
# qrc files (resources files, that contain icons, at least)
|
||||||
# The "Bounding volumes" demo: Bounding_volumes
|
qt5_add_resources(CGAL_Qt5_RESOURCE_FILES ./Bounding_volumes.qrc)
|
||||||
#----------------------------------------------
|
|
||||||
# UI files (Qt Designer files)
|
|
||||||
qt5_wrap_ui( DT_UI_FILES Bounding_volumes.ui )
|
|
||||||
|
|
||||||
# qrc files (resources files, that contain icons, at least)
|
# use the Qt MOC preprocessor on classes that derives from QObject
|
||||||
qt5_add_resources ( CGAL_Qt5_RESOURCE_FILES ./Bounding_volumes.qrc )
|
|
||||||
|
|
||||||
# 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_to_cached_list(CGAL_EXECUTABLE_TARGETS Bounding_volumes)
|
||||||
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 )
|
target_link_libraries(Bounding_volumes PRIVATE CGAL::CGAL CGAL::CGAL_Qt5
|
||||||
|
Qt5::Gui)
|
||||||
|
|
||||||
target_link_libraries( Bounding_volumes PRIVATE
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
CGAL::CGAL CGAL::CGAL_Qt5 Qt5::Gui)
|
cgal_add_compilation_test(Bounding_volumes)
|
||||||
|
|
||||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
cgal_add_compilation_test(Bounding_volumes)
|
cgal_add_compilation_test(Bounding_volumes)
|
||||||
|
|
||||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
|
||||||
cgal_add_compilation_test(Bounding_volumes)
|
|
||||||
|
|
||||||
else()
|
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()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
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)
|
if(NOT POLICY CMP0070 AND POLICY CMP0053)
|
||||||
# Only set CMP0053 to OLD with CMake<3.10, otherwise there is a warning.
|
# 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)
|
cmake_policy(SET CMP0071 NEW)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(CGAL COMPONENTS Qt5)
|
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt5)
|
||||||
|
|
||||||
|
|
||||||
find_package(Qt5 QUIET COMPONENTS Xml Script OpenGL Svg)
|
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)
|
add_definitions(-DQT_NO_KEYWORDS)
|
||||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||||
set(CMAKE_AUTOMOC ON)
|
set(CMAKE_AUTOMOC ON)
|
||||||
|
|
@ -27,21 +26,22 @@ if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND )
|
||||||
# The demo: Circular_kernel_2
|
# The demo: Circular_kernel_2
|
||||||
#--------------------------------
|
#--------------------------------
|
||||||
# UI files (Qt Designer files)
|
# 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)
|
# 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
|
# use the Qt MOC preprocessor on classes that derives from QObject
|
||||||
|
|
||||||
|
|
||||||
# The executable itself.
|
# 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
|
target_link_libraries(Circular_kernel_2 PRIVATE CGAL::CGAL CGAL::CGAL_Qt5
|
||||||
CGAL::CGAL CGAL::CGAL_Qt5 Qt5::Gui)
|
Qt5::Gui)
|
||||||
|
|
||||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
cgal_add_compilation_test(Circular_kernel_2)
|
cgal_add_compilation_test(Circular_kernel_2)
|
||||||
|
|
@ -51,6 +51,7 @@ if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND )
|
||||||
|
|
||||||
else()
|
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()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
# This is the CMake script for compiling a CGAL application.
|
# This is the CMake script for compiling a CGAL application.
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
project (Generator_Demo)
|
project(Generator_Demo)
|
||||||
|
|
||||||
if(NOT POLICY CMP0070 AND POLICY CMP0053)
|
if(NOT POLICY CMP0070 AND POLICY CMP0053)
|
||||||
# Only set CMP0053 to OLD with CMake<3.10, otherwise there is a warning.
|
# 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)
|
cmake_policy(SET CMP0071 NEW)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(CGAL COMPONENTS Qt5)
|
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt5)
|
||||||
|
|
||||||
find_package(Qt5 QUIET COMPONENTS Xml Script OpenGL Svg)
|
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)
|
add_definitions(-DQT_NO_KEYWORDS)
|
||||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||||
|
|
@ -26,25 +26,27 @@ if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND )
|
||||||
# Demo: Generator_2
|
# Demo: Generator_2
|
||||||
#--------------------------------
|
#--------------------------------
|
||||||
# UI files (Qt Designer files)
|
# 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)
|
# 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
|
# use the Qt MOC preprocessor on classes that derives from QObject
|
||||||
|
|
||||||
# The executable itself.
|
# 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
|
target_link_libraries(Generator_2 PRIVATE CGAL::CGAL CGAL::CGAL_Qt5 Qt5::Gui)
|
||||||
CGAL::CGAL CGAL::CGAL_Qt5 Qt5::Gui )
|
|
||||||
|
|
||||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
cgal_add_compilation_test(Generator_2)
|
cgal_add_compilation_test(Generator_2)
|
||||||
else()
|
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()
|
endif()
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue