mirror of https://github.com/CGAL/cgal
conditional compilation
This commit is contained in:
parent
7139a34f44
commit
b59250bfeb
|
|
@ -6,11 +6,10 @@ project(Envelope_3_Tests)
|
||||||
|
|
||||||
find_package(CGAL REQUIRED COMPONENTS Core)
|
find_package(CGAL REQUIRED COMPONENTS Core)
|
||||||
|
|
||||||
# create a target per cppfile
|
create_single_source_cgal_program("triangles_test.cpp")
|
||||||
file(
|
|
||||||
GLOB cppfiles
|
if (CGAL_Core_FOUND)
|
||||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
create_single_source_cgal_program("spheres_test.cpp")
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
else()
|
||||||
foreach(cppfile ${cppfiles})
|
message("NOTICE: A test requires CGAL_Core, and will not be compiled.")
|
||||||
create_single_source_cgal_program("${cppfile}")
|
endif()
|
||||||
endforeach()
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
int main ()
|
int main ()
|
||||||
{
|
{
|
||||||
bool UNTESTED_TRAITS_AS_CORE_IS_NOT_ISTALLED;
|
bool UNTESTED_TRAITS_AS_CORE_IS_NOT_INSTALLED;
|
||||||
std::cout << std::endl
|
std::cout << std::endl
|
||||||
<< "WARNING: Core is not installed, "
|
<< "WARNING: Core is not installed, "
|
||||||
<< "skipping the test ..."
|
<< "skipping the test ..."
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue