Added demos to the demos target

This commit is contained in:
Fernando Cacciola 2008-12-18 17:29:36 +00:00
parent 50f70bb31a
commit 24f08fc681
34 changed files with 70 additions and 1 deletions

View File

@ -35,6 +35,8 @@ if ( CGAL_FOUND AND QT3_FOUND AND CGAL_Qt3_FOUND)
Qt_widget_toolbar.cpp Qt_widget_toolbar.moc
Qt_widget_toolbar_layers.cpp Qt_widget_toolbar_layers.moc )
add_to_cached_list( CGAL_EXECUTABLE_TARGETS alpha_shapes_2 )
target_link_libraries( alpha_shapes_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})
else()

View File

@ -35,6 +35,7 @@ if ( CGAL_FOUND AND QT3_FOUND AND CGAL_Qt3_FOUND )
apollonius_graph_2.cpp apollonius_graph_2.moc
qt_file_toolbar.moc qt_layers_toolbar.moc edit_vertex_layer.moc )
add_to_cached_list( CGAL_EXECUTABLE_TARGETS apollonius_graph_2 )
target_link_libraries( apollonius_graph_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )

View File

@ -37,6 +37,9 @@ if ( CGAL_FOUND AND CGAL_Qt3_FOUND AND QT3_FOUND )
MyWindow_overlay.cpp
qt_layer.cpp
)
add_to_cached_list( CGAL_EXECUTABLE_TARGETS arrangement_2 )
target_link_libraries( arrangement_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})
else()

View File

@ -33,6 +33,8 @@ if ( CGAL_FOUND AND CGAL_Qt3_FOUND AND QT3_FOUND )
Qt_widget_locate_layer.cpp
)
add_to_cached_list( CGAL_EXECUTABLE_TARGETS boolean_operations_2 )
target_link_libraries( boolean_operations_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )
else()

View File

@ -37,6 +37,7 @@ if(VTK_FOUND)
if(VTK_USE_QVTK)
include_directories( ${VTK_QT_INCLUDE_DIR} )
add_executable( image_to_vtk_viewer image_to_vtk_viewer.cpp )
add_to_cached_list( CGAL_EXECUTABLE_TARGETS image_to_vtk_viewer )
target_link_libraries( image_to_vtk_viewer
QVTK

View File

@ -25,6 +25,8 @@ if ( CGAL_FOUND AND QT3_FOUND AND CGAL_Qt3_FOUND)
add_executable ( convex_decomposition_3
convex_decomposition_3.cpp )
add_to_cached_list( CGAL_EXECUTABLE_TARGETS convex_decomposition_3 )
target_link_libraries( convex_decomposition_3 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})
else()

View File

@ -34,6 +34,8 @@ if ( CGAL_FOUND AND CGAL_Qt3_FOUND AND QT3_FOUND )
Qt_widget_move_list_point.cpp Qt_widget_move_list_point.moc
)
add_to_cached_list( CGAL_EXECUTABLE_TARGETS convex_hull_2 )
target_link_libraries( convex_hull_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )
else()

View File

@ -30,6 +30,8 @@ if ( CGAL_FOUND AND CGAL_Qt3_FOUND AND QT3_FOUND )
envelope_3.cpp envelope_3.moc
)
add_to_cached_list( CGAL_EXECUTABLE_TARGETS envelope_3 )
target_link_libraries( envelope_3 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )
else()

View File

@ -30,6 +30,8 @@ if ( CGAL_FOUND AND CGAL_Qt3_FOUND AND QT3_FOUND )
generator.cpp generator.moc
)
add_to_cached_list( CGAL_EXECUTABLE_TARGETS generator )
target_link_libraries( generator ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )
else()

View File

@ -39,6 +39,9 @@ if ( CGAL_FOUND AND CGAL_Qt4_FOUND AND QT4_FOUND AND OPENGL_FOUND AND QGLVIEWER_
qt4_automoc( MainWindow.cpp Viewer.cpp)
add_executable ( Alpha_shape_3 Alpha_shape_3.cpp MainWindow.cpp Viewer.cpp ${uis} ${RESOURCE_FILES} )
add_to_cached_list( CGAL_EXECUTABLE_TARGETS Alpha_shape_3 )
target_link_libraries( Alpha_shape_3 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})
target_link_libraries( Alpha_shape_3 ${QT_LIBRARIES} ${QGLVIEWER_LIBRARIES} )
target_link_libraries( Alpha_shape_3 ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} )

View File

@ -38,6 +38,8 @@ if ( CGAL_FOUND AND CGAL_Qt4_FOUND AND QT4_FOUND )
# The executable itself.
add_executable ( Circular_kernel_2 Circular_kernel_2.cpp Circular_kernel_2.moc ${DT_UI_FILES} ${DT_RESOURCE_FILES} )
add_to_cached_list( CGAL_EXECUTABLE_TARGETS Circular_kernel_2 )
# Link with Qt libraries
target_link_libraries( Circular_kernel_2 ${QT_LIBRARIES} )
# Link with CGAL

View File

@ -29,6 +29,7 @@ if ( CGAL_FOUND AND CGAL_Qt4_FOUND AND QT4_FOUND )
add_executable ( min min.cpp )
add_to_cached_list( CGAL_EXECUTABLE_TARGETS min )
# Link with Qt libraries
target_link_libraries( min ${QT_LIBRARIES} )

View File

@ -42,6 +42,8 @@ if ( CGAL_FOUND AND CGAL_Qt4_FOUND AND CGAL_Core_FOUND AND QT4_FOUND )
# The executable itself.
add_executable ( Polygon_2 Polygon_2.cpp Polygon_2.moc ${DT_UI_FILES} ${DT_RESOURCE_FILES} )
add_to_cached_list( CGAL_EXECUTABLE_TARGETS Polygon_2 )
# Link with Qt libraries
target_link_libraries( Polygon_2 ${QT_LIBRARIES} )
# And with CGAL libraries

View File

@ -45,6 +45,8 @@ qt4_generate_moc( Constrained_Delaunay_triangulation_2.cpp Constrained_Delaunay_
# The executable itself.
add_executable ( Constrained_Delaunay_triangulation_2 Constrained_Delaunay_triangulation_2.cpp Constrained_Delaunay_triangulation_2.moc ${CDT_UI_FILES} ${CDT_RESOURCE_FILES} )
add_to_cached_list( CGAL_EXECUTABLE_TARGETS Constrained_Delaunay_triangulation_2 )
# Link with Qt libraries
target_link_libraries( Constrained_Delaunay_triangulation_2 ${QT_LIBRARIES} )
# Link with CGAL
@ -65,6 +67,8 @@ qt4_generate_moc( Delaunay_triangulation_2.cpp Delaunay_triangulation_2.moc )
# The executable itself.
add_executable ( Delaunay_triangulation_2 Delaunay_triangulation_2.cpp Delaunay_triangulation_2.moc ${DT_UI_FILES} ${DT_RESOURCE_FILES} )
add_to_cached_list( CGAL_EXECUTABLE_TARGETS Circular_kernel_3 )
# Link with Qt libraries
target_link_libraries( Delaunay_triangulation_2 ${QT_LIBRARIES} )
# Link with CGAL
@ -85,6 +89,8 @@ qt4_generate_moc( Regular_triangulation_2.cpp Regular_triangulation_2.moc )
# The executable itself.
add_executable ( Regular_triangulation_2 Regular_triangulation_2.cpp Regular_triangulation_2.moc ${DT_UI_FILES} ${DT_RESOURCE_FILES} )
add_to_cached_list( CGAL_EXECUTABLE_TARGETS Circular_kernel_3 )
# Link with Qt libraries
target_link_libraries( Regular_triangulation_2 ${QT_LIBRARIES} )
# Link with CGAL

View File

@ -55,7 +55,8 @@ if ( CGAL_FOUND )
# Demo KDS_generate_data
add_executable (KDS_generate_data KDS_generate_data.cpp)
target_link_libraries(KDS_generate_data ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})
add_to_cached_list( CGAL_EXECUTABLE_TARGETS KDS_generate_data )
# Demo KDS_Delaunay_triangulation_stable_subset_2
add_executable (KDS_Delaunay_triangulation_stable_subset_2 KDS_Delaunay_triangulation_stable_subset_2.cpp)
target_link_libraries(KDS_Delaunay_triangulation_stable_subset_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})

View File

@ -35,6 +35,7 @@ if ( CGAL_FOUND AND CGAL_Qt3_FOUND AND QT3_FOUND )
Qt_widget_move_list_point.cpp Qt_widget_move_list_point.moc
)
add_to_cached_list( CGAL_EXECUTABLE_TARGETS largest_empty_rect_2 )
target_link_libraries( largest_empty_rect_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )
else()

View File

@ -45,6 +45,9 @@ if ( CGAL_FOUND AND QT3_FOUND AND CGAL_Qt3_FOUND)
target_link_libraries( max_k-gon ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )
target_link_libraries( rectangular_p_center_2_demo ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )
add_to_cached_list( CGAL_EXECUTABLE_TARGETS max_k-gon )
add_to_cached_list( CGAL_EXECUTABLE_TARGETS rectangular_p_center_2_demo )
else()
message(STATUS "NOTICE: This demo requires CGAL and Qt3, and will not be compiled.")

View File

@ -40,10 +40,12 @@ if ( CGAL_FOUND AND QT3_FOUND AND CGAL_Qt3_FOUND)
# conform target
add_executable (conform conform.cpp)
target_link_libraries(conform ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )
add_to_cached_list( CGAL_EXECUTABLE_TARGETS conform )
# mesh target
add_executable (mesh mesh.cpp)
target_link_libraries(mesh ${QT3_LIBRARIES} ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )
add_to_cached_list( CGAL_EXECUTABLE_TARGETS mesh )
else()

View File

@ -34,6 +34,8 @@ if ( CGAL_FOUND AND CGAL_Qt3_FOUND AND QT3_FOUND )
Qt_widget_move_list_point.cpp Qt_widget_move_list_point.moc
)
add_to_cached_list( CGAL_EXECUTABLE_TARGETS min_circle_2_demo )
target_link_libraries( min_circle_2_demo ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )
else()

View File

@ -34,6 +34,8 @@ if ( CGAL_FOUND AND CGAL_Qt3_FOUND AND QT3_FOUND )
Qt_widget_move_list_point.cpp Qt_widget_move_list_point.moc
)
add_to_cached_list( CGAL_EXECUTABLE_TARGETS min_ellipse_2_demo )
target_link_libraries( min_ellipse_2_demo ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )
else()

View File

@ -36,6 +36,8 @@ if ( CGAL_FOUND AND CGAL_Qt3_FOUND AND QT3_FOUND )
Qt_widget_move_list_point.cpp Qt_widget_move_list_point.moc
)
add_to_cached_list( CGAL_EXECUTABLE_TARGETS min_quadrilateral_2 )
target_link_libraries( min_quadrilateral_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )
else()

View File

@ -25,6 +25,8 @@ if ( CGAL_FOUND AND QT3_FOUND AND CGAL_Qt3_FOUND)
add_executable ( minkowski_sum_3
minkowski_sum_3.cpp )
add_to_cached_list( CGAL_EXECUTABLE_TARGETS minkowski_sum_3 )
target_link_libraries( minkowski_sum_3 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})
else()

View File

@ -31,6 +31,8 @@ if ( CGAL_FOUND AND CGAL_Qt3_FOUND AND QT3_FOUND )
nef_2.cpp nef_2.moc
Qt_widget_toolbar.cpp Qt_widget_toolbar.moc )
add_to_cached_list( CGAL_EXECUTABLE_TARGETS nef_2 )
target_link_libraries( nef_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})
else()

View File

@ -27,6 +27,8 @@ INCLUDE_DIRECTORIES ( BEFORE ./include )
add_executable ( nef_S2
nef_S2.cpp )
add_to_cached_list( CGAL_EXECUTABLE_TARGETS nef_S2 )
target_link_libraries( nef_S2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})
else()

View File

@ -113,6 +113,8 @@ if(CGAL_Qt4_FOUND AND QT4_FOUND AND OPENGL_FOUND AND QGLVIEWER_FOUND)
# Link with libQGLViewer, OpenGL
target_link_libraries( Polyhedron_3 ${QGLVIEWER_LIBRARIES} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} )
add_to_cached_list( CGAL_EXECUTABLE_TARGETS Polyhedron_3 )
if(TAUCS_FOUND)
# Link with TAUCS
target_link_libraries(Polyhedron_3 ${TAUCS_LIBRARIES})

View File

@ -37,6 +37,7 @@ if ( CGAL_FOUND )
endif()
add_executable(Compute_Ridges_Umbilics Compute_Ridges_Umbilics.cpp PolyhedralSurf.cpp)
add_to_cached_list( CGAL_EXECUTABLE_TARGETS Compute_Ridges_Umbilics )
target_link_libraries(Compute_Ridges_Umbilics ${CGAL_LIBRARIES})
else(LAPACK_FOUND)

View File

@ -30,6 +30,8 @@ if ( CGAL_Qt3_FOUND AND QT3_FOUND )
robustness.cpp robustness.moc
)
add_to_cached_list( CGAL_EXECUTABLE_TARGETS robustness )
target_link_libraries( robustness ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )
else()

View File

@ -42,6 +42,8 @@ if ( CGAL_FOUND AND CGAL_Qt3_FOUND AND QT3_FOUND )
target_link_libraries( segment_delaunay_graph_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )
add_to_cached_list( CGAL_EXECUTABLE_TARGETS polygon_delaunay_graph_2 )
add_to_cached_list( CGAL_EXECUTABLE_TARGETS segment_delaunay_graph_2 )
else()
message(STATUS "NOTICE: This demo requires CGAL,, Core, and Qt3, and will not be compiled.")

View File

@ -32,6 +32,8 @@ if ( CGAL_FOUND AND CGAL_Qt3_FOUND AND QT3_FOUND )
snap_rounding_2_toolbar.cpp snap_rounding_2_toolbar.moc
)
add_to_cached_list( CGAL_EXECUTABLE_TARGETS snap_rounding_2 )
target_link_libraries( snap_rounding_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )
else()

View File

@ -34,6 +34,8 @@ if ( CGAL_FOUND AND CGAL_Qt3_FOUND AND QT3_FOUND )
Qt_widget_move_list_point.cpp Qt_widget_move_list_point.moc
)
add_to_cached_list( CGAL_EXECUTABLE_TARGETS spatial_searching )
target_link_libraries( spatial_searching ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )
else()

View File

@ -34,6 +34,8 @@ if ( CGAL_FOUND AND CGAL_Qt3_FOUND AND QT3_FOUND )
straight_skeleton_2_toolbar_layers.cpp straight_skeleton_2_toolbar_layers.moc
)
add_to_cached_list( CGAL_EXECUTABLE_TARGETS straight_skeleton_2 )
target_link_libraries( straight_skeleton_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} ${QT3_LIBRARIES} )
message( STATUS "QT3_LIBRARIES=${QT3_LIBRARIES}" )

View File

@ -32,6 +32,8 @@ if ( CGAL_FOUND AND CGAL_Qt3_FOUND AND QT3_FOUND AND OPENGL_FOUND)
add_executable ( streamlines
streamlines.cpp streamlines.moc )
add_to_cached_list( CGAL_EXECUTABLE_TARGETS streamlines )
target_link_libraries( streamlines ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} ${OPENGL_LIBRARIES})
else()

View File

@ -90,6 +90,8 @@ if ( CGAL_FOUND AND CGAL_Qt4_FOUND)
add_executable ( ${prj} ${sources} ${uis} ${qrc_sources} )
add_to_cached_list( CGAL_EXECUTABLE_TARGETS ${prj} )
# Link the executable to CGAL and third-party libraries
target_link_libraries( ${prj} ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})

View File

@ -35,6 +35,8 @@ if ( CGAL_FOUND AND CGAL_Qt3_FOUND AND QT3_FOUND )
qt_file_toolbar.moc qt_layers_toolbar.moc my_window.moc
)
add_to_cached_list( CGAL_EXECUTABLE_TARGETS voronoi_diagram_2 )
target_link_libraries( voronoi_diagram_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )
else()