Salome HOME
Issue #2490: Place toolbars into 3 rows by default
[modules/shaper.git] / src / SHAPERGUI / CMakeLists.txt
index 204f6c1f9eb4e23ffe6e859061a8a90fc21fa9e7..63887c6b73423f1f27a8ad463da74d1a3f084f36 100644 (file)
@@ -1,4 +1,22 @@
-## 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)
 
@@ -9,29 +27,36 @@ INCLUDE_DIRECTORIES(${QT_INCLUDES})
 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
@@ -47,6 +72,7 @@ SET(PROJECT_LIBRARIES
     ${OCCViewer}
     ${qtx}
     ${CAS_SHAPE}
+    ${SalomeObject}
 )
 
 ADD_DEFINITIONS( -DSHAPERGUI_EXPORTS ${CAS_DEFINITIONS} )
@@ -63,10 +89,14 @@ INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/XGUI
                     ${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)