mirror of https://github.com/CGAL/cgal
fix dependencies
This commit is contained in:
parent
40e624c0ae
commit
4f9791a40b
|
|
@ -5,21 +5,10 @@ find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Core)
|
||||||
find_package(LEDA QUIET)
|
find_package(LEDA QUIET)
|
||||||
|
|
||||||
if(CGAL_Core_FOUND OR LEDA_FOUND)
|
if(CGAL_Core_FOUND OR LEDA_FOUND)
|
||||||
if(MSVC)
|
create_single_source_cgal_program("compute_cones.cpp")
|
||||||
# Turn off a boost related warning that appears with VC2015
|
create_single_source_cgal_program("theta_io.cpp")
|
||||||
# boost_1_65_1\boost\graph\named_function_params.hpp(240) :
|
|
||||||
# warning C4172: returning address of local variable or temporary
|
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4172")
|
|
||||||
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()
|
else()
|
||||||
message("NOTICE: This program requires the CGAL_Core library (or LEDA), and will not be compiled.")
|
message("NOTICE: This program requires the CGAL_Core library (or LEDA), and will not be compiled.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
create_single_source_cgal_program("dijkstra_theta.cpp")
|
||||||
|
|
|
||||||
|
|
@ -5,12 +5,16 @@ cmake_minimum_required(VERSION 3.1...3.23)
|
||||||
project(Cone_spanners_2_Tests)
|
project(Cone_spanners_2_Tests)
|
||||||
|
|
||||||
find_package(CGAL REQUIRED COMPONENTS Core)
|
find_package(CGAL REQUIRED COMPONENTS Core)
|
||||||
|
find_package(LEDA QUIET)
|
||||||
|
|
||||||
# create a target per cppfile
|
create_single_source_cgal_program("cones_inexact.cpp")
|
||||||
file(
|
create_single_source_cgal_program("theta_inexact.cpp")
|
||||||
GLOB cppfiles
|
create_single_source_cgal_program("yao_inexact.cpp")
|
||||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
if(CGAL_Core_FOUND OR LEDA_FOUND)
|
||||||
foreach(cppfile ${cppfiles})
|
create_single_source_cgal_program("cones_exact.cpp")
|
||||||
create_single_source_cgal_program("${cppfile}")
|
create_single_source_cgal_program("theta_exact.cpp")
|
||||||
endforeach()
|
create_single_source_cgal_program("yao_exact.cpp")
|
||||||
|
else()
|
||||||
|
message("NOTICE: Some tests require the CGAL_Core library (or LEDA), and will not be compiled.")
|
||||||
|
endif()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue