mirror of https://github.com/CGAL/cgal
Update CMakeLists.txt of all demos for header-only mode
This commit is contained in:
parent
fd42bc1d15
commit
f2c68b25cd
|
|
@ -32,9 +32,9 @@ if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND AND QGLVIEWER_
|
|||
qt5_wrap_ui( uis MainWindow.ui )
|
||||
|
||||
# qrc files (resources files, that contain icons, at least)
|
||||
qt5_add_resources ( RESOURCE_FILES ./Alpha_shape_3.qrc )
|
||||
qt5_add_resources ( CGAL_Qt5_RESOURCE_FILES ./Alpha_shape_3.qrc )
|
||||
|
||||
add_executable ( Alpha_shape_3 Alpha_shape_3.cpp MainWindow.cpp Viewer.cpp ${uis} ${RESOURCE_FILES} )
|
||||
add_executable ( Alpha_shape_3 Alpha_shape_3.cpp MainWindow.cpp Viewer.cpp ${uis} ${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES})
|
||||
qt5_use_modules(Alpha_shape_3 Xml Script OpenGL Svg)
|
||||
add_to_cached_list( CGAL_EXECUTABLE_TARGETS Alpha_shape_3 )
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND)
|
|||
OverlayDialog.ui
|
||||
ArrangementDemoPropertiesDialog.ui
|
||||
)
|
||||
qt5_wrap_cpp( arrangement_2_mocs
|
||||
qt5_wrap_cpp( CGAL_Qt5_MOC_FILES
|
||||
ArrangementDemoWindow.h
|
||||
ArrangementDemoTab.h
|
||||
Callback.h
|
||||
|
|
@ -35,7 +35,7 @@ if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND)
|
|||
PropertyValueDelegate.h
|
||||
#PropertyValueDelegate.cpp
|
||||
)
|
||||
qt5_add_resources( arrangement_2_resources
|
||||
qt5_add_resources( CGAL_Qt5_RESOURCE_FILES
|
||||
ArrangementDemoWindow.qrc
|
||||
)
|
||||
add_executable( arrangement_2
|
||||
|
|
@ -61,9 +61,9 @@ if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND)
|
|||
DeleteCurveModeItemEditor.cpp
|
||||
PointsGraphicsItem.cpp
|
||||
VerticalRayGraphicsItem.cpp
|
||||
${arrangement_2_mocs}
|
||||
${CGAL_Qt5_MOC_FILES}
|
||||
${arrangement_2_uis}
|
||||
${arrangement_2_resources}
|
||||
${CGAL_Qt5_RESOURCE_FILES}
|
||||
)
|
||||
qt5_use_modules(arrangement_2 Widgets Script)
|
||||
target_link_libraries( arrangement_2
|
||||
|
|
|
|||
|
|
@ -26,13 +26,13 @@ if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND AND CGAL_Core_FOUND )
|
|||
qt5_wrap_ui( CDT_UI_FILES boolean_operations_2.ui )
|
||||
|
||||
# qrc files (resources files, that contain icons, at least)
|
||||
qt5_add_resources ( CDT_RESOURCE_FILES ${CMAKE_CURRENT_SOURCE_DIR}/boolean_operations_2.qrc )
|
||||
qt5_add_resources ( CGAL_Qt5_RESOURCE_FILES ${CMAKE_CURRENT_SOURCE_DIR}/boolean_operations_2.qrc )
|
||||
|
||||
# use the Qt MOC preprocessor on classes that derives from QObject
|
||||
qt5_generate_moc( "boolean_operations_2.cpp" "${CMAKE_CURRENT_BINARY_DIR}/boolean_operations_2.moc" )
|
||||
|
||||
# The executable itself.
|
||||
add_executable ( boolean_operations_2 ${CMAKE_CURRENT_SOURCE_DIR}/boolean_operations_2.cpp boolean_operations_2.moc ${CDT_UI_FILES} ${CDT_RESOURCE_FILES} )
|
||||
add_executable ( boolean_operations_2 ${CMAKE_CURRENT_SOURCE_DIR}/boolean_operations_2.cpp boolean_operations_2.moc ${CGAL_Qt5_MOC_FILES} ${CDT_UI_FILES} ${CGAL_Qt5_RESOURCE_FILES} )
|
||||
qt5_use_modules(boolean_operations_2 Widgets Script Svg)
|
||||
# Link with Qt libraries
|
||||
target_link_libraries( boolean_operations_2 ${QT_LIBRARIES} )
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND AND QGLVIEWER_
|
|||
include_directories (${QGLVIEWER_INCLUDE_DIR})
|
||||
include_directories (BEFORE ../../include ./ )
|
||||
|
||||
add_executable ( Circular_kernel_3 Circular_kernel_3.cpp Viewer.cpp )
|
||||
add_executable (Circular_kernel_3 Circular_kernel_3.cpp Viewer.cpp ${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES})
|
||||
|
||||
qt5_use_modules( Circular_kernel_3 Xml Script OpenGL)
|
||||
|
||||
|
|
|
|||
|
|
@ -26,13 +26,13 @@ add_definitions(-DQT_NO_KEYWORDS)
|
|||
qt5_wrap_ui( DT_UI_FILES Alpha_shapes_2.ui )
|
||||
|
||||
# qrc files (resources files, that contain icons, at least)
|
||||
qt5_add_resources ( DT_RESOURCE_FILES ./Alpha_shapes_2.qrc )
|
||||
qt5_add_resources ( CGAL_Qt5_RESOURCE_FILES ./Alpha_shapes_2.qrc )
|
||||
|
||||
# use the Qt MOC preprocessor on classes that derives from QObject
|
||||
qt5_generate_moc( Alpha_shapes_2.cpp Alpha_shapes_2.moc )
|
||||
|
||||
# The executable itself.
|
||||
add_executable ( Alpha_shapes_2 Alpha_shapes_2.cpp Alpha_shapes_2.moc ${DT_UI_FILES} ${DT_RESOURCE_FILES} )
|
||||
add_executable ( Alpha_shapes_2 Alpha_shapes_2.cpp Alpha_shapes_2.moc ${DT_UI_FILES} ${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES})
|
||||
|
||||
qt5_use_modules(Alpha_shapes_2 Xml Script OpenGL Svg)
|
||||
|
||||
|
|
|
|||
|
|
@ -24,13 +24,13 @@ add_definitions(-DQT_NO_KEYWORDS)
|
|||
qt5_wrap_ui( DT_UI_FILES Apollonius_graph_2.ui )
|
||||
|
||||
# qrc files (resources files, that contain icons, at least)
|
||||
qt5_add_resources ( DT_RESOURCE_FILES ./Apollonius_graph_2.qrc )
|
||||
qt5_add_resources ( CGAL_Qt5_RESOURCE_FILES ./Apollonius_graph_2.qrc )
|
||||
|
||||
# use the Qt MOC preprocessor on classes that derives from QObject
|
||||
qt5_generate_moc( Apollonius_graph_2.cpp Apollonius_graph_2.moc )
|
||||
|
||||
# The executable itself.
|
||||
add_executable ( Apollonius_graph_2 Apollonius_graph_2.cpp Apollonius_graph_2.moc ${DT_UI_FILES} ${DT_RESOURCE_FILES} )
|
||||
add_executable ( Apollonius_graph_2 Apollonius_graph_2.cpp Apollonius_graph_2.moc ${DT_UI_FILES} ${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES})
|
||||
|
||||
qt5_use_modules(Apollonius_graph_2 Xml Script OpenGL Svg)
|
||||
|
||||
|
|
|
|||
|
|
@ -29,13 +29,13 @@ add_definitions(-DQT_NO_KEYWORDS)
|
|||
qt5_wrap_ui( DT_UI_FILES Bounding_volumes.ui )
|
||||
|
||||
# qrc files (resources files, that contain icons, at least)
|
||||
qt5_add_resources ( DT_RESOURCE_FILES ./Bounding_volumes.qrc )
|
||||
qt5_add_resources ( CGAL_Qt5_RESOURCE_FILES ./Bounding_volumes.qrc )
|
||||
|
||||
# use the Qt MOC preprocessor on classes that derives from QObject
|
||||
qt5_generate_moc( "Bounding_volumes.cpp" "${CMAKE_CURRENT_BINARY_DIR}/Bounding_volumes.moc" )
|
||||
|
||||
# The executable itself.
|
||||
add_executable ( Bounding_volumes Bounding_volumes.cpp Bounding_volumes.moc ${DT_UI_FILES} ${DT_RESOURCE_FILES} )
|
||||
add_executable ( Bounding_volumes Bounding_volumes.cpp Bounding_volumes.moc ${DT_UI_FILES} ${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES})
|
||||
|
||||
qt5_use_modules(Bounding_volumes Xml Script OpenGL Svg)
|
||||
|
||||
|
|
|
|||
|
|
@ -29,13 +29,13 @@ if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND )
|
|||
qt5_wrap_ui( DT_UI_FILES Circular_kernel_2.ui )
|
||||
|
||||
# qrc files (resources files, that contain icons, at least)
|
||||
qt5_add_resources ( DT_RESOURCE_FILES ./Circular_kernel_2.qrc )
|
||||
qt5_add_resources ( CGAL_Qt5_RESOURCE_FILES ./Circular_kernel_2.qrc )
|
||||
|
||||
# use the Qt MOC preprocessor on classes that derives from QObject
|
||||
qt5_generate_moc( "Circular_kernel_2.cpp" "${CMAKE_CURRENT_BINARY_DIR}/Circular_kernel_2.moc" )
|
||||
|
||||
# The executable itself.
|
||||
add_executable ( Circular_kernel_2 Circular_kernel_2.cpp Circular_kernel_2.moc ${DT_UI_FILES} ${DT_RESOURCE_FILES} )
|
||||
add_executable ( Circular_kernel_2 Circular_kernel_2.cpp Circular_kernel_2.moc ${DT_UI_FILES} ${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES})
|
||||
|
||||
qt5_use_modules(Circular_kernel_2 Xml Script OpenGL Svg)
|
||||
|
||||
|
|
|
|||
|
|
@ -26,13 +26,13 @@ if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND )
|
|||
qt5_wrap_ui( DT_UI_FILES Generator_2.ui )
|
||||
|
||||
# qrc files (resources files, that contain icons, at least)
|
||||
qt5_add_resources ( DT_RESOURCE_FILES ./Generator_2.qrc )
|
||||
qt5_add_resources ( CGAL_Qt5_RESOURCE_FILES ./Generator_2.qrc )
|
||||
|
||||
# use the Qt MOC preprocessor on classes that derives from QObject
|
||||
qt5_generate_moc( "Generator_2.cpp" "${CMAKE_CURRENT_BINARY_DIR}/Generator_2.moc" )
|
||||
|
||||
# The executable itself.
|
||||
add_executable ( Generator_2 Generator_2.cpp Generator_2.moc ${DT_UI_FILES} ${DT_RESOURCE_FILES} )
|
||||
add_executable ( Generator_2 Generator_2.cpp Generator_2.moc ${DT_UI_FILES} ${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES} )
|
||||
|
||||
qt5_use_modules(Generator_2 Xml Script OpenGL Svg)
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND )
|
|||
# Link with Qt libraries
|
||||
target_link_libraries( min ${QT_LIBRARIES} )
|
||||
# Link with CGAL
|
||||
target_link_libraries( min ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})
|
||||
target_link_libraries( min ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} ${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES})
|
||||
|
||||
else()
|
||||
|
||||
|
|
|
|||
|
|
@ -28,13 +28,13 @@ add_definitions(-DQT_NO_KEYWORDS)
|
|||
qt5_wrap_ui( DT_UI_FILES L1_voronoi_diagram_2.ui )
|
||||
|
||||
# qrc files (resources files, that contain icons, at least)
|
||||
qt5_add_resources ( DT_RESOURCE_FILES ./L1_voronoi_diagram_2.qrc )
|
||||
qt5_add_resources ( CGAL_Qt5_RESOURCE_FILES ./L1_voronoi_diagram_2.qrc )
|
||||
|
||||
# use the Qt MOC preprocessor on classes that derives from QObject
|
||||
qt5_generate_moc( L1_voronoi_diagram_2.cpp L1_voronoi_diagram_2.moc )
|
||||
|
||||
# The executable itself.
|
||||
add_executable ( L1_voronoi_diagram_2 L1_voronoi_diagram_2.cpp L1_voronoi_diagram_2.moc ${DT_UI_FILES} ${DT_RESOURCE_FILES} )
|
||||
add_executable ( L1_voronoi_diagram_2 L1_voronoi_diagram_2.cpp L1_voronoi_diagram_2.moc ${DT_UI_FILES} ${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES} )
|
||||
|
||||
qt5_use_modules(L1_voronoi_diagram_2 Xml Script OpenGL Svg)
|
||||
|
||||
|
|
|
|||
|
|
@ -27,13 +27,13 @@ if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND )
|
|||
qt5_wrap_ui( DT_UI_FILES Largest_empty_rectangle_2.ui )
|
||||
|
||||
# qrc files (resources files, that contain icons, at least)
|
||||
qt5_add_resources ( DT_RESOURCE_FILES ./Largest_empty_rectangle_2.qrc )
|
||||
qt5_add_resources ( CGAL_Qt5_RESOURCE_FILES ./Largest_empty_rectangle_2.qrc )
|
||||
|
||||
# use the Qt MOC preprocessor on classes that derives from QObject
|
||||
qt5_generate_moc( Largest_empty_rectangle_2.cpp Largest_empty_rectangle_2.moc )
|
||||
|
||||
# The executable itself.
|
||||
add_executable ( Largest_empty_rectangle_2 Largest_empty_rectangle_2.cpp Largest_empty_rectangle_2.moc ${DT_UI_FILES} ${DT_RESOURCE_FILES} )
|
||||
add_executable ( Largest_empty_rectangle_2 Largest_empty_rectangle_2.cpp Largest_empty_rectangle_2.moc ${DT_UI_FILES} ${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES} )
|
||||
|
||||
qt5_use_modules(Largest_empty_rectangle_2 Xml Script OpenGL Svg)
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ add_definitions(-DQT_NO_KEYWORDS)
|
|||
qt5_wrap_ui( DT_UI_FILES Periodic_2_triangulation_2.ui )
|
||||
|
||||
# qrc files (resources files, that contain icons, at least)
|
||||
qt5_add_resources ( DT_RESOURCE_FILES ./Periodic_2_triangulation_2.qrc )
|
||||
qt5_add_resources ( CGAL_Qt5_RESOURCE_FILES ./Periodic_2_triangulation_2.qrc )
|
||||
|
||||
# use the Qt MOC preprocessor on classes that derives from QObject
|
||||
qt5_generate_moc( Periodic_2_Delaunay_triangulation_2.cpp Periodic_2_triangulation_2.moc )
|
||||
|
|
@ -43,7 +43,7 @@ SOURCE_GROUP("QT" FILES ${QT_headers})
|
|||
add_executable ( Periodic_2_Delaunay_triangulation_2
|
||||
Periodic_2_Delaunay_triangulation_2.cpp
|
||||
Periodic_2_triangulation_2.moc
|
||||
${DT_UI_FILES} ${DT_RESOURCE_FILES}
|
||||
${DT_UI_FILES} ${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES}
|
||||
${headers} ${QT_headers} ${P2T2_headers})
|
||||
|
||||
qt5_use_modules( Periodic_2_Delaunay_triangulation_2 Xml Script OpenGL Svg)
|
||||
|
|
|
|||
|
|
@ -34,13 +34,13 @@ add_definitions(-DQT_NO_KEYWORDS)
|
|||
qt5_wrap_ui( CDT_UI_FILES Segment_voronoi_2.ui )
|
||||
|
||||
# qrc files (resources files, that contain icons, at least)
|
||||
qt5_add_resources ( CDT_RESOURCE_FILES ./Segment_voronoi_2.qrc )
|
||||
qt5_add_resources ( CGAL_Qt5_RESOURCE_FILES ./Segment_voronoi_2.qrc )
|
||||
|
||||
# use the Qt MOC preprocessor on classes that derives from QObject
|
||||
qt5_generate_moc( "Segment_voronoi_2.cpp" "${CMAKE_CURRENT_BINARY_DIR}/Segment_voronoi_2.moc" )
|
||||
|
||||
# The executable itself.
|
||||
add_executable ( Segment_voronoi_2 Segment_voronoi_2.cpp Segment_voronoi_2.moc ${CDT_UI_FILES} ${CDT_RESOURCE_FILES} )
|
||||
add_executable ( Segment_voronoi_2 Segment_voronoi_2.cpp Segment_voronoi_2.moc ${CDT_UI_FILES} ${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES})
|
||||
|
||||
qt5_use_modules(Segment_voronoi_2 Xml Script OpenGL Svg)
|
||||
|
||||
|
|
|
|||
|
|
@ -34,13 +34,13 @@ add_definitions(-DQT_NO_KEYWORDS)
|
|||
qt5_wrap_ui( CDT_UI_FILES Segment_voronoi_2.ui )
|
||||
|
||||
# qrc files (resources files, that contain icons, at least)
|
||||
qt5_add_resources ( CDT_RESOURCE_FILES ./Segment_voronoi_2.qrc )
|
||||
qt5_add_resources ( CGAL_Qt5_RESOURCE_FILES ./Segment_voronoi_2.qrc )
|
||||
|
||||
# use the Qt MOC preprocessor on classes that derives from QObject
|
||||
qt5_generate_moc( "Segment_voronoi_linf_2.cpp" "${CMAKE_CURRENT_BINARY_DIR}/Segment_voronoi_linf_2.moc" )
|
||||
|
||||
# The executable itself.
|
||||
add_executable ( Segment_voronoi_linf_2 Segment_voronoi_linf_2.cpp Segment_voronoi_linf_2.moc ${CDT_UI_FILES} ${CDT_RESOURCE_FILES} )
|
||||
add_executable ( Segment_voronoi_linf_2 Segment_voronoi_linf_2.cpp Segment_voronoi_linf_2.moc ${CDT_UI_FILES} ${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES})
|
||||
|
||||
qt5_use_modules(Segment_voronoi_linf_2 Xml Script OpenGL Svg)
|
||||
|
||||
|
|
|
|||
|
|
@ -26,13 +26,13 @@ add_definitions(-DQT_NO_KEYWORDS)
|
|||
qt5_wrap_ui( DT_UI_FILES Snap_rounding_2.ui )
|
||||
|
||||
# qrc files (resources files, that contain icons, at least)
|
||||
qt5_add_resources ( DT_RESOURCE_FILES ./Snap_rounding_2.qrc )
|
||||
qt5_add_resources ( CGAL_Qt5_RESOURCE_FILES ./Snap_rounding_2.qrc )
|
||||
|
||||
# use the Qt MOC preprocessor on classes that derives from QObject
|
||||
qt5_generate_moc( Snap_rounding_2.cpp Snap_rounding_2.moc )
|
||||
|
||||
# The executable itself.
|
||||
add_executable ( Snap_rounding_2 Snap_rounding_2.cpp Snap_rounding_2.moc ${DT_UI_FILES} ${DT_RESOURCE_FILES} )
|
||||
add_executable ( Snap_rounding_2 Snap_rounding_2.cpp Snap_rounding_2.moc ${DT_UI_FILES} ${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES} )
|
||||
|
||||
qt5_use_modules(Snap_rounding_2 Xml Script OpenGL Svg)
|
||||
|
||||
|
|
|
|||
|
|
@ -28,13 +28,13 @@ if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND )
|
|||
qt5_wrap_ui( DT_UI_FILES Spatial_searching_2.ui )
|
||||
|
||||
# qrc files (resources files, that contain icons, at least)
|
||||
qt5_add_resources ( DT_RESOURCE_FILES ./Spatial_searching_2.qrc )
|
||||
qt5_add_resources ( CGAL_Qt5_RESOURCE_FILES ./Spatial_searching_2.qrc )
|
||||
|
||||
# use the Qt MOC preprocessor on classes that derives from QObject
|
||||
qt5_generate_moc( Spatial_searching_2.cpp Spatial_searching_2.moc )
|
||||
|
||||
# The executable itself.
|
||||
add_executable ( Spatial_searching_2 Spatial_searching_2.cpp Spatial_searching_2.moc ${DT_UI_FILES} ${DT_RESOURCE_FILES} )
|
||||
add_executable ( Spatial_searching_2 Spatial_searching_2.cpp Spatial_searching_2.moc ${DT_UI_FILES} ${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES} )
|
||||
|
||||
qt5_use_modules(Spatial_searching_2 Xml Script OpenGL Svg)
|
||||
|
||||
|
|
|
|||
|
|
@ -27,13 +27,13 @@ add_definitions(-DQT_NO_KEYWORDS)
|
|||
qt5_wrap_ui( DT_UI_FILES Stream_lines_2.ui )
|
||||
|
||||
# qrc files (resources files, that contain icons, at least)
|
||||
qt5_add_resources ( DT_RESOURCE_FILES ./Stream_lines_2.qrc )
|
||||
qt5_add_resources ( CGAL_Qt5_RESOURCE_FILES ./Stream_lines_2.qrc )
|
||||
|
||||
# use the Qt MOC preprocessor on classes that derives from QObject
|
||||
qt5_generate_moc( Stream_lines_2.cpp Stream_lines_2.moc )
|
||||
|
||||
# The executable itself.
|
||||
add_executable ( Stream_lines_2 Stream_lines_2.cpp Stream_lines_2.moc ${DT_UI_FILES} ${DT_RESOURCE_FILES} )
|
||||
add_executable ( Stream_lines_2 Stream_lines_2.cpp Stream_lines_2.moc ${DT_UI_FILES} ${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES} )
|
||||
|
||||
qt5_use_modules(Stream_lines_2 Xml Script OpenGL Svg)
|
||||
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ qt5_add_resources ( CDT_RESOURCE_FILES ./Constrained_Delaunay_triangulation_2.qr
|
|||
qt5_generate_moc( "Constrained_Delaunay_triangulation_2.cpp" "${CMAKE_CURRENT_BINARY_DIR}/Constrained_Delaunay_triangulation_2.moc" )
|
||||
|
||||
# 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_executable ( Constrained_Delaunay_triangulation_2 Constrained_Delaunay_triangulation_2.cpp Constrained_Delaunay_triangulation_2.moc ${CDT_UI_FILES} ${CDT_RESOURCE_FILES} ${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES})
|
||||
|
||||
qt5_use_modules(Constrained_Delaunay_triangulation_2 Xml Script OpenGL Svg)
|
||||
|
||||
|
|
@ -64,7 +64,7 @@ qt5_add_resources ( DT_RESOURCE_FILES ./Delaunay_triangulation_2.qrc )
|
|||
qt5_generate_moc( "Delaunay_triangulation_2.cpp" "${CMAKE_CURRENT_BINARY_DIR}/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_executable ( Delaunay_triangulation_2 Delaunay_triangulation_2.cpp Delaunay_triangulation_2.moc ${DT_UI_FILES} ${DT_RESOURCE_FILES} ${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES})
|
||||
|
||||
qt5_use_modules(Delaunay_triangulation_2 Xml Script OpenGL Svg)
|
||||
|
||||
|
|
@ -88,7 +88,7 @@ qt5_add_resources ( DT_RESOURCE_FILES ./Regular_triangulation_2.qrc )
|
|||
qt5_generate_moc( "Regular_triangulation_2.cpp" "${CMAKE_CURRENT_BINARY_DIR}/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_executable ( Regular_triangulation_2 Regular_triangulation_2.cpp Regular_triangulation_2.moc ${DT_UI_FILES} ${DT_RESOURCE_FILES} ${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES})
|
||||
|
||||
qt5_use_modules(Regular_triangulation_2 Xml Script OpenGL Svg)
|
||||
|
||||
|
|
|
|||
|
|
@ -57,14 +57,14 @@ qt5_wrap_ui(uis MainWindow.ui CreateMesh.ui CreateMenger.ui
|
|||
CreateSierpinskiCarpet.ui CreateSierpinskiTriangle.ui)
|
||||
|
||||
# qrc files (resources files, that contain icons, at least)
|
||||
qt5_add_resources (RESOURCE_FILES ./Linear_cell_complex_3.qrc)
|
||||
qt5_add_resources (CGAL_Qt5_RESOURCE_FILES ./Linear_cell_complex_3.qrc)
|
||||
|
||||
|
||||
add_executable(Linear_cell_complex_3_demo
|
||||
Linear_cell_complex_3_demo.cpp MainWindow.cpp
|
||||
Viewer.cpp Linear_cell_complex_3_subdivision.cpp
|
||||
Linear_cell_complex_pqq_subdivision.cpp
|
||||
${uis} ${RESOURCE_FILES} )
|
||||
${uis} ${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES})
|
||||
|
||||
qt5_use_modules(Linear_cell_complex_3_demo Xml Script OpenGL Svg)
|
||||
add_to_cached_list(CGAL_EXECUTABLE_TARGETS Linear_cell_complex_3_demo)
|
||||
|
|
|
|||
|
|
@ -146,7 +146,7 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND AND QGLVIEWER_FOUND AND Boost_F
|
|||
qt5_wrap_cpp( VOLUME_MOC_OUTFILES ${CMAKE_CURRENT_SOURCE_DIR}/Volume_plane_thread.h )
|
||||
qt5_wrap_cpp( VOLUME_MOC_OUTFILES ${CMAKE_CURRENT_SOURCE_DIR}/Volume_plane_interface.h )
|
||||
|
||||
qt5_add_resources ( RESOURCE_FILES Mesh_3.qrc )
|
||||
qt5_add_resources ( CGAL_Qt5_RESOURCE_FILES Mesh_3.qrc )
|
||||
|
||||
# put plugins (which are shared libraries) at the same location as
|
||||
# executable files
|
||||
|
|
@ -220,7 +220,7 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND AND QGLVIEWER_FOUND AND Boost_F
|
|||
|
||||
Scene_moc.cpp)
|
||||
#ADD_MSVC_PRECOMPILED_HEADER("StdAfx.h" "StdAfx.cpp" MESH_3_SOURCE_FILES)
|
||||
LIST(APPEND MESH_3_SOURCE_FILES ${UI_FILES} ${RESOURCE_FILES})
|
||||
LIST(APPEND MESH_3_SOURCE_FILES ${UI_FILES} ${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES})
|
||||
add_executable( Mesh_3 ${MESH_3_SOURCE_FILES} )
|
||||
qt5_use_modules(Mesh_3 Xml Script OpenGL Svg)
|
||||
add_to_cached_list( CGAL_EXECUTABLE_TARGETS Mesh_3 )
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ if(CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND)
|
|||
)
|
||||
|
||||
set(
|
||||
MOCS
|
||||
CGAL_Qt5_MOC_FILES
|
||||
moc_dialog_options.cxx
|
||||
moc_glviewer.cxx
|
||||
moc_window.cxx
|
||||
|
|
@ -74,9 +74,9 @@ if(CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND)
|
|||
qt5_generate_moc( "dialog_options.h" "${CMAKE_CURRENT_BINARY_DIR}/moc_dialog_options.cxx" )
|
||||
add_file_dependencies( moc_dialog_options.cxx "${CMAKE_CURRENT_SOURCE_DIR}/dialog_options.h" )
|
||||
|
||||
qt5_add_resources ( RESOURCE_FILES pwsrec.qrc )
|
||||
qt5_add_resources ( CGAL_Qt5_RESOURCE_FILES pwsrec.qrc )
|
||||
|
||||
add_executable ( Optimal_transportation_reconstruction_2_demo ${SRCS} ${MOCS} ${UI_FILES} ${RESOURCE_FILES} ${CGAL_ADDITIONAL_FILES} ${CGAL_RESOURCE_FILES})
|
||||
add_executable ( Optimal_transportation_reconstruction_2_demo ${SRCS} ${CGAL_Qt5_MOC_FILES} ${UI_FILES} ${CGAL_Qt5_RESOURCE_FILES})
|
||||
|
||||
qt5_use_modules(Optimal_transportation_reconstruction_2_demo OpenGL)
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ if (CGAL_FOUND AND CGAL_Qt5_FOUND AND OPENGL_FOUND AND Qt5_FOUND AND QGLVIEWER_F
|
|||
qt5_wrap_ui ( UI_FILES MainWindow.ui )
|
||||
|
||||
# qrc files (resource files)
|
||||
qt5_add_resources( RESOURCE_FILES ./Periodic_3_triangulation_3.qrc )
|
||||
qt5_add_resources( CGAL_Qt5_RESOURCE_FILES ./Periodic_3_triangulation_3.qrc )
|
||||
|
||||
# use the Qt MOC preprocessor on classes that derive from QObject
|
||||
qt5_generate_moc( "Scene.h" "${CMAKE_CURRENT_BINARY_DIR}/moc_Scene.cpp" )
|
||||
|
|
@ -64,7 +64,7 @@ if (CGAL_FOUND AND CGAL_Qt5_FOUND AND OPENGL_FOUND AND Qt5_FOUND AND QGLVIEWER_F
|
|||
Viewer.cpp moc_Viewer.cpp
|
||||
periodic_3_triangulation_3_demo.cpp
|
||||
MainWindow.ui moc_MainWindow.cpp
|
||||
${UI_FILES} ${RESOURCE_FILES} Periodic_3_triangulation_3.qhc)
|
||||
${UI_FILES} ${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES} Periodic_3_triangulation_3.qhc)
|
||||
|
||||
qt5_use_modules(periodic_3_triangulation_3_demo Xml Help OpenGL)
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND AND QGLVIEWER_
|
|||
qt5_wrap_ui( uis MainWindow.ui )
|
||||
|
||||
# qrc files (resources files, that contain icons, at least)
|
||||
qt5_add_resources ( RESOURCE_FILES ./Periodic_Lloyd_3.qrc )
|
||||
qt5_add_resources ( CGAL_Qt5_RESOURCE_FILES ./Periodic_Lloyd_3.qrc )
|
||||
|
||||
|
||||
if(DEFINED QT_QCOLLECTIONGENERATOR_EXECUTABLE)
|
||||
|
|
@ -51,7 +51,7 @@ if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND AND QGLVIEWER_
|
|||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||
)
|
||||
|
||||
add_executable ( Periodic_Lloyd_3 Periodic_Lloyd_3.qhc Periodic_Lloyd_3.cpp MainWindow.cpp Viewer.cpp ${uis} ${RESOURCE_FILES} )
|
||||
add_executable ( Periodic_Lloyd_3 Periodic_Lloyd_3.qhc Periodic_Lloyd_3.cpp MainWindow.cpp Viewer.cpp ${uis} ${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES})
|
||||
|
||||
qt5_use_modules(Periodic_Lloyd_3 Xml Script Help OpenGL Svg)
|
||||
add_to_cached_list( CGAL_EXECUTABLE_TARGETS Periodic_Lloyd_3 )
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND AND QGLVIEWER_FOUND)
|
|||
include( ${CMAKE_CURRENT_SOURCE_DIR}/polyhedron_demo_macros.cmake )
|
||||
|
||||
|
||||
qt5_add_resources ( RESOURCE_FILES Polyhedron_3.qrc )
|
||||
qt5_add_resources ( CGAL_Qt5_RESOURCE_FILES Polyhedron_3.qrc )
|
||||
qt5_add_resources(gl_splat_rc GlSplat/glsplat.qrc)
|
||||
add_library(gl_splat SHARED
|
||||
GlSplat/GlSplat.cpp GlSplat/Shader.cpp ${gl_splat_rc})
|
||||
|
|
@ -293,7 +293,7 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND AND QGLVIEWER_FOUND)
|
|||
MainWindow.cpp
|
||||
Polyhedron_demo.cpp
|
||||
File_loader_dialog_moc.cpp
|
||||
${FileLoaderDialogUI_files} ${MainWindowUI_files} ${PreferencesUI_FILES} ${RESOURCE_FILES} ${statisticsUI_FILES})
|
||||
${FileLoaderDialogUI_files} ${MainWindowUI_files} ${PreferencesUI_FILES} ${CGAL_Qt5_RESOURCE_FILES} ${statisticsUI_FILES} ${CGAL_Qt5_MOC_FILES})
|
||||
target_link_libraries(polyhedron_demo demo_framework point_dialog)
|
||||
qt5_use_modules(polyhedron_demo Gui OpenGL Xml Widgets Script Svg )
|
||||
add_executable ( Polyhedron_3 Polyhedron_3.cpp )
|
||||
|
|
|
|||
|
|
@ -27,13 +27,13 @@ add_definitions(-DQT_NO_KEYWORDS)
|
|||
qt5_wrap_ui( CDT_UI_FILES Polyline_simplification_2.ui )
|
||||
|
||||
# qrc files (resources files, that contain icons, at least)
|
||||
qt5_add_resources ( CDT_RESOURCE_FILES ${CMAKE_CURRENT_SOURCE_DIR}/Polyline_simplification_2.qrc )
|
||||
qt5_add_resources ( CGAL_Qt5_RESOURCE_FILES ${CMAKE_CURRENT_SOURCE_DIR}/Polyline_simplification_2.qrc )
|
||||
|
||||
# use the Qt MOC preprocessor on classes that derives from QObject
|
||||
qt5_generate_moc( ${CMAKE_CURRENT_SOURCE_DIR}/Polyline_simplification_2.cpp Polyline_simplification_2.moc )
|
||||
|
||||
# The executable itself.
|
||||
add_executable ( Polyline_simplification_2 ${CMAKE_CURRENT_SOURCE_DIR}/Polyline_simplification_2.cpp Polyline_simplification_2.moc ${CDT_UI_FILES} ${CDT_RESOURCE_FILES} )
|
||||
add_executable ( Polyline_simplification_2 ${CMAKE_CURRENT_SOURCE_DIR}/Polyline_simplification_2.cpp Polyline_simplification_2.moc ${CDT_UI_FILES} ${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES})
|
||||
|
||||
qt5_use_modules(Polyline_simplification_2 Xml Script OpenGL Widgets Svg)
|
||||
# Link with Qt libraries
|
||||
|
|
|
|||
|
|
@ -44,11 +44,11 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND AND QGLVIEWER_FOUND)
|
|||
qt5_generate_moc( "Viewer.h" "${CMAKE_CURRENT_BINARY_DIR}/Viewer_moc.cpp" )
|
||||
add_file_dependencies( Viewer_moc.cpp "${CMAKE_CURRENT_SOURCE_DIR}/Viewer.h" )
|
||||
|
||||
qt5_add_resources ( RESOURCE_FILES PCA_demo.qrc )
|
||||
qt5_add_resources ( CGAL_Qt5_RESOURCE_FILES PCA_demo.qrc )
|
||||
|
||||
add_file_dependencies( PCA_demo.cpp "${CMAKE_CURRENT_BINARY_DIR}/MainWindow_moc.cpp"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/Viewer_moc.cpp" )
|
||||
add_executable ( PCA_demo PCA_demo.cpp ${UI_FILES} ${RESOURCE_FILES} )
|
||||
add_executable ( PCA_demo PCA_demo.cpp ${UI_FILES} ${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES})
|
||||
qt5_use_modules( PCA_demo Xml Script OpenGL)
|
||||
# Link with Qt libraries
|
||||
target_link_libraries( PCA_demo ${QT_LIBRARIES} )
|
||||
|
|
|
|||
|
|
@ -57,14 +57,14 @@ if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND AND QGLVIEWER_
|
|||
qt5_wrap_ui( uis MainWindow.ui )
|
||||
|
||||
# qrc files (resources files, that contain icons, at least)
|
||||
qt5_add_resources ( RESOURCE_FILES ./T3_demo.qrc )
|
||||
qt5_add_resources ( CGAL_Qt5_RESOURCE_FILES ./T3_demo.qrc )
|
||||
|
||||
|
||||
# cpp files
|
||||
add_executable ( T3_demo T3_demo.cpp
|
||||
MainWindow.cpp Viewer.cpp
|
||||
PreferenceDlg.cpp
|
||||
Scene.cpp ${uis} ${RESOURCE_FILES} )
|
||||
Scene.cpp ${uis} ${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES})
|
||||
|
||||
qt5_use_modules(T3_demo Xml Script OpenGL)
|
||||
add_to_cached_list( CGAL_EXECUTABLE_TARGETS T3_demo )
|
||||
|
|
|
|||
Loading…
Reference in New Issue