Re-add include({CGAL_USE_FILE} ) in each CMakeLists.txt where CGAL is used with some component.

This commit is contained in:
Guillaume Damiand 2018-10-18 14:38:42 +02:00
parent a1474a74d2
commit 0c2dcf7208
45 changed files with 74 additions and 3 deletions

View File

@ -10,6 +10,8 @@ find_package(CGAL QUIET COMPONENTS Core)
if ( CGAL_FOUND )
include(${CGAL_USE_FILE})
# create a target per cppfile
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
foreach(cppfile ${cppfiles})

View File

@ -11,6 +11,7 @@ endif()
if( CGAL_FOUND AND MPFI_FOUND)
include(${CGAL_USE_FILE})
include( ${MPFI_USE_FILE} )
include( CGAL_VersionUtils )

View File

@ -37,6 +37,7 @@ endif()
include_directories( BEFORE include )
# include for local package
include(${CGAL_USE_FILE})
# Creating entries for all .cpp/.C files with "main" routine
# ##########################################################

View File

@ -10,6 +10,8 @@ find_package(CGAL QUIET COMPONENTS Core )
if ( CGAL_FOUND )
include(${CGAL_USE_FILE})
# create a target per cppfile
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
foreach(cppfile ${cppfiles})

View File

@ -14,6 +14,7 @@ find_package(GMP QUIET)
if ( CGAL_FOUND AND GMP_FOUND )
include(${CGAL_USE_FILE})
include( CGAL_VersionUtils )
get_dependency_version( GMP )

View File

@ -10,6 +10,8 @@ find_package(CGAL QUIET COMPONENTS Core)
if ( CGAL_FOUND )
include(${CGAL_USE_FILE})
# create a target per cppfile
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
foreach(cppfile ${cppfiles})

View File

@ -12,6 +12,8 @@ find_package(CGAL QUIET COMPONENTS Core)
if ( CGAL_FOUND )
include(${CGAL_USE_FILE})
if(COMMAND target_compile_options)
# Since CMake-2.8.12: New CMake script, that defines the targets and
# the CTest test cases.

View File

@ -6,10 +6,12 @@ project( Boolean_set_operations_2_Examples )
cmake_minimum_required(VERSION 2.8.10)
find_package(CGAL QUIET COMPONENTS Core )
find_package(CGAL QUIET COMPONENTS Core)
if ( CGAL_FOUND )
include(${CGAL_USE_FILE})
# create a target per cppfile
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
foreach(cppfile ${cppfiles})

View File

@ -10,6 +10,8 @@ find_package(CGAL QUIET COMPONENTS Core )
if ( CGAL_FOUND )
include(${CGAL_USE_FILE})
# Use Eigen
find_package(Eigen3 3.1.0 QUIET) #(3.1.0 or greater)
if (EIGEN3_FOUND)

View File

@ -29,6 +29,7 @@ endif()
# include for local directory
# include for local package
include(${CGAL_USE_FILE})
# Creating entries for all .cpp/.C files with "main" routine
# ##########################################################

View File

@ -8,6 +8,8 @@ cmake_minimum_required(VERSION 2.8.11)
find_package(CGAL QUIET COMPONENTS ImageIO )
if(CGAL_ImageIO_FOUND)
include(${CGAL_USE_FILE})
create_single_source_cgal_program( "convert_raw_image_to_inr.cpp" )
create_single_source_cgal_program( "test_imageio.cpp" )
else()

View File

@ -9,6 +9,7 @@ cmake_minimum_required(VERSION 2.8.11)
find_package(CGAL QUIET COMPONENTS ImageIO )
if ( CGAL_FOUND )
include(${CGAL_USE_FILE})
if (WITH_CGAL_ImageIO)
create_single_source_cgal_program( "test_trilinear_interpolation.cpp" )

View File

@ -24,6 +24,8 @@ find_package(CGAL QUIET COMPONENTS Core)
if ( CGAL_FOUND )
include(${CGAL_USE_FILE})
find_package(Eigen3 3.1.0) #(requires 3.1.0 or greater)
if (EIGEN3_FOUND)
include( ${EIGEN3_USE_FILE} )

View File

@ -10,6 +10,8 @@ find_package(CGAL QUIET COMPONENTS Core )
if ( CGAL_FOUND )
include(${CGAL_USE_FILE})
include_directories (BEFORE include)
include_directories (BEFORE ../../../Kernel_23/test/Kernel_23/include)
include_directories (BEFORE ../Kernel_23/include)

View File

@ -9,6 +9,7 @@ cmake_minimum_required(VERSION 2.8.10)
find_package(CGAL QUIET COMPONENTS Core)
if ( CGAL_FOUND AND CGAL_Core_FOUND)
include(${CGAL_USE_FILE})
if (MSVC)
# Turn off a boost related warning that appears with VC2015

View File

@ -9,7 +9,7 @@ cmake_minimum_required(VERSION 2.8.10)
find_package(CGAL QUIET COMPONENTS Core)
if ( CGAL_FOUND AND CGAL_Core_FOUND)
include(${CGAL_USE_FILE})
include_directories (BEFORE "include")
# create a target per cppfile

View File

@ -10,6 +10,8 @@ find_package(CGAL QUIET COMPONENTS Core )
if ( CGAL_FOUND )
include(${CGAL_USE_FILE})
# create a target per cppfile
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
foreach(cppfile ${cppfiles})

View File

@ -10,6 +10,8 @@ find_package(CGAL QUIET COMPONENTS Core )
if ( CGAL_FOUND )
include(${CGAL_USE_FILE})
# create a target per cppfile
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
foreach(cppfile ${cppfiles})

View File

@ -13,6 +13,8 @@ find_package(CGAL QUIET COMPONENTS Core )
if ( CGAL_FOUND )
include(${CGAL_USE_FILE})
add_executable( bench_orientation_3 "orientation_3.cpp" )
target_link_libraries(bench_orientation_3 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )

View File

@ -11,6 +11,8 @@ find_package(CGAL QUIET COMPONENTS Core )
if ( CGAL_FOUND )
include(${CGAL_USE_FILE})
find_package(Boost REQUIRED program_options)
include_directories(${Boost_PROGRAM_OPTIONS_INCLUDE_DIR})
add_definitions( "-DCGAL_USE_BOOST_PROGRAM_OPTIONS" )

View File

@ -10,6 +10,8 @@ find_package(CGAL QUIET COMPONENTS Core )
if ( CGAL_FOUND )
include(${CGAL_USE_FILE})
# create a target per cppfile
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
foreach(cppfile ${cppfiles})

View File

@ -10,6 +10,7 @@ find_package(CGAL QUIET COMPONENTS Core)
if ( CGAL_FOUND AND CGAL_Core_FOUND)
include(${CGAL_USE_FILE})
include_directories (BEFORE "include")
# create a target per cppfile

View File

@ -10,6 +10,8 @@ find_package(CGAL QUIET COMPONENTS Core)
if ( CGAL_FOUND )
include(${CGAL_USE_FILE})
# create a target per cppfile
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
foreach(cppfile ${cppfiles})

View File

@ -10,6 +10,8 @@ find_package(CGAL QUIET COMPONENTS Core )
if ( CGAL_FOUND )
include(${CGAL_USE_FILE})
# create a target per cppfile
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
foreach(cppfile ${cppfiles})

View File

@ -21,6 +21,8 @@ find_package(CGAL QUIET COMPONENTS Core )
if ( CGAL_FOUND )
include(${CGAL_USE_FILE})
# create a target per cppfile
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
foreach(cppfile ${cppfiles})

View File

@ -10,6 +10,8 @@ find_package(CGAL QUIET COMPONENTS Core)
if ( CGAL_FOUND )
include(${CGAL_USE_FILE})
# create a target per cppfile
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
foreach(cppfile ${cppfiles})

View File

@ -12,6 +12,7 @@ find_package( CGAL QUIET COMPONENTS Core )
if ( CGAL_FOUND )
include(${CGAL_USE_FILE})
include( CGAL_VersionUtils )
include_directories( BEFORE include )

View File

@ -10,6 +10,7 @@ find_package(CGAL QUIET COMPONENTS Core )
if ( CGAL_FOUND )
include(${CGAL_USE_FILE})
include_directories (BEFORE "include")
create_single_source_cgal_program( "test_p3rt3_as_p3t3.cpp" )

View File

@ -10,6 +10,7 @@ find_package(CGAL QUIET COMPONENTS Core)
if ( CGAL_FOUND )
include(${CGAL_USE_FILE})
include_directories (BEFORE "include")
# create a target per cppfile

View File

@ -11,11 +11,12 @@ find_package(CGAL QUIET COMPONENTS Core )
if ( CGAL_FOUND )
include(${CGAL_USE_FILE})
create_single_source_cgal_program( "copy_n_benchmark.cpp" )
create_single_source_cgal_program( "copy_n_use_case_benchmark.cpp" )
else()
message(STATUS "This program requires the CGAL library, and will not be compiled.")

View File

@ -11,6 +11,8 @@ find_package(CGAL QUIET COMPONENTS Core )
if ( CGAL_FOUND )
include(${CGAL_USE_FILE})
create_single_source_cgal_program( "benchmark.cpp" )
create_single_source_cgal_program( "benchmark_nox.cpp" )
create_single_source_cgal_program( "double.cpp" )

View File

@ -10,6 +10,7 @@ find_package(CGAL QUIET COMPONENTS Core )
if ( CGAL_FOUND )
include(${CGAL_USE_FILE})
include_directories (BEFORE "include")
# create a target per cppfile

View File

@ -11,6 +11,8 @@ find_package(CGAL QUIET COMPONENTS Core )
if ( CGAL_FOUND )
include(${CGAL_USE_FILE})
create_single_source_cgal_program( "sdg-creation-time.cpp" )
create_single_source_cgal_program( "benchmark-gen.cpp" )
create_single_source_cgal_program( "incirc.cpp" )

View File

@ -10,6 +10,7 @@ find_package(CGAL QUIET COMPONENTS Core )
if ( CGAL_FOUND )
include(${CGAL_USE_FILE})
include_directories (BEFORE "include")
# create a target per cppfile

View File

@ -10,6 +10,8 @@ find_package(CGAL QUIET COMPONENTS Core )
if ( CGAL_FOUND )
include(${CGAL_USE_FILE})
find_package(Eigen3 3.1.91) #(requires 3.2.0 or greater)
if (EIGEN3_FOUND)
include( ${EIGEN3_USE_FILE} )

View File

@ -10,6 +10,7 @@ find_package(CGAL QUIET COMPONENTS Core )
if ( CGAL_FOUND )
include(${CGAL_USE_FILE})
include_directories (BEFORE "../include")
create_single_source_cgal_program( "points_in_bbox.cpp" )

View File

@ -11,6 +11,7 @@ find_package(CGAL QUIET COMPONENTS Core )
if ( CGAL_FOUND )
include(${CGAL_USE_FILE})
create_single_source_cgal_program( "simple.cpp" )
else()

View File

@ -10,6 +10,8 @@ find_package(CGAL QUIET COMPONENTS Core )
if ( CGAL_FOUND )
include(${CGAL_USE_FILE})
# create a target per cppfile
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
foreach(cppfile ${cppfiles})

View File

@ -10,6 +10,7 @@ find_package(CGAL QUIET COMPONENTS Core )
if ( CGAL_FOUND )
include(${CGAL_USE_FILE})
include_directories (BEFORE "include")
# create a target per cppfile

View File

@ -7,6 +7,8 @@ find_package(CGAL QUIET COMPONENTS Core )
if ( CGAL_FOUND )
include(${CGAL_USE_FILE})
find_package(Eigen3 3.1.0) #(requires 3.1.0 or greater)
if (EIGEN3_FOUND)
include( ${EIGEN3_USE_FILE} )

View File

@ -11,6 +11,7 @@ find_package(CGAL QUIET COMPONENTS Core )
if ( CGAL_FOUND )
include(${CGAL_USE_FILE})
include_directories (BEFORE "include")
create_single_source_cgal_program( "Surface_mesh_shortest_path_test_1.cpp" )

View File

@ -9,6 +9,8 @@ find_package(CGAL QUIET COMPONENTS ImageIO)
if ( CGAL_FOUND AND CGAL_ImageIO_FOUND )
include(${CGAL_USE_FILE})
create_single_source_cgal_program( "mesh_a_3d_gray_image.cpp" )
create_single_source_cgal_program( "mesh_an_implicit_function.cpp" )

View File

@ -19,6 +19,8 @@ set(WALK 3)
if ( CGAL_FOUND )
include(${CGAL_USE_FILE})
function(compile name source_file point_location traits)
# message(compile ${source_file})
add_executable(${name} ${source_file})

View File

@ -12,6 +12,8 @@ find_package(CGAL QUIET COMPONENTS Core )
if ( CGAL_FOUND )
include(${CGAL_USE_FILE})
else()
message(STATUS "This program requires the CGAL library, and will not be compiled.")

View File

@ -11,6 +11,8 @@ find_package(CGAL QUIET COMPONENTS Core )
if ( CGAL_FOUND )
include(${CGAL_USE_FILE})
find_package(Eigen3 3.1.0)
if (EIGEN3_FOUND)
include( ${EIGEN3_USE_FILE} )