diff --git a/Kinetic_surface_reconstruction/examples/Kinetic_surface_reconstruction/CMakeLists.txt b/Kinetic_surface_reconstruction/examples/Kinetic_surface_reconstruction/CMakeLists.txt index a7698526392..38b436b6150 100644 --- a/Kinetic_surface_reconstruction/examples/Kinetic_surface_reconstruction/CMakeLists.txt +++ b/Kinetic_surface_reconstruction/examples/Kinetic_surface_reconstruction/CMakeLists.txt @@ -1,39 +1,24 @@ # Created by the script cgal_create_CMakeLists. # 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) project(Kinetic_surface_reconstruction_Examples) -set(CMAKE_CXX_STANDARD 17) - -find_package(CGAL REQUIRED COMPONENTS Core) +find_package(CGAL REQUIRED) include(CGAL_CreateSingleSourceCGALProgram) -find_package(Boost REQUIRED) -if(Boost_FOUND) - message(STATUS "Found Boost") +find_package(Eigen3 3.1.0 REQUIRED) +if(Eigen3_FOUND) + message(STATUS "Found Eigen") + include(CGAL_Eigen_support) - find_package(Eigen3 3.1.0 REQUIRED) - if(Eigen3_FOUND) - message(STATUS "Found Eigen") - include(CGAL_Eigen_support) + set(targets basic building parameters) - set(targets basic building parameters) - - set(project_linked_libraries) - set(project_compilation_definitions) - - foreach(target ${targets}) - create_single_source_cgal_program("${target}.cpp") - if(TARGET ${target}) - target_link_libraries(${target} PUBLIC ${project_linked_libraries} CGAL::Eigen_support) - target_compile_definitions(${target} PUBLIC ${project_compilation_definitions}) - endif() - endforeach() - else() - message(ERROR "This program requires the Eigen library, and will not be compiled.") - endif() + foreach(target ${targets}) + create_single_source_cgal_program("${target}.cpp") + target_link_libraries(${target} PUBLIC CGAL::Eigen_support) + endforeach() else() - message(ERROR "This program requires the Boost library, and will not be compiled.") + message(ERROR "This program requires the Eigen library, and will not be compiled.") endif() diff --git a/Kinetic_surface_reconstruction/test/Kinetic_surface_reconstruction/CMakeLists.txt b/Kinetic_surface_reconstruction/test/Kinetic_surface_reconstruction/CMakeLists.txt index dd3b82ff517..2a2be7cee99 100644 --- a/Kinetic_surface_reconstruction/test/Kinetic_surface_reconstruction/CMakeLists.txt +++ b/Kinetic_surface_reconstruction/test/Kinetic_surface_reconstruction/CMakeLists.txt @@ -1,39 +1,24 @@ # Created by the script cgal_create_CMakeLists. # 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) project(Kinetic_surface_reconstruction_Tests) -set(CMAKE_CXX_STANDARD 17) - -find_package(CGAL REQUIRED COMPONENTS Core) +find_package(CGAL REQUIRED) include(CGAL_CreateSingleSourceCGALProgram) -find_package(Boost REQUIRED) -if(Boost_FOUND) - message(STATUS "Found Boost") +find_package(Eigen3 3.1.0 REQUIRED) +if(Eigen3_FOUND) + message(STATUS "Found Eigen") + include(CGAL_Eigen_support) - find_package(Eigen3 3.1.0 REQUIRED) - if(Eigen3_FOUND) - message(STATUS "Found Eigen") - include(CGAL_Eigen_support) + set(targets ksr_test ksr_reorientation ksr_regularization) - set(targets ksr_test ksr_reorientation ksr_regularization) - - set(project_linked_libraries) - set(project_compilation_definitions) - - foreach(target ${targets}) - create_single_source_cgal_program("${target}.cpp") - if(TARGET ${target}) - target_link_libraries(${target} PUBLIC ${project_linked_libraries} CGAL::Eigen_support) - target_compile_definitions(${target} PUBLIC ${project_compilation_definitions}) - endif() - endforeach() - else() - message(ERROR "This program requires the Eigen library, and will not be compiled.") - endif() + foreach(target ${targets}) + create_single_source_cgal_program("${target}.cpp") + target_link_libraries(${target} PUBLIC CGAL::Eigen_support) + endforeach() else() - message(ERROR "This program requires the Boost library, and will not be compiled.") + message(ERROR "This program requires the Eigen library, and will not be compiled.") endif()