Salome HOME
Copyright update: 2016
[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} ${CAS_DEFINITIONS} ${BOOST_DEFINITIONS} ${OMNIORB_DEFINITIONS})
21
22 INCLUDE(${QT_USE_FILE})
23 INCLUDE(UseQt4Ext)
24
25 SET(MEDGUI_SOURCES
26   MEDGUIFileContentDial.cxx
27   MEDGUISelection.cxx
28   MEDGUISelectComponents.cxx
29   MEDGUIDataBaseDockWidget.cxx
30 )
31
32 SET(MEDGUI_HEADERS MEDGUIFileContentDial.h MEDGUISelectComponents.h)
33 SET(MEDGUI_FORMS MEDGUIFileContentDial.ui MEDGUISelectComponents.ui)
34 #SET(MEDGUI_RESOURCES images.qrc)
35
36 QT4_WRAP_CPP(MEDGUI_HEADERS_MOC ${MEDGUI_HEADERS})
37 QT4_WRAP_UI(MEDGUI_FORMS_HEADERS ${MEDGUI_FORMS})
38 #QT4_ADD_RESOURCES(MEDGUI_RESOURCES_RCC ${MEDGUI_RESOURCES})
39
40 INCLUDE_DIRECTORIES(
41   ${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIRS}
42   ${CAS_INCLUDE_DIRS}
43   ${Boost_INCLUDE_DIRS}
44   ${PTHREAD_INCLUDE_DIRS}
45   ${GUI_INCLUDE_DIRS}
46   ${CMAKE_CURRENT_BINARY_DIR}
47   ${CMAKE_CURRENT_BINARY_DIR}/../../idl
48   ${CMAKE_CURRENT_BINARY_DIR}/../..
49   ${CMAKE_CURRENT_SOURCE_DIR}/../MEDCalculator
50   )
51
52 SET(MEDGUITS_SOURCES
53   MED_images.ts
54   MED_msg_fr.ts
55   MED_msg_en.ts
56   MED_msg_ja.ts
57 )
58
59 ADD_LIBRARY(MEDGUI SHARED ${MEDGUI_SOURCES} ${MEDGUI_HEADERS_MOC} ${MEDGUI_FORMS_HEADERS})
60 TARGET_LINK_LIBRARIES(MEDGUI medcalculator ${QT_MT_LIBS} ${CAS_KERNEL} ${BOOST_LIBRARIES} ${GUI_LDFLAGS} ${SalomeApp} ${CAM} ${LightApp} ${qtx} ${suit} ${SalomeObject} ${PLATFORM_LIBS} ${SalomeLifeCycleCORBA})
61 INSTALL(TARGETS MEDGUI DESTINATION ${SALOME_INSTALL_LIBS})
62 QT4_INSTALL_TS_RESOURCES("${MEDGUITS_SOURCES}" "${SALOME_MED_INSTALL_RES_DATA}")