Salome HOME
Typo and whitespace fixes by Kunda
[modules/med.git] / src / MEDGUI / CMakeLists.txt
1 # Copyright (C) 2012-2016  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, 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 ADD_DEFINITIONS(${HDF5_DEFINITIONS} ${MEDFILE_DEFINITIONS} ${XDR_DEFINITIONS} ${BOOST_DEFINITIONS} ${OMNIORB_DEFINITIONS})
21
22 INCLUDE(UseQtExt)
23
24 SET(MEDGUI_SOURCES
25   MEDGUIFileContentDial.cxx
26   MEDGUISelection.cxx
27   MEDGUISelectComponents.cxx
28   MEDGUIDataBaseDockWidget.cxx
29 )
30
31 SET(MEDGUI_HEADERS MEDGUIFileContentDial.h MEDGUISelectComponents.h)
32 SET(MEDGUI_FORMS MEDGUIFileContentDial.ui MEDGUISelectComponents.ui)
33 #SET(MEDGUI_RESOURCES images.qrc)
34
35 QT_WRAP_MOC(MEDGUI_HEADERS_MOC ${MEDGUI_HEADERS})
36 QT_WRAP_UIC(MEDGUI_FORMS_HEADERS ${MEDGUI_FORMS})
37 #QT_ADD_RESOURCES(MEDGUI_RESOURCES_RCC ${MEDGUI_RESOURCES})
38
39 INCLUDE_DIRECTORIES(
40   ${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIRS}
41   ${Boost_INCLUDE_DIRS}
42   ${PTHREAD_INCLUDE_DIRS}
43   ${GUI_INCLUDE_DIRS}
44   ${CMAKE_CURRENT_BINARY_DIR}
45   ${CMAKE_CURRENT_BINARY_DIR}/../../idl
46   ${CMAKE_CURRENT_BINARY_DIR}/../..
47   ${CMAKE_CURRENT_SOURCE_DIR}/../MEDCalculator
48   )
49
50 SET(MEDGUITS_SOURCES
51   MED_images.ts
52   MED_msg_fr.ts
53   MED_msg_en.ts
54   MED_msg_ja.ts
55 )
56
57 ADD_LIBRARY(MEDGUI SHARED ${MEDGUI_SOURCES} ${MEDGUI_HEADERS_MOC} ${MEDGUI_FORMS_HEADERS})
58 TARGET_LINK_LIBRARIES(MEDGUI medcalculator ${QT_MT_LIBS} ${BOOST_LIBRARIES} ${GUI_LDFLAGS} ${SalomeApp} ${CAM} ${LightApp} ${qtx} ${suit} ${SalomeObject} ${PLATFORM_LIBS} ${SalomeLifeCycleCORBA})
59 INSTALL(TARGETS MEDGUI DESTINATION ${SALOME_INSTALL_LIBS})
60 QT_INSTALL_TS_RESOURCES("${MEDGUITS_SOURCES}" "${SALOME_MED_INSTALL_RES_DATA}")