From 5f185384591d32d4c92c358bc6e64bc6b167ccd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20M=C3=B6ller?= Date: Tue, 24 Sep 2013 08:55:05 +0000 Subject: [PATCH] disable type plugin if corresponding objecttype is missing git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@17577 383ad7c9-94d9-4d36-a494-682f7c89f535 --- .../Plugin-TypeBSplineCurve/CMakeLists.txt | 7 ++++++- .../Plugin-TypeBSplineSurface/CMakeLists.txt | 7 ++++++- .../Plugin-TypeCamera/CMakeLists.txt | 7 ++++++- .../Plugin-TypeCoordsys/CMakeLists.txt | 8 ++++++-- .../Plugin-TypeHexahedralMesh/CMakeLists.txt | 7 ++++++- .../Plugin-TypeLight/CMakeLists.txt | 9 +++++++-- .../Plugin-TypePlane/CMakeLists.txt | 9 +++++++-- .../Plugin-TypePolyLine/CMakeLists.txt | 8 +++++++- .../Plugin-TypePolyMesh/CMakeLists.txt | 9 +++++++-- .../Plugin-TypePolyhedralMesh/CMakeLists.txt | 8 +++++++- .../Plugin-TypeQtWidget/CMakeLists.txt | 9 +++++++-- .../Plugin-TypeSkeleton/CMakeLists.txt | 8 ++++++-- .../Plugin-TypeSphere/CMakeLists.txt | 9 +++++++-- .../Plugin-TypeSplatCloud/CMakeLists.txt | 8 +++++++- .../Plugin-TypeTriangleMesh/CMakeLists.txt | 8 ++++++-- 15 files changed, 98 insertions(+), 23 deletions(-) diff --git a/PluginCollection-TypePlugins/Plugin-TypeBSplineCurve/CMakeLists.txt b/PluginCollection-TypePlugins/Plugin-TypeBSplineCurve/CMakeLists.txt index 9247f0ae3..57340251e 100644 --- a/PluginCollection-TypePlugins/Plugin-TypeBSplineCurve/CMakeLists.txt +++ b/PluginCollection-TypePlugins/Plugin-TypeBSplineCurve/CMakeLists.txt @@ -1,2 +1,7 @@ include (plugin) -openflipper_plugin ( INSTALLDATA Icons ) + +if (EXISTS ${CMAKE_SOURCE_DIR}/ObjectTypes/BSplineCurve/BSplineCurve.hh) + openflipper_plugin (INSTALLDATA Icons) +else() + message( WARNING "Plugin TypeBSplineCurve disabled due to missing BSplineCurve ObjectType" ) +endif () diff --git a/PluginCollection-TypePlugins/Plugin-TypeBSplineSurface/CMakeLists.txt b/PluginCollection-TypePlugins/Plugin-TypeBSplineSurface/CMakeLists.txt index 0ec0fec15..a848cab02 100644 --- a/PluginCollection-TypePlugins/Plugin-TypeBSplineSurface/CMakeLists.txt +++ b/PluginCollection-TypePlugins/Plugin-TypeBSplineSurface/CMakeLists.txt @@ -1,2 +1,7 @@ include (plugin) -openflipper_plugin ( INSTALLDATA Icons ) + +if (EXISTS ${CMAKE_SOURCE_DIR}/ObjectTypes/BSplineSurface/BSplineSurface.hh) + openflipper_plugin (INSTALLDATA Icons) +else() + message( WARNING "Plugin TypeBSplineSurface disabled due to missing BSplineSurface ObjectType" ) +endif () \ No newline at end of file diff --git a/PluginCollection-TypePlugins/Plugin-TypeCamera/CMakeLists.txt b/PluginCollection-TypePlugins/Plugin-TypeCamera/CMakeLists.txt index 0ec0fec15..4416d0f4e 100644 --- a/PluginCollection-TypePlugins/Plugin-TypeCamera/CMakeLists.txt +++ b/PluginCollection-TypePlugins/Plugin-TypeCamera/CMakeLists.txt @@ -1,2 +1,7 @@ include (plugin) -openflipper_plugin ( INSTALLDATA Icons ) + +if (EXISTS ${CMAKE_SOURCE_DIR}/ObjectTypes/Camera/Camera.hh) + openflipper_plugin (INSTALLDATA Icons) +else() + message( WARNING "Plugin TypeCamera disabled due to missing Camera ObjectType" ) +endif () \ No newline at end of file diff --git a/PluginCollection-TypePlugins/Plugin-TypeCoordsys/CMakeLists.txt b/PluginCollection-TypePlugins/Plugin-TypeCoordsys/CMakeLists.txt index e5e0fb254..95783f170 100644 --- a/PluginCollection-TypePlugins/Plugin-TypeCoordsys/CMakeLists.txt +++ b/PluginCollection-TypePlugins/Plugin-TypeCoordsys/CMakeLists.txt @@ -1,3 +1,7 @@ include (plugin) -openflipper_plugin ( INSTALLDATA Icons - ) + +if (EXISTS ${CMAKE_SOURCE_DIR}/ObjectTypes/Coordsys/Coordsys.hh) + openflipper_plugin (INSTALLDATA Icons) +else() + message( WARNING "Plugin TypeCoordsys disabled due to missing Coordsys ObjectType" ) +endif () diff --git a/PluginCollection-TypePlugins/Plugin-TypeHexahedralMesh/CMakeLists.txt b/PluginCollection-TypePlugins/Plugin-TypeHexahedralMesh/CMakeLists.txt index 64e925561..cc885dc17 100644 --- a/PluginCollection-TypePlugins/Plugin-TypeHexahedralMesh/CMakeLists.txt +++ b/PluginCollection-TypePlugins/Plugin-TypeHexahedralMesh/CMakeLists.txt @@ -1,2 +1,7 @@ include (plugin) -openflipper_plugin (DEPS OpenVolumeMesh) + +if (EXISTS ${CMAKE_SOURCE_DIR}/ObjectTypes/HexahedralMesh/HexahedralMesh.hh) + openflipper_plugin (DEPS OpenVolumeMesh) +else() + message( WARNING "Plugin TypeHexahedralMesh disabled due to missing HexahedralMesh ObjectType" ) +endif () diff --git a/PluginCollection-TypePlugins/Plugin-TypeLight/CMakeLists.txt b/PluginCollection-TypePlugins/Plugin-TypeLight/CMakeLists.txt index e5e0fb254..64734f2f5 100644 --- a/PluginCollection-TypePlugins/Plugin-TypeLight/CMakeLists.txt +++ b/PluginCollection-TypePlugins/Plugin-TypeLight/CMakeLists.txt @@ -1,3 +1,8 @@ include (plugin) -openflipper_plugin ( INSTALLDATA Icons - ) + +if (EXISTS ${CMAKE_SOURCE_DIR}/ObjectTypes/Light/Light.hh) + openflipper_plugin (INSTALLDATA Icons) +else() + message( WARNING "Plugin TypeLight disabled due to missing Light ObjectType" ) +endif () + diff --git a/PluginCollection-TypePlugins/Plugin-TypePlane/CMakeLists.txt b/PluginCollection-TypePlugins/Plugin-TypePlane/CMakeLists.txt index e5e0fb254..5d1724c54 100644 --- a/PluginCollection-TypePlugins/Plugin-TypePlane/CMakeLists.txt +++ b/PluginCollection-TypePlugins/Plugin-TypePlane/CMakeLists.txt @@ -1,3 +1,8 @@ include (plugin) -openflipper_plugin ( INSTALLDATA Icons - ) + +if (EXISTS ${CMAKE_SOURCE_DIR}/ObjectTypes/Plane/Plane.hh) + openflipper_plugin (INSTALLDATA Icons) +else() + message( WARNING "Plugin TypePlane disabled due to missing Plane ObjectType" ) +endif () + diff --git a/PluginCollection-TypePlugins/Plugin-TypePolyLine/CMakeLists.txt b/PluginCollection-TypePlugins/Plugin-TypePolyLine/CMakeLists.txt index 0ec0fec15..01241bc97 100644 --- a/PluginCollection-TypePlugins/Plugin-TypePolyLine/CMakeLists.txt +++ b/PluginCollection-TypePlugins/Plugin-TypePolyLine/CMakeLists.txt @@ -1,2 +1,8 @@ include (plugin) -openflipper_plugin ( INSTALLDATA Icons ) + +if (EXISTS ${CMAKE_SOURCE_DIR}/ObjectTypes/PolyLine/PolyLine.hh) + openflipper_plugin (INSTALLDATA Icons) +else() + message( WARNING "Plugin TypePolyLine disabled due to missing PolyLine ObjectType" ) +endif () + diff --git a/PluginCollection-TypePlugins/Plugin-TypePolyMesh/CMakeLists.txt b/PluginCollection-TypePlugins/Plugin-TypePolyMesh/CMakeLists.txt index e5e0fb254..fd05c9886 100644 --- a/PluginCollection-TypePlugins/Plugin-TypePolyMesh/CMakeLists.txt +++ b/PluginCollection-TypePlugins/Plugin-TypePolyMesh/CMakeLists.txt @@ -1,3 +1,8 @@ include (plugin) -openflipper_plugin ( INSTALLDATA Icons - ) + +if (EXISTS ${CMAKE_SOURCE_DIR}/ObjectTypes/PolyMesh/PolyMesh.hh) + openflipper_plugin (INSTALLDATA Icons) +else() + message( WARNING "Plugin TypePolyMesh disabled due to missing PolyMesh ObjectType" ) +endif () + diff --git a/PluginCollection-TypePlugins/Plugin-TypePolyhedralMesh/CMakeLists.txt b/PluginCollection-TypePlugins/Plugin-TypePolyhedralMesh/CMakeLists.txt index 64e925561..9a1f3f997 100644 --- a/PluginCollection-TypePlugins/Plugin-TypePolyhedralMesh/CMakeLists.txt +++ b/PluginCollection-TypePlugins/Plugin-TypePolyhedralMesh/CMakeLists.txt @@ -1,2 +1,8 @@ include (plugin) -openflipper_plugin (DEPS OpenVolumeMesh) + +if (EXISTS ${CMAKE_SOURCE_DIR}/ObjectTypes/PolyhedralMesh/PolyhedralMesh.hh) + openflipper_plugin (DEPS OpenVolumeMesh) +else() + message( WARNING "Plugin TypePolyhedralMesh disabled due to missing PolyhedralMesh ObjectType" ) +endif () + diff --git a/PluginCollection-TypePlugins/Plugin-TypeQtWidget/CMakeLists.txt b/PluginCollection-TypePlugins/Plugin-TypeQtWidget/CMakeLists.txt index e5e0fb254..ea0a3d5d5 100644 --- a/PluginCollection-TypePlugins/Plugin-TypeQtWidget/CMakeLists.txt +++ b/PluginCollection-TypePlugins/Plugin-TypeQtWidget/CMakeLists.txt @@ -1,3 +1,8 @@ include (plugin) -openflipper_plugin ( INSTALLDATA Icons - ) + +if (EXISTS ${CMAKE_SOURCE_DIR}/ObjectTypes/QtWidget/QtWidget.hh) + openflipper_plugin (INSTALLDATA Icons) +else() + message( WARNING "Plugin TypeQtWidget disabled due to missing QtWidget ObjectType" ) +endif () + diff --git a/PluginCollection-TypePlugins/Plugin-TypeSkeleton/CMakeLists.txt b/PluginCollection-TypePlugins/Plugin-TypeSkeleton/CMakeLists.txt index e5e0fb254..14103c905 100644 --- a/PluginCollection-TypePlugins/Plugin-TypeSkeleton/CMakeLists.txt +++ b/PluginCollection-TypePlugins/Plugin-TypeSkeleton/CMakeLists.txt @@ -1,3 +1,7 @@ include (plugin) -openflipper_plugin ( INSTALLDATA Icons - ) + +if (EXISTS ${CMAKE_SOURCE_DIR}/ObjectTypes/Skeleton/Skeleton.hh) + openflipper_plugin (INSTALLDATA Icons) +else() + message( WARNING "Plugin TypeSkeleton disabled due to missing Skeleton ObjectType" ) +endif () diff --git a/PluginCollection-TypePlugins/Plugin-TypeSphere/CMakeLists.txt b/PluginCollection-TypePlugins/Plugin-TypeSphere/CMakeLists.txt index e5e0fb254..57ae58cc4 100644 --- a/PluginCollection-TypePlugins/Plugin-TypeSphere/CMakeLists.txt +++ b/PluginCollection-TypePlugins/Plugin-TypeSphere/CMakeLists.txt @@ -1,3 +1,8 @@ include (plugin) -openflipper_plugin ( INSTALLDATA Icons - ) + +if (EXISTS ${CMAKE_SOURCE_DIR}/ObjectTypes/Sphere/Sphere.hh) + openflipper_plugin (INSTALLDATA Icons) +else() + message( WARNING "Plugin TypeSphere disabled due to missing Sphere ObjectType" ) +endif () + diff --git a/PluginCollection-TypePlugins/Plugin-TypeSplatCloud/CMakeLists.txt b/PluginCollection-TypePlugins/Plugin-TypeSplatCloud/CMakeLists.txt index 2373b1f5e..3e92e2469 100644 --- a/PluginCollection-TypePlugins/Plugin-TypeSplatCloud/CMakeLists.txt +++ b/PluginCollection-TypePlugins/Plugin-TypeSplatCloud/CMakeLists.txt @@ -1,2 +1,8 @@ include (plugin) -openflipper_plugin (INSTALLDATA Icons Shaders) + +if (EXISTS ${CMAKE_SOURCE_DIR}/ObjectTypes/SplatCloud/SplatCloud.hh) + openflipper_plugin (INSTALLDATA Icons Shaders) +else() + message( WARNING "Plugin TypeSplatCloud disabled due to missing SplatCloud ObjectType" ) +endif () + diff --git a/PluginCollection-TypePlugins/Plugin-TypeTriangleMesh/CMakeLists.txt b/PluginCollection-TypePlugins/Plugin-TypeTriangleMesh/CMakeLists.txt index e5e0fb254..7029485f1 100644 --- a/PluginCollection-TypePlugins/Plugin-TypeTriangleMesh/CMakeLists.txt +++ b/PluginCollection-TypePlugins/Plugin-TypeTriangleMesh/CMakeLists.txt @@ -1,3 +1,7 @@ include (plugin) -openflipper_plugin ( INSTALLDATA Icons - ) + +if (EXISTS ${CMAKE_SOURCE_DIR}/ObjectTypes/TriangleMesh/TriangleMesh.hh) + openflipper_plugin (INSTALLDATA Icons) +else() + message( WARNING "Plugin TypeTriangleMesh disabled due to missing TriangleMesh ObjectType" ) +endif () -- GitLab