-## Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+## Copyright (C) 2014-2017 CEA/DEN, EDF R&D
+##
+## This library is free software; you can redistribute it and/or
+## modify it under the terms of the GNU Lesser General Public
+## License as published by the Free Software Foundation; either
+## version 2.1 of the License, or (at your option) any later version.
+##
+## This library is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+## Lesser General Public License for more details.
+##
+## You should have received a copy of the GNU Lesser General Public
+## License along with this library; if not, write to the Free Software
+## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+##
+## See http:##www.salome-platform.org/ or
+## email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
+##
INCLUDE(UseQtExt)
ADD_DEFINITIONS(${QT_DEFINITIONS})
SET(PROJECT_HEADERS
- SHAPER_SHAPERGUI.h
- SHAPERGUI.h
- SHAPERGUI_DataModel.h
- SHAPERGUI_OCCSelector.h
- SHAPERGUI_SalomeViewer.h
- SHAPERGUI_NestedButton.h
+ SHAPER_SHAPERGUI.h
+ SHAPERGUI.h
+ SHAPERGUI_DataModel.h
+ SHAPERGUI_OCCSelector.h
+ SHAPERGUI_SalomeViewer.h
+ SHAPERGUI_NestedButton.h
+)
+
+SET(PROJECT_MOC_HEADERS
+ SHAPERGUI.h
+ SHAPERGUI_DataModel.h
+ SHAPERGUI_NestedButton.h
+ SHAPERGUI_SalomeViewer.h
)
# sources / moc wrappings
-QT_WRAP_MOC(PROJECT_AUTOMOC ${PROJECT_HEADERS})
+QT_WRAP_MOC(PROJECT_AUTOMOC ${PROJECT_MOC_HEADERS})
SET(PROJECT_SOURCES
- SHAPERGUI.cpp
- SHAPERGUI_DataModel.cpp
- SHAPERGUI_OCCSelector.cpp
- SHAPERGUI_SalomeViewer.cpp
- SHAPERGUI_NestedButton.cpp
+ SHAPERGUI.cpp
+ SHAPERGUI_DataModel.cpp
+ SHAPERGUI_OCCSelector.cpp
+ SHAPERGUI_SalomeViewer.cpp
+ SHAPERGUI_NestedButton.cpp
)
SET(PROJECT_RESOURCES
- ${CMAKE_CURRENT_BINARY_DIR}/LightApp.xml
- ${CMAKE_CURRENT_BINARY_DIR}/SalomeApp.xml
- resources/shaper.png
+ ${CMAKE_CURRENT_BINARY_DIR}/LightApp.xml
+ ${CMAKE_CURRENT_BINARY_DIR}/SalomeApp.xml
+ resources/shaper.png
)
SET(PROJECT_LIBRARIES
${OCCViewer}
${qtx}
${CAS_SHAPE}
+ ${SalomeObject}
)
ADD_DEFINITIONS( -DSHAPERGUI_EXPORTS ${CAS_DEFINITIONS} )
${CAS_INCLUDE_DIRS}
)
+IF(${HAVE_SALOME})
+ INCLUDE_DIRECTORIES(${SALOME_KERNEL_INCLUDE})
+ENDIF(${HAVE_SALOME})
+
ADD_LIBRARY(SHAPER SHARED
- ${PROJECT_SOURCES}
- ${PROJECT_HEADERS}
- ${PROJECT_AUTOMOC}
+ ${PROJECT_SOURCES}
+ ${PROJECT_HEADERS}
+ ${PROJECT_AUTOMOC}
)
ADD_DEPENDENCIES(SHAPER XGUI)