X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=inline;f=src%2FMeasureGUI%2FCMakeLists.txt;h=7bbd751773ab97841ff5ebc1f8e680d16d860068;hb=0989b7fd033d3a3f90ad2fedc01efa33eb856711;hp=31e2375ac37d2966fd994cc29f866057d0fb322b;hpb=b46831ede78cc6a4c84d76c7ddf46c3f270bc45c;p=modules%2Fgeom.git diff --git a/src/MeasureGUI/CMakeLists.txt b/src/MeasureGUI/CMakeLists.txt index 31e2375ac..7bbd75177 100755 --- a/src/MeasureGUI/CMakeLists.txt +++ b/src/MeasureGUI/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (C) 2012-2015 CEA/DEN, EDF R&D, OPEN CASCADE +# Copyright (C) 2012-2016 CEA/DEN, EDF R&D, OPEN CASCADE # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -17,14 +17,12 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -#INCLUDE(UseQt4Ext) -INCLUDE(${QT_USE_FILE}) +INCLUDE(UseQtExt) # --- options --- # additional include directories INCLUDE_DIRECTORIES( - ${QT_INCLUDE_DIRS} ${PTHREAD_INCLUDE_DIR} ${VTK_INCLUDE_DIRS} ${OMNIORB_INCLUDE_DIR} @@ -90,6 +88,8 @@ SET(MeasureGUI_HEADERS MeasureGUI_InertiaDlg.h MeasureGUI_BndBoxDlg.h MeasureGUI_DistanceDlg.h + MeasureGUI_AnnotationDlg.h + MeasureGUI_AnnotationInteractor.h MeasureGUI_AngleDlg.h MeasureGUI_MaxToleranceDlg.h MeasureGUI_WhatisDlg.h @@ -104,6 +104,7 @@ SET(MeasureGUI_HEADERS MeasureGUI_DimensionCreateTool.h MeasureGUI_DimensionInteractor.h MeasureGUI_DimensionFilter.h + MeasureGUI_definitions.h ) # header files / to be processed by moc @@ -117,6 +118,8 @@ SET(_moc_HEADERS MeasureGUI_InertiaDlg.h MeasureGUI_BndBoxDlg.h MeasureGUI_DistanceDlg.h + MeasureGUI_AnnotationDlg.h + MeasureGUI_AnnotationInteractor.h MeasureGUI_AngleDlg.h MeasureGUI_MaxToleranceDlg.h MeasureGUI_WhatisDlg.h @@ -129,16 +132,21 @@ SET(_moc_HEADERS MeasureGUI_ManageDimensionsDlg.h MeasureGUI_CreateDimensionDlg.h MeasureGUI_DimensionInteractor.h - MeasureGUI_ShapeStatisticsDlg.h ) + +IF(SALOME_USE_PLOT2DVIEWER) + LIST(APPEND _moc_HEADERS + MeasureGUI_ShapeStatisticsDlg.h + ) +ENDIF() # header files / uic wrappings -QT4_WRAP_UI(_uic_HEADERS ${_uic_files}) +QT_WRAP_UIC(_uic_HEADERS ${_uic_files}) # --- sources --- # sources / moc wrappings -QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS}) +QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS}) SET(MeasureGUI_SOURCES MeasureGUI.cxx @@ -150,6 +158,8 @@ SET(MeasureGUI_SOURCES MeasureGUI_InertiaDlg.cxx MeasureGUI_BndBoxDlg.cxx MeasureGUI_DistanceDlg.cxx + MeasureGUI_AnnotationDlg.cxx + MeasureGUI_AnnotationInteractor.cxx MeasureGUI_AngleDlg.cxx MeasureGUI_MaxToleranceDlg.cxx MeasureGUI_WhatisDlg.cxx @@ -164,15 +174,18 @@ SET(MeasureGUI_SOURCES MeasureGUI_DimensionCreateTool.cxx MeasureGUI_DimensionInteractor.cxx MeasureGUI_DimensionFilter.cxx - MeasureGUI_ShapeStatisticsDlg.cxx ${_moc_SOURCES} ${_uic_files} ) +IF(SALOME_USE_PLOT2DVIEWER) + LIST(APPEND MeasureGUI_SOURCES + MeasureGUI_ShapeStatisticsDlg.cxx + ) +ENDIF() + # --- rules --- ADD_LIBRARY(MeasureGUI ${MeasureGUI_SOURCES}) TARGET_LINK_LIBRARIES(MeasureGUI ${_link_LIBRARIES}) INSTALL(TARGETS MeasureGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS}) - -