mirror of https://github.com/CGAL/cgal
Tell cmake to build those tests...
This commit is contained in:
parent
82fa63d720
commit
bf2940de3d
|
|
@ -18,13 +18,20 @@ find_package(CGAL REQUIRED)
|
|||
find_package(Eigen3)
|
||||
include(CGAL_Eigen3_support)
|
||||
if(TARGET CGAL::Eigen3_support)
|
||||
create_single_source_cgal_program("Epick_d.cpp")
|
||||
target_link_libraries(Epick_d PUBLIC CGAL::Eigen3_support)
|
||||
file(
|
||||
GLOB cppfiles
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
foreach(cppfile ${cppfiles})
|
||||
get_filename_component(target ${cppfile} NAME_WE)
|
||||
create_single_source_cgal_program("${cppfile}")
|
||||
target_link_libraries(${target} PUBLIC CGAL::Eigen3_support)
|
||||
endforeach()
|
||||
else()
|
||||
|
||||
message(
|
||||
STATUS
|
||||
"NOTICE: This program requires the Eigen3 library, and will not be compiled."
|
||||
"NOTICE: These programs require the Eigen3 library, and will not be compiled."
|
||||
)
|
||||
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Reference in New Issue