mirror of https://github.com/CGAL/cgal
Add compilation tests for demos
This commit is contained in:
parent
49a138a9a4
commit
bbee705221
|
|
@ -71,6 +71,8 @@ if(CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND AND QGLVIEWER_FO
|
||||||
|
|
||||||
add_to_cached_list( CGAL_EXECUTABLE_TARGETS AABB_demo )
|
add_to_cached_list( CGAL_EXECUTABLE_TARGETS AABB_demo )
|
||||||
|
|
||||||
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
|
cgal_add_compilation_test(AABB_demo)
|
||||||
|
|
||||||
else (CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND AND QGLVIEWER_FOUND)
|
else (CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND AND QGLVIEWER_FOUND)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,9 @@ if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND AND QGLVIEWER_
|
||||||
target_link_libraries( Alpha_shape_3 ${QT_LIBRARIES} ${QGLVIEWER_LIBRARIES} )
|
target_link_libraries( Alpha_shape_3 ${QT_LIBRARIES} ${QGLVIEWER_LIBRARIES} )
|
||||||
target_link_libraries( Alpha_shape_3 ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY})
|
target_link_libraries( Alpha_shape_3 ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY})
|
||||||
|
|
||||||
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
|
cgal_add_compilation_test(Alpha_shapes_3)
|
||||||
|
|
||||||
else()
|
else()
|
||||||
|
|
||||||
message(STATUS "NOTICE: This demo requires CGAL, the QGLViewer, OpenGL and Qt5, and will not be compiled.")
|
message(STATUS "NOTICE: This demo requires CGAL, the QGLViewer, OpenGL and Qt5, and will not be compiled.")
|
||||||
|
|
|
||||||
|
|
@ -77,6 +77,8 @@ if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND AND CGAL_Core_FOUND)
|
||||||
|
|
||||||
add_to_cached_list( CGAL_EXECUTABLE_TARGETS arrangement_2 )
|
add_to_cached_list( CGAL_EXECUTABLE_TARGETS arrangement_2 )
|
||||||
|
|
||||||
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
|
cgal_add_compilation_test(arrangement_2)
|
||||||
else()
|
else()
|
||||||
|
|
||||||
message(STATUS "NOTICE: This demo requires CGAL, CGAL-Core and Qt5, and will not be compiled.")
|
message(STATUS "NOTICE: This demo requires CGAL, CGAL-Core and Qt5, and will not be compiled.")
|
||||||
|
|
|
||||||
|
|
@ -141,6 +141,12 @@ if ( CGAL_FOUND )
|
||||||
add_to_cached_list(CGAL_EXECUTABLE_TARGETS simple_triangulation)
|
add_to_cached_list(CGAL_EXECUTABLE_TARGETS simple_triangulation)
|
||||||
target_link_libraries(simple_triangulation ${IPE_LIBRARIES})
|
target_link_libraries(simple_triangulation ${IPE_LIBRARIES})
|
||||||
|
|
||||||
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
|
|
||||||
|
foreach(target ${CGAL_IPELETS} simple_triangulation)
|
||||||
|
cgal_add_compilation_test(${target})
|
||||||
|
endforeach()
|
||||||
|
|
||||||
else()
|
else()
|
||||||
message(STATUS "NOTICE: This program requires the Ipe include files and library, and will not be compiled.")
|
message(STATUS "NOTICE: This program requires the Ipe include files and library, and will not be compiled.")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,9 @@ if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND AND QGLVIEWER_
|
||||||
target_link_libraries( Circular_kernel_3 ${QT_LIBRARIES} ${QGLVIEWER_LIBRARIES} )
|
target_link_libraries( Circular_kernel_3 ${QT_LIBRARIES} ${QGLVIEWER_LIBRARIES} )
|
||||||
target_link_libraries( Circular_kernel_3 ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY})
|
target_link_libraries( Circular_kernel_3 ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY})
|
||||||
|
|
||||||
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
|
cgal_add_compilation_test(Circular_kernel_3)
|
||||||
|
|
||||||
else()
|
else()
|
||||||
|
|
||||||
message(STATUS "NOTICE: This demo requires CGAL, the QGLViewer, OpenGL and Qt5, and will not be compiled.")
|
message(STATUS "NOTICE: This demo requires CGAL, the QGLViewer, OpenGL and Qt5, and will not be compiled.")
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,9 @@ target_link_libraries( Alpha_shapes_2 ${QT_LIBRARIES} )
|
||||||
# Link with CGAL
|
# Link with CGAL
|
||||||
target_link_libraries( Alpha_shapes_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})
|
target_link_libraries( Alpha_shapes_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})
|
||||||
|
|
||||||
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
|
cgal_add_compilation_test(Alpha_shapes_2)
|
||||||
|
|
||||||
else()
|
else()
|
||||||
|
|
||||||
message(STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
message(STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,9 @@ target_link_libraries( Apollonius_graph_2 ${QT_LIBRARIES} )
|
||||||
# Link with CGAL
|
# Link with CGAL
|
||||||
target_link_libraries( Apollonius_graph_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})
|
target_link_libraries( Apollonius_graph_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})
|
||||||
|
|
||||||
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
|
cgal_add_compilation_test(Apollonius_graph_2)
|
||||||
|
|
||||||
else()
|
else()
|
||||||
|
|
||||||
message(STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
message(STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,9 @@ target_link_libraries( Bounding_volumes ${QT_LIBRARIES} )
|
||||||
# Link with CGAL
|
# Link with CGAL
|
||||||
target_link_libraries( Bounding_volumes ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})
|
target_link_libraries( Bounding_volumes ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})
|
||||||
|
|
||||||
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
|
cgal_add_compilation_test(Bounding_volumes)
|
||||||
|
|
||||||
else()
|
else()
|
||||||
|
|
||||||
message(STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
message(STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,9 @@ if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND )
|
||||||
# Link with CGAL
|
# Link with CGAL
|
||||||
target_link_libraries( Circular_kernel_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})
|
target_link_libraries( Circular_kernel_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})
|
||||||
|
|
||||||
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
|
cgal_add_compilation_test(Circular_kernel_2)
|
||||||
|
|
||||||
else()
|
else()
|
||||||
|
|
||||||
message(STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
message(STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,8 @@ if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND )
|
||||||
# And with CGAL libraries
|
# And with CGAL libraries
|
||||||
target_link_libraries( Generator_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )
|
target_link_libraries( Generator_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )
|
||||||
|
|
||||||
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
|
cgal_add_compilation_test(Generator_2)
|
||||||
else()
|
else()
|
||||||
|
|
||||||
message(STATUS "NOTICE: This demo requires CGAL, and Qt5, and will not be compiled.")
|
message(STATUS "NOTICE: This demo requires CGAL, and Qt5, and will not be compiled.")
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,8 @@ if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND )
|
||||||
# Link with CGAL
|
# Link with CGAL
|
||||||
target_link_libraries( min ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})
|
target_link_libraries( min ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})
|
||||||
|
|
||||||
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
|
cgal_add_compilation_test(min)
|
||||||
else()
|
else()
|
||||||
|
|
||||||
message(STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
message(STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,9 @@ target_link_libraries( L1_voronoi_diagram_2 ${QT_LIBRARIES} )
|
||||||
# Link with CGAL
|
# Link with CGAL
|
||||||
target_link_libraries( L1_voronoi_diagram_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})
|
target_link_libraries( L1_voronoi_diagram_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})
|
||||||
|
|
||||||
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
|
cgal_add_compilation_test(L1_voronoi_diagram_2)
|
||||||
|
|
||||||
else()
|
else()
|
||||||
|
|
||||||
message(STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
message(STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,8 @@ if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND )
|
||||||
# And with CGAL libraries
|
# And with CGAL libraries
|
||||||
target_link_libraries( Largest_empty_rectangle_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )
|
target_link_libraries( Largest_empty_rectangle_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )
|
||||||
|
|
||||||
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
|
cgal_add_compilation_test(Largest_empty_rectangle_2)
|
||||||
else()
|
else()
|
||||||
|
|
||||||
message(STATUS "NOTICE: This demo requires CGAL, and Qt5, and will not be compiled.")
|
message(STATUS "NOTICE: This demo requires CGAL, and Qt5, and will not be compiled.")
|
||||||
|
|
|
||||||
|
|
@ -61,6 +61,9 @@ add_to_cached_list( CGAL_EXECUTABLE_TARGETS Periodic_2_Delaunay_triangulation_2
|
||||||
target_link_libraries( Periodic_2_Delaunay_triangulation_2 ${QT_LIBRARIES} )
|
target_link_libraries( Periodic_2_Delaunay_triangulation_2 ${QT_LIBRARIES} )
|
||||||
# Link with CGAL
|
# Link with CGAL
|
||||||
target_link_libraries( Periodic_2_Delaunay_triangulation_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})
|
target_link_libraries( Periodic_2_Delaunay_triangulation_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})
|
||||||
|
|
||||||
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
|
cgal_add_compilation_test(Periodic_2_Delaunay_triangulation_2)
|
||||||
else()
|
else()
|
||||||
|
|
||||||
message(STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
message(STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,8 @@ if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND )
|
||||||
# And with CGAL libraries
|
# And with CGAL libraries
|
||||||
target_link_libraries( Polygon_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )
|
target_link_libraries( Polygon_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )
|
||||||
|
|
||||||
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
|
cgal_add_compilation_test(Polygon_2)
|
||||||
else()
|
else()
|
||||||
|
|
||||||
message(STATUS "NOTICE: This demo requires CGAL, CGAL_Core, and Qt5, and will not be compiled.")
|
message(STATUS "NOTICE: This demo requires CGAL, CGAL_Core, and Qt5, and will not be compiled.")
|
||||||
|
|
|
||||||
|
|
@ -52,6 +52,8 @@ target_link_libraries( Segment_voronoi_2 ${QT_LIBRARIES} )
|
||||||
# Link with CGAL
|
# Link with CGAL
|
||||||
target_link_libraries( Segment_voronoi_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})
|
target_link_libraries( Segment_voronoi_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})
|
||||||
|
|
||||||
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
|
cgal_add_compilation_test(Segment_voronoi_2)
|
||||||
|
|
||||||
else()
|
else()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,8 @@ target_link_libraries( Segment_voronoi_linf_2 ${QT_LIBRARIES} )
|
||||||
# Link with CGAL
|
# Link with CGAL
|
||||||
target_link_libraries( Segment_voronoi_linf_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})
|
target_link_libraries( Segment_voronoi_linf_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})
|
||||||
|
|
||||||
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
|
cgal_add_compilation_test(Segment_voronoi_linf_2)
|
||||||
else()
|
else()
|
||||||
|
|
||||||
message(STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
message(STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,9 @@ target_link_libraries( Snap_rounding_2 ${QT_LIBRARIES} )
|
||||||
# Link with CGAL
|
# Link with CGAL
|
||||||
target_link_libraries( Snap_rounding_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})
|
target_link_libraries( Snap_rounding_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})
|
||||||
|
|
||||||
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
|
cgal_add_compilation_test(Snap_rounding_2)
|
||||||
|
|
||||||
else()
|
else()
|
||||||
|
|
||||||
message(STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
message(STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,8 @@ if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND )
|
||||||
# And with CGAL libraries
|
# And with CGAL libraries
|
||||||
target_link_libraries( Spatial_searching_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )
|
target_link_libraries( Spatial_searching_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )
|
||||||
|
|
||||||
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
|
cgal_add_compilation_test(Spatial_searching_2)
|
||||||
else()
|
else()
|
||||||
|
|
||||||
message(STATUS "NOTICE: This demo requires CGAL, and Qt5, and will not be compiled.")
|
message(STATUS "NOTICE: This demo requires CGAL, and Qt5, and will not be compiled.")
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,9 @@ target_link_libraries( Stream_lines_2 ${QT_LIBRARIES} )
|
||||||
# Link with CGAL
|
# Link with CGAL
|
||||||
target_link_libraries( Stream_lines_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})
|
target_link_libraries( Stream_lines_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})
|
||||||
|
|
||||||
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
|
cgal_add_compilation_test(Stream_lines_2)
|
||||||
|
|
||||||
else()
|
else()
|
||||||
|
|
||||||
message(STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
message(STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||||
|
|
|
||||||
|
|
@ -62,3 +62,12 @@ target_link_libraries(Regular_triangulation_2
|
||||||
PRIVATE CGAL::CGAL CGAL::CGAL_Qt5 CGAL::CGAL_Qt5_extras Qt5::Widgets)
|
PRIVATE CGAL::CGAL CGAL::CGAL_Qt5 CGAL::CGAL_Qt5_extras Qt5::Widgets)
|
||||||
|
|
||||||
add_to_cached_list( CGAL_EXECUTABLE_TARGETS Regular_triangulation_2 )
|
add_to_cached_list( CGAL_EXECUTABLE_TARGETS Regular_triangulation_2 )
|
||||||
|
|
||||||
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
|
foreach(target
|
||||||
|
Constrained_Delaunay_triangulation_2
|
||||||
|
Delaunay_triangulation_2
|
||||||
|
Regular_triangulation_2)
|
||||||
|
cgal_add_compilation_test(${target})
|
||||||
|
endforeach()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,9 @@ function(create_single_source_cgal_program firstfile )
|
||||||
|
|
||||||
if(NOT NO_TESTING)
|
if(NOT NO_TESTING)
|
||||||
cgal_add_test(${exe_name})
|
cgal_add_test(${exe_name})
|
||||||
endif(NOT NO_TESTING)
|
else()
|
||||||
|
cgal_add_test(${exe_name} NO_EXECUTION)
|
||||||
|
endif()
|
||||||
|
|
||||||
add_to_cached_list( CGAL_EXECUTABLE_TARGETS ${exe_name} )
|
add_to_cached_list( CGAL_EXECUTABLE_TARGETS ${exe_name} )
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -124,7 +124,7 @@ function(cgal_add_test exe_name)
|
||||||
cgal_add_compilation_test(${exe_name})
|
cgal_add_compilation_test(${exe_name})
|
||||||
|
|
||||||
cmake_parse_arguments("cgal_add_test" # prefix
|
cmake_parse_arguments("cgal_add_test" # prefix
|
||||||
"" # optional arguments
|
"NO_EXECUTION" # optional arguments
|
||||||
"TEST_NAME" # single arguments
|
"TEST_NAME" # single arguments
|
||||||
"ARGUMENTS" # multivalue arguments
|
"ARGUMENTS" # multivalue arguments
|
||||||
${ARGN})
|
${ARGN})
|
||||||
|
|
@ -135,7 +135,7 @@ function(cgal_add_test exe_name)
|
||||||
set(test_name "execution___of__${exe_name}")
|
set(test_name "execution___of__${exe_name}")
|
||||||
endif()
|
endif()
|
||||||
# message(" test_name: ${test_name}")
|
# message(" test_name: ${test_name}")
|
||||||
if(TEST ${test_name})
|
if(cgal_add_test_NO_EXECUTION OR TEST ${test_name})
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
# message("Add test ${test_name}")
|
# message("Add test ${test_name}")
|
||||||
|
|
@ -197,3 +197,6 @@ function(cgal_add_test exe_name)
|
||||||
set_property(TEST "${test_name}"
|
set_property(TEST "${test_name}"
|
||||||
APPEND PROPERTY LABELS "${PROJECT_NAME}")
|
APPEND PROPERTY LABELS "${PROJECT_NAME}")
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
function(CGAL_add_compilation_tests_for_all_targets)
|
||||||
|
endfunction()
|
||||||
|
|
|
||||||
|
|
@ -81,4 +81,6 @@ target_link_libraries(Linear_cell_complex_3_demo ${QT_LIBRARIES}
|
||||||
target_link_libraries(Linear_cell_complex_3_demo ${OPENGL_gl_LIBRARY}
|
target_link_libraries(Linear_cell_complex_3_demo ${OPENGL_gl_LIBRARY}
|
||||||
${OPENGL_glu_LIBRARY} )
|
${OPENGL_glu_LIBRARY} )
|
||||||
|
|
||||||
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
|
cgal_add_compilation_test(Linear_cell_complex_3_demo)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,10 @@ if ( CGAL_FOUND )
|
||||||
target_link_libraries(mesh ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )
|
target_link_libraries(mesh ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )
|
||||||
add_to_cached_list( CGAL_EXECUTABLE_TARGETS mesh )
|
add_to_cached_list( CGAL_EXECUTABLE_TARGETS mesh )
|
||||||
|
|
||||||
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
|
cgal_add_compilation_test(conform)
|
||||||
|
cgal_add_compilation_test(mesh)
|
||||||
|
|
||||||
else()
|
else()
|
||||||
|
|
||||||
message(STATUS "NOTICE: This demo requires CGAL and will not be compiled.")
|
message(STATUS "NOTICE: This demo requires CGAL and will not be compiled.")
|
||||||
|
|
|
||||||
|
|
@ -102,6 +102,8 @@ if(CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND)
|
||||||
|
|
||||||
add_to_cached_list( CGAL_EXECUTABLE_TARGETS Otr2_demo )
|
add_to_cached_list( CGAL_EXECUTABLE_TARGETS Otr2_demo )
|
||||||
|
|
||||||
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
|
cgal_add_compilation_test(Otr2_demo)
|
||||||
else (CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND )
|
else (CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND )
|
||||||
|
|
||||||
set(OTR2_MISSING_DEPS "")
|
set(OTR2_MISSING_DEPS "")
|
||||||
|
|
|
||||||
|
|
@ -74,6 +74,8 @@ if (CGAL_FOUND AND CGAL_Qt5_FOUND AND OPENGL_FOUND AND Qt5_FOUND AND QGLVIEWER_F
|
||||||
# Link the executable to CGAL and third-party libraries
|
# Link the executable to CGAL and third-party libraries
|
||||||
target_link_libraries(periodic_3_triangulation_3_demo ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} ${QT_LIBRARIES} ${QGLVIEWER_LIBRARIES} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY})
|
target_link_libraries(periodic_3_triangulation_3_demo ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} ${QT_LIBRARIES} ${QGLVIEWER_LIBRARIES} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY})
|
||||||
|
|
||||||
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
|
cgal_add_compilation_test(periodic_3_triangulation_3_demo)
|
||||||
else ()
|
else ()
|
||||||
|
|
||||||
set(PERIODIC_TRIANGULATION_MISSING_DEPS "")
|
set(PERIODIC_TRIANGULATION_MISSING_DEPS "")
|
||||||
|
|
|
||||||
|
|
@ -65,6 +65,8 @@ if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND AND QGLVIEWER_
|
||||||
target_link_libraries( Periodic_Lloyd_3 ${QT_LIBRARIES} ${QGLVIEWER_LIBRARIES} )
|
target_link_libraries( Periodic_Lloyd_3 ${QT_LIBRARIES} ${QGLVIEWER_LIBRARIES} )
|
||||||
target_link_libraries( Periodic_Lloyd_3 ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY})
|
target_link_libraries( Periodic_Lloyd_3 ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY})
|
||||||
|
|
||||||
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
|
cgal_add_compilation_test(Periodic_Lloyd_3)
|
||||||
else( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND AND QGLVIEWER_FOUND AND QT_QCOLLECTIONGENERATOR_EXECUTABLE )
|
else( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND AND QGLVIEWER_FOUND AND QT_QCOLLECTIONGENERATOR_EXECUTABLE )
|
||||||
|
|
||||||
set(PERIODIC_LLOYD_MISSING_DEPS "")
|
set(PERIODIC_LLOYD_MISSING_DEPS "")
|
||||||
|
|
|
||||||
|
|
@ -218,6 +218,7 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND AND QGLVIEWER_FOUND)
|
||||||
target_link_libraries(${item_name}
|
target_link_libraries(${item_name}
|
||||||
PUBLIC demo_framework ${CGAL_LIBRARIES} ${Boost_LIBRARIES}
|
PUBLIC demo_framework ${CGAL_LIBRARIES} ${Boost_LIBRARIES}
|
||||||
Qt5::OpenGL Qt5::Gui Qt5::Script Qt5::Widgets)
|
Qt5::OpenGL Qt5::Gui Qt5::Script Qt5::Widgets)
|
||||||
|
cgal_add_compilation_test(${item_name})
|
||||||
endmacro(add_item)
|
endmacro(add_item)
|
||||||
|
|
||||||
add_item(scene_c2t3_item Scene_c2t3_item.cpp)
|
add_item(scene_c2t3_item Scene_c2t3_item.cpp)
|
||||||
|
|
@ -329,6 +330,7 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND AND QGLVIEWER_FOUND)
|
||||||
add_executable ( Polyhedron_3 Polyhedron_3.cpp )
|
add_executable ( Polyhedron_3 Polyhedron_3.cpp )
|
||||||
target_link_libraries( Polyhedron_3 PRIVATE polyhedron_demo )
|
target_link_libraries( Polyhedron_3 PRIVATE polyhedron_demo )
|
||||||
add_to_cached_list( CGAL_EXECUTABLE_TARGETS Polyhedron_3 )
|
add_to_cached_list( CGAL_EXECUTABLE_TARGETS Polyhedron_3 )
|
||||||
|
cgal_add_compilation_test(polyhedron_demo)
|
||||||
|
|
||||||
if( POLYHEDRON_QTSCRIPT_DEBUGGER )
|
if( POLYHEDRON_QTSCRIPT_DEBUGGER )
|
||||||
if(TARGET Qt5::ScriptTools)
|
if(TARGET Qt5::ScriptTools)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
include(AddFileDependencies)
|
include(AddFileDependencies)
|
||||||
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
|
|
||||||
macro(polyhedron_demo_plugin plugin_name plugin_implementation_base_name)
|
macro(polyhedron_demo_plugin plugin_name plugin_implementation_base_name)
|
||||||
list_split(option ARGN_TAIL ${ARGN} )
|
list_split(option ARGN_TAIL ${ARGN} )
|
||||||
|
|
@ -25,6 +26,7 @@ include(AddFileDependencies)
|
||||||
set_property(TARGET ${plugin_name}
|
set_property(TARGET ${plugin_name}
|
||||||
PROPERTY LIBRARY_OUTPUT_DIRECTORY
|
PROPERTY LIBRARY_OUTPUT_DIRECTORY
|
||||||
"${CGAL_POLYHEDRON_DEMO_PLUGINS_DIR}")
|
"${CGAL_POLYHEDRON_DEMO_PLUGINS_DIR}")
|
||||||
|
cgal_add_compilation_test(${plugin_name})
|
||||||
|
|
||||||
add_to_cached_list( CGAL_EXECUTABLE_TARGETS ${plugin_name} )
|
add_to_cached_list( CGAL_EXECUTABLE_TARGETS ${plugin_name} )
|
||||||
# Link with Qt
|
# Link with Qt
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,9 @@ target_link_libraries( Polyline_simplification_2 ${CGAL_LIBRARIES} ${CGAL_3RD_P
|
||||||
|
|
||||||
add_to_cached_list( CGAL_EXECUTABLE_TARGETS Polyline_simplification_2 )
|
add_to_cached_list( CGAL_EXECUTABLE_TARGETS Polyline_simplification_2 )
|
||||||
|
|
||||||
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
|
cgal_add_compilation_test(Polyline_simplification_2)
|
||||||
|
|
||||||
else()
|
else()
|
||||||
|
|
||||||
message(STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
message(STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||||
|
|
|
||||||
|
|
@ -62,6 +62,8 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND AND QGLVIEWER_FOUND)
|
||||||
|
|
||||||
add_to_cached_list( CGAL_EXECUTABLE_TARGETS PCA_demo )
|
add_to_cached_list( CGAL_EXECUTABLE_TARGETS PCA_demo )
|
||||||
|
|
||||||
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
|
cgal_add_compilation_test(PCA_demo)
|
||||||
|
|
||||||
else (CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND AND QGLVIEWER_FOUND)
|
else (CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND AND QGLVIEWER_FOUND)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -121,6 +121,9 @@ if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND CGAL_ImageIO_FOUND)
|
||||||
|
|
||||||
target_link_libraries( ${prj} ${QT_LIBRARIES} ${QGLVIEWER_LIBRARIES} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} ${VTK_LIBS})
|
target_link_libraries( ${prj} ${QT_LIBRARIES} ${QGLVIEWER_LIBRARIES} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} ${VTK_LIBS})
|
||||||
|
|
||||||
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
|
cgal_add_compilation_test(${prj})
|
||||||
|
|
||||||
else( QGLVIEWER_FOUND AND Qt5_FOUND AND OPENGL_FOUND AND OPENGL_GLU_FOUND )
|
else( QGLVIEWER_FOUND AND Qt5_FOUND AND OPENGL_FOUND AND OPENGL_GLU_FOUND )
|
||||||
message(STATUS "NOTICE: This demo needs libQGLViewer, and will not be compiled.")
|
message(STATUS "NOTICE: This demo needs libQGLViewer, and will not be compiled.")
|
||||||
endif( QGLVIEWER_FOUND AND Qt5_FOUND AND OPENGL_FOUND AND OPENGL_GLU_FOUND )
|
endif( QGLVIEWER_FOUND AND Qt5_FOUND AND OPENGL_FOUND AND OPENGL_GLU_FOUND )
|
||||||
|
|
|
||||||
|
|
@ -76,6 +76,9 @@ if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND AND QGLVIEWER_
|
||||||
CGAL_target_use_TBB(T3_demo)
|
CGAL_target_use_TBB(T3_demo)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
|
cgal_add_compilation_test(T3_demo)
|
||||||
|
|
||||||
else( CGAL_FOUND AND Qt5_FOUND AND OPENGL_FOUND AND QGLVIEWER_FOUND )
|
else( CGAL_FOUND AND Qt5_FOUND AND OPENGL_FOUND AND QGLVIEWER_FOUND )
|
||||||
|
|
||||||
set(TRIANGULATION_3_MISSING_DEPS "")
|
set(TRIANGULATION_3_MISSING_DEPS "")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue