Salome HOME
[MEDCalc] Add dock widget for presentation parameters
[modules/med.git] / src / MEDCalc / gui / 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(${MEDFILE_DEFINITIONS} ${XDR_DEFINITIONS} ${OMNIORB_DEFINITIONS})
21 SET(QT_LIBS "${QT_LIBRARIES}")
22 INCLUDE(UseQtExt)
23
24 ADD_SUBDIRECTORY(dialogs)
25
26
27 FILE(GLOB MEDCALCGUI_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/*.cxx")
28
29 SET(MEDCALCGUI_HEADERS
30   MEDModule.hxx
31   MEDEventListener_i.hxx
32   WorkspaceController.hxx
33   DatasourceController.hxx
34   PresentationController.hxx)
35 QT_WRAP_MOC(MEDCALCGUI_HEADERS_MOC ${MEDCALCGUI_HEADERS})
36
37
38 INCLUDE_DIRECTORIES(
39   ${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIRS}
40   ${Boost_INCLUDE_DIRS}
41   ${PTHREAD_INCLUDE_DIR}
42   ${GUI_INCLUDE_DIRS}
43   ${MEDCOUPLING_INCLUDE_DIRS}
44   ${CMAKE_CURRENT_BINARY_DIR}
45   ${CMAKE_CURRENT_SOURCE_DIR}/dialogs
46   ${CMAKE_CURRENT_BINARY_DIR}/dialogs
47   ${CMAKE_CURRENT_SOURCE_DIR}/../cmp
48   ${CMAKE_CURRENT_SOURCE_DIR}/../../MEDGUI
49   ${PROJECT_BINARY_DIR}/idl
50   ${PROJECT_BINARY_DIR}
51 )
52
53 SET(MEDCALCGUITS_SOURCES
54   MED_images.ts
55   MED_msg_en.ts
56   MED_msg_fr.ts
57   MED_msg_ja.ts
58   MEDCALC_msg_en.ts
59   MEDCALC_msg_fr.ts
60   MEDCALC_msg_ja.ts
61 )
62
63 SET(COMMON_FLAGS
64   ${QT_MT_LIBRARIES}
65   ${OMNIORB_LIBRARIES}
66   ${PLATFORM_LIBRARIES}
67   SalomeIDLMED
68   MEDCALCGUI_dialogs
69   MEDFactoryEngine
70   ${GUI_qtx}
71   ${GUI_suit}
72   ${GUI_SalomeObject}
73   ${KERNEL_SalomeLifeCycleCORBA}
74   ${KERNEL_SalomeKernelHelpers}
75   ${KERNEL_SalomeDS}
76   ${GUI_SalomeApp}
77   ${GUI_SalomeGuiHelpers}
78   ${GUI_SalomeTreeData}
79   ${KERNEL_OpUtil}
80   ${GUI_CAM}
81   ${GUI_LightApp}
82   ${GUI_PyConsole}
83   ${MEDCoupling_medloader}
84   ${MEDCoupling_medcoupling}
85   ${MEDCoupling_medcouplingremapper}
86 )
87
88 ADD_LIBRARY(MEDCALCGUI SHARED ${MEDCALCGUI_SOURCES} ${MEDCALCGUI_HEADERS_MOC})
89 IF(WITH_MEDMEMGUI)
90   SET_TARGET_PROPERTIES(MEDCALCGUI PROPERTIES COMPILE_FLAGS "-D__WITH_MEDMEMGUI__")
91 ENDIF(WITH_MEDMEMGUI)
92 TARGET_LINK_LIBRARIES(MEDCALCGUI ${COMMON_FLAGS})
93
94 INSTALL(TARGETS MEDCALCGUI DESTINATION ${SALOME_INSTALL_LIBS})
95 QT_INSTALL_TS_RESOURCES("${MEDCALCGUITS_SOURCES}" "${SALOME_MED_INSTALL_RES_DATA}")
96
97 FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
98 INSTALL(FILES ${COMMON_HEADERS_HXX} DESTINATION ${SALOME_INSTALL_HEADERS})