Salome HOME
CMake: minimal set of changes so that MED compiles with:
[tools/medcoupling.git] / src / MEDGUI / CMakeLists.txt
1 # Copyright (C) 2012-2013  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.
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(${QT_USE_FILE})
21 INCLUDE(UseQt4Ext)
22
23 SET(MEDGUI_SOURCES
24   MEDGUIFileContentDial.cxx
25   MEDGUISelection.cxx
26   MEDGUISelectComponents.cxx
27   MEDGUIDataBaseDockWidget.cxx
28 )
29
30 SET(MEDGUI_HEADERS MEDGUIFileContentDial.h MEDGUISelectComponents.h)
31 SET(MEDGUI_FORMS MEDGUIFileContentDial.ui MEDGUISelectComponents.ui)
32 #SET(MEDGUI_RESOURCES images.qrc)
33
34 QT4_WRAP_CPP(MEDGUI_HEADERS_MOC ${MEDGUI_HEADERS})
35 QT4_WRAP_UI(MEDGUI_FORMS_HEADERS ${MEDGUI_FORMS})
36 #QT4_ADD_RESOURCES(MEDGUI_RESOURCES_RCC ${MEDGUI_RESOURCES})
37
38 INCLUDE_DIRECTORIES(
39   ${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIRS}
40   ${CAS_INCLUDE_DIRS}
41   ${BOOST_INCLUDE_DIRS}
42   ${PTHREAD_INCLUDE_DIRS}
43   ${KERNEL_ROOT_DIR}/include/salome
44   ${GUI_ROOT_DIR}/include/salome
45   ${CMAKE_CURRENT_BINARY_DIR}
46   ${CMAKE_CURRENT_BINARY_DIR}/../../idl
47   ${CMAKE_CURRENT_BINARY_DIR}/../..
48   ${CMAKE_CURRENT_SOURCE_DIR}/../MEDCalculator
49   ${CMAKE_CURRENT_SOURCE_DIR}/../MEDCoupling
50   ${CMAKE_CURRENT_SOURCE_DIR}/../INTERP_KERNEL
51   ${CMAKE_CURRENT_SOURCE_DIR}/../INTERP_KERNEL/Bases
52   ${CMAKE_CURRENT_SOURCE_DIR}/../INTERP_KERNEL/GaussPoints
53   )
54
55 SET(MEDGUITS_SOURCES
56   MED_images.ts
57   MED_msg_fr.ts
58   MED_msg_en.ts
59 )
60
61 ADD_LIBRARY(MEDGUI SHARED ${MEDGUI_SOURCES} ${MEDGUI_HEADERS_MOC} ${MEDGUI_FORMS_HEADERS})
62 SET_TARGET_PROPERTIES(MEDGUI PROPERTIES COMPILE_FLAGS "${HDF5_DEFINITIONS} ${MED3_DEFINITIONS} ${XDR_DEFINITIONS} ${CAS_DEFINITIONS} ${BOOST_DEFINITIONS} ${PLATFORM_DEFINITIONS} ${OMNIORB_DEFINITIONS}")
63 TARGET_LINK_LIBRARIES(MEDGUI medcalculator ${QT_MT_LIBS} ${CAS_KERNEL} ${BOOST_LIBS} ${GUI_LDFLAGS} ${SalomeApp} ${CAM} ${LightApp} ${qtx} ${suit} ${SalomeObject} ${PLATFORM_LIBS} ${SalomeLifeCycleCORBA})
64 INSTALL(TARGETS MEDGUI DESTINATION ${MED_salomelib_LIBS})
65 QT4_INSTALL_TS_RESOURCES("${MEDGUITS_SOURCES}" "${MED_salomeres_DATA}")