]> SALOME platform Git repositories - modules/geom.git/blob - src/GEOMGUI/CMakeLists.txt
Salome HOME
WIN32 compilation.
[modules/geom.git] / src / GEOMGUI / CMakeLists.txt
1 # Copyright (C) 2012-2013  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.
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 INCLUDE(${QT_USE_FILE})
22
23 # --- options ---
24
25 # additional include directories
26 INCLUDE_DIRECTORIES(
27   ${QT_INCLUDE_DIRS}
28   ${PTHREAD_INCLUDE_DIR}
29   ${VTK_INCLUDE_DIRS}
30   ${OMNIORB_INCLUDE_DIR}
31   ${CAS_INCLUDE_DIRS}
32   ${KERNEL_INCLUDE_DIRS}
33   ${GUI_INCLUDE_DIRS}
34   ${PROJECT_BINARY_DIR}/idl
35   ${PROJECT_BINARY_DIR}
36   ${PROJECT_SOURCE_DIR}/src/OBJECT
37   ${PROJECT_SOURCE_DIR}/src/GEOMFiltersSelection
38   ${PROJECT_SOURCE_DIR}/src/Material
39   ${PROJECT_SOURCE_DIR}/src/GEOMClient
40   ${PROJECT_SOURCE_DIR}/src/GEOMImpl
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   ${KERNEL_SALOMELocalTrace}
60   ${KERNEL_SalomeDS}
61   ${KERNEL_SalomeDSClient}
62   ${GUI_SalomeApp}
63   ${QT_QTXML_LIBRARY}
64   )
65
66 # --- headers ---
67
68 SET(GEOMGUI_HEADERS
69   GeometryGUI.h
70   GeometryGUI_Operations.h
71   GEOMGUI.h
72   GEOMPluginGUI.h
73   GEOMGUI_XmlHandler.h
74   GEOM_Displayer.h
75   GEOMGUI_OCCSelector.h
76   GEOMGUI_Selection.h
77   GEOM_GEOMGUI.hxx
78   GEOMGUI_CreationInfoWdg.h
79   )
80
81 # header files / to be processed by moc
82 SET(_moc_HEADERS 
83   GEOMGUI_CreationInfoWdg.h
84   GeometryGUI.h
85   )
86
87 # --- sources ---
88
89 # sources / moc wrappings
90 QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
91
92 SET(GEOMGUI_SOURCES
93   GeometryGUI.cxx
94   GEOMGUI.cxx
95   GEOMPluginGUI.cxx
96   GEOMGUI_XmlHandler.cxx
97   GEOM_Displayer.cxx
98   GEOMGUI_OCCSelector.cxx
99   GEOMGUI_Selection.cxx
100   GEOMGUI_CreationInfoWdg.cxx
101   ${_moc_SOURCES}
102   )
103
104 # --- resources ---
105
106 # resource files / to be processed by lrelease
107 SET(GEOMGUI_RESOURCES
108   GEOM_images.ts
109   GEOM_msg_en.ts
110   GEOM_msg_fr.ts
111   GEOM_msg_ja.ts
112 )
113
114 # --- rules ---
115
116 ADD_LIBRARY(GEOM ${GEOMGUI_SOURCES})
117 TARGET_LINK_LIBRARIES(GEOM ${_link_LIBRARIES})
118 INSTALL(TARGETS GEOM EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
119
120 INSTALL(FILES ${GEOMGUI_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
121 QT4_INSTALL_TS_RESOURCES("${GEOMGUI_RESOURCES}" "${SALOME_GEOM_INSTALL_RES_DATA}")