Salome HOME
Fix compilation problem
[modules/yacs.git] / src / salomewrap / CMakeLists.txt
1 # Copyright (C) 2012-2013  CEA/DEN, EDF R&D
2 #
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License.
7 #
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 # Lesser General Public License for more details.
12 #
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 INCLUDE(${QT_USE_FILE})
21
22 # --- options ---
23
24 # additional include directories
25 INCLUDE_DIRECTORIES(
26   ${OMNIORB_INCLUDE_DIR}
27   ${QT_INCLUDE_DIR}
28   ${KERNEL_INCLUDE_DIRS}
29   ${GUI_INCLUDE_DIRS}
30   ${PROJECT_SOURCE_DIR}/src/bases
31   )
32
33 # additional preprocessor / compiler flags
34 ADD_DEFINITIONS(
35   -DYACS_PTHREAD
36   ${PYTHON_DEFINITIONS}
37   ${OMNIORB_DEFINITIONS}
38   ${BOOST_DEFINITIONS}
39   ${QT_DEFINITIONS}
40   ${KERNEL_DEFINITIONS}
41   ${GUI_DEFINITIONS}
42   )
43
44 # libraries to link to
45 SET(_link_LIBRARIES
46   ${QT_LIBRARIES}
47   ${OMNIORB_LIBRARIES}
48   ${SALOME_LIBS}
49   ${KERNEL_SalomeIDLKernel}
50   ${GUI_CAM}
51   ${GUI_suit}
52   ${GUI_LightApp}
53   ${GUI_qtx}
54   ${GUI_QxScene}
55   ${GUI_ObjBrowser}
56   ${GUI_SalomeApp}
57   YACSlibEngine
58   )
59
60 # header files / to be processed by moc
61 SET(_moc_HEADERS
62   SalomeWrap_Module.hxx
63   WrapGraphicsView.hxx
64   )
65
66 # --- sources ---
67
68 # sources / moc wrappings
69 QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
70
71 SET(SalomeWrap_SOURCES
72   SalomeWrapExport.hxx
73   SalomeWrap_Module.hxx
74   SalomeWrap_Module.cxx
75   SalomeWrap_DataModel.hxx
76   SalomeWrap_DataModel.cxx
77   SuitWrapper.hxx
78   SuitWrapper.cxx
79   WrapGraphicsView.hxx
80   WrapGraphicsView.cxx
81   ${_moc_SOURCES}
82   )
83
84 # --- rules ---
85
86 ADD_LIBRARY(SalomeWrap ${SalomeWrap_SOURCES})
87 TARGET_LINK_LIBRARIES(SalomeWrap ${_link_LIBRARIES})
88 INSTALL(TARGETS SalomeWrap EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})