mirror of https://github.com/CGAL/cgal
Re-add include({CGAL_USE_FILE} ) in each CMakeLists.txt where CGAL is used with some component.
This commit is contained in:
parent
a1474a74d2
commit
0c2dcf7208
|
|
@ -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})
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ endif()
|
|||
|
||||
if( CGAL_FOUND AND MPFI_FOUND)
|
||||
|
||||
include(${CGAL_USE_FILE})
|
||||
include( ${MPFI_USE_FILE} )
|
||||
include( CGAL_VersionUtils )
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
# ##########################################################
|
||||
|
|
|
|||
|
|
@ -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})
|
||||
|
|
|
|||
|
|
@ -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 )
|
||||
|
|
|
|||
|
|
@ -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})
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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})
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
# ##########################################################
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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" )
|
||||
|
|
|
|||
|
|
@ -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} )
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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})
|
||||
|
|
|
|||
|
|
@ -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})
|
||||
|
|
|
|||
|
|
@ -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} )
|
||||
|
||||
|
|
|
|||
|
|
@ -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" )
|
||||
|
|
|
|||
|
|
@ -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})
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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})
|
||||
|
|
|
|||
|
|
@ -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})
|
||||
|
|
|
|||
|
|
@ -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})
|
||||
|
|
|
|||
|
|
@ -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})
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ find_package( CGAL QUIET COMPONENTS Core )
|
|||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
include(${CGAL_USE_FILE})
|
||||
include( CGAL_VersionUtils )
|
||||
|
||||
include_directories( BEFORE include )
|
||||
|
|
|
|||
|
|
@ -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" )
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.")
|
||||
|
|
|
|||
|
|
@ -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" )
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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" )
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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} )
|
||||
|
|
|
|||
|
|
@ -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" )
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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})
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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} )
|
||||
|
|
|
|||
|
|
@ -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" )
|
||||
|
|
|
|||
|
|
@ -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" )
|
||||
|
||||
|
|
|
|||
|
|
@ -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})
|
||||
|
|
|
|||
|
|
@ -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.")
|
||||
|
|
|
|||
|
|
@ -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} )
|
||||
|
|
|
|||
Loading…
Reference in New Issue