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