]> SALOME platform Git repositories - modules/geom.git/blob - src/GEOMGUI/CMakeLists.txt
Salome HOME
Update copyright: 2016
[modules/geom.git] / src / GEOMGUI / CMakeLists.txt
1 # Copyright (C) 2012-2016  CEA/DEN, EDF R&D, OPEN CASCADE
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, or (at your option) any later version.
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(UseQt4Ext)
21
22 # --- options ---
23
24 # additional include directories
25 INCLUDE_DIRECTORIES(
26   ${QT_INCLUDE_DIRS}
27   ${PTHREAD_INCLUDE_DIR}
28   ${VTK_INCLUDE_DIRS}
29   ${OMNIORB_INCLUDE_DIR}
30   ${CAS_INCLUDE_DIRS}
31   ${KERNEL_INCLUDE_DIRS}
32   ${GUI_INCLUDE_DIRS}
33   ${PROJECT_BINARY_DIR}/idl
34   ${PROJECT_BINARY_DIR}
35   ${PROJECT_SOURCE_DIR}/src/OBJECT
36   ${PROJECT_SOURCE_DIR}/src/GEOMFiltersSelection
37   ${PROJECT_SOURCE_DIR}/src/Material
38   ${PROJECT_SOURCE_DIR}/src/GEOMClient
39   ${PROJECT_SOURCE_DIR}/src/GEOMImpl
40   ${PROJECT_SOURCE_DIR}/src/GEOMUtils
41   ${CMAKE_CURRENT_SOURCE_DIR}
42   )
43
44 # additional preprocessor / compiler flags
45 ADD_DEFINITIONS(
46   ${CAS_DEFINITIONS}
47   ${OMNIORB_DEFINITIONS}
48   ${QT_DEFINITIONS}
49   ${OPENCV_DEFINITIONS}
50   )
51
52 # libraries to link to
53 SET(_link_LIBRARIES
54   GEOMObject
55   GEOMClient
56   GEOMFiltersSelection
57   Material
58   GEOMImpl
59   GEOMUtils
60   ${KERNEL_SALOMELocalTrace}
61   ${KERNEL_SalomeDS}
62   ${KERNEL_SalomeDSClient}
63   ${GUI_SalomeApp}
64   )
65
66 # --- headers ---
67
68 SET(GEOMGUI_HEADERS
69   GeometryGUI.h
70   GeometryGUI_Operations.h
71   GEOMGUI.h
72   GEOMPluginGUI.h
73   GEOM_Displayer.h
74   GEOMGUI_OCCSelector.h
75   GEOMGUI_Selection.h
76   GEOM_GEOMGUI.hxx
77   GEOMGUI_CreationInfoWdg.h
78   GEOMGUI_TextTreeWdg.h
79   GEOMGUI_DimensionProperty.h
80   )
81
82 # header files / to be processed by moc
83 SET(_moc_HEADERS 
84   GEOMGUI_CreationInfoWdg.h
85   GEOMGUI_TextTreeWdg.h
86   GeometryGUI.h
87   )
88
89 # --- resources ---
90
91 # resource files / to be processed by rcc
92 SET(_rcc_RESOURCES GEOMGUI.qrc)
93
94 # resource files / to be processed by lrelease
95 SET(_ts_RESOURCES
96   GEOM_images.ts
97   GEOM_msg_en.ts
98   GEOM_msg_fr.ts
99   GEOM_msg_ja.ts
100 )
101
102 # --- sources ---
103
104 # sources / moc wrappings
105 QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
106
107 # sources / rcc wrappings
108 QT4_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
109
110 SET(GEOMGUI_SOURCES
111   GeometryGUI.cxx
112   GEOMGUI.cxx
113   GEOMPluginGUI.cxx
114   GEOM_Displayer.cxx
115   GEOMGUI_OCCSelector.cxx
116   GEOMGUI_Selection.cxx
117   GEOMGUI_CreationInfoWdg.cxx
118   GEOMGUI_TextTreeWdg.cxx
119   GEOMGUI_DimensionProperty.cxx
120   ${_moc_SOURCES}
121   ${_rcc_SOURCES}
122   )
123
124 # --- rules ---
125
126 ADD_LIBRARY(GEOM ${GEOMGUI_SOURCES})
127 TARGET_LINK_LIBRARIES(GEOM ${_link_LIBRARIES})
128 INSTALL(TARGETS GEOM EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
129
130 INSTALL(FILES ${GEOMGUI_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
131 QT4_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_GEOM_INSTALL_RES_DATA}")