Salome HOME
[MEDCalc] Introduce ProcessingController
[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   ProcessingController.hxx
36   )
37 QT_WRAP_MOC(MEDCALCGUI_HEADERS_MOC ${MEDCALCGUI_HEADERS})
38
39
40 INCLUDE_DIRECTORIES(
41   ${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIRS}
42   ${Boost_INCLUDE_DIRS}
43   ${PTHREAD_INCLUDE_DIR}
44   ${GUI_INCLUDE_DIRS}
45   ${MEDCOUPLING_INCLUDE_DIRS}
46   ${CMAKE_CURRENT_BINARY_DIR}
47   ${CMAKE_CURRENT_SOURCE_DIR}/dialogs
48   ${CMAKE_CURRENT_BINARY_DIR}/dialogs
49   ${CMAKE_CURRENT_SOURCE_DIR}/../cmp
50   ${CMAKE_CURRENT_SOURCE_DIR}/../../MEDGUI
51   ${PROJECT_BINARY_DIR}/idl
52   ${PROJECT_BINARY_DIR}
53 )
54
55 SET(MEDCALCGUITS_SOURCES
56   MED_images.ts
57   MED_msg_en.ts
58   MED_msg_fr.ts
59   MED_msg_ja.ts
60   MEDCALC_msg_en.ts
61   MEDCALC_msg_fr.ts
62   MEDCALC_msg_ja.ts
63 )
64
65 SET(COMMON_FLAGS
66   ${QT_MT_LIBRARIES}
67   ${OMNIORB_LIBRARIES}
68   ${PLATFORM_LIBRARIES}
69   SalomeIDLMED
70   MEDCALCGUI_dialogs
71   MEDFactoryEngine
72   ${GUI_qtx}
73   ${GUI_suit}
74   ${GUI_SalomeObject}
75   ${KERNEL_SalomeLifeCycleCORBA}
76   ${KERNEL_SalomeKernelHelpers}
77   ${KERNEL_SalomeDS}
78   ${GUI_SalomeApp}
79   ${GUI_SalomeGuiHelpers}
80   ${GUI_SalomeTreeData}
81   ${KERNEL_OpUtil}
82   ${GUI_CAM}
83   ${GUI_LightApp}
84   ${GUI_PyConsole}
85   ${MEDCoupling_medloader}
86   ${MEDCoupling_medcoupling}
87   ${MEDCoupling_medcouplingremapper}
88 )
89
90 ADD_LIBRARY(MEDCALCGUI SHARED ${MEDCALCGUI_SOURCES} ${MEDCALCGUI_HEADERS_MOC})
91 IF(WITH_MEDMEMGUI)
92   SET_TARGET_PROPERTIES(MEDCALCGUI PROPERTIES COMPILE_FLAGS "-D__WITH_MEDMEMGUI__")
93 ENDIF(WITH_MEDMEMGUI)
94 TARGET_LINK_LIBRARIES(MEDCALCGUI ${COMMON_FLAGS})
95
96 INSTALL(TARGETS MEDCALCGUI DESTINATION ${SALOME_INSTALL_LIBS})
97 QT_INSTALL_TS_RESOURCES("${MEDCALCGUITS_SOURCES}" "${SALOME_MED_INSTALL_RES_DATA}")
98
99 FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
100 INSTALL(FILES ${COMMON_HEADERS_HXX} DESTINATION ${SALOME_INSTALL_HEADERS})