Salome HOME
[MEDCalc] Preparation for presentation edition: connect double click
[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}/..
50   ${CMAKE_CURRENT_SOURCE_DIR}/../cmp
51   ${CMAKE_CURRENT_SOURCE_DIR}/../../MEDGUI
52   ${PROJECT_BINARY_DIR}/idl
53   ${PROJECT_BINARY_DIR}
54 )
55
56 SET(MEDCALCGUITS_SOURCES
57   MED_images.ts
58   MED_msg_en.ts
59   MED_msg_fr.ts
60   MED_msg_ja.ts
61   MEDCALC_msg_en.ts
62   MEDCALC_msg_fr.ts
63   MEDCALC_msg_ja.ts
64 )
65
66 SET(COMMON_FLAGS
67   ${QT_MT_LIBRARIES}
68   ${OMNIORB_LIBRARIES}
69   ${PLATFORM_LIBRARIES}
70   SalomeIDLMED
71   MEDCALCGUI_dialogs
72   MEDFactoryEngine
73   ${GUI_qtx}
74   ${GUI_suit}
75   ${GUI_SalomeObject}
76   ${KERNEL_SalomeLifeCycleCORBA}
77   ${KERNEL_SalomeKernelHelpers}
78   ${KERNEL_SalomeDS}
79   ${GUI_SalomeApp}
80   ${GUI_SalomeGuiHelpers}
81   ${GUI_SalomeTreeData}
82   ${KERNEL_OpUtil}
83   ${GUI_CAM}
84   ${GUI_LightApp}
85   ${GUI_PyConsole}
86   ${MEDCoupling_medloader}
87   ${MEDCoupling_medcoupling}
88   ${MEDCoupling_medcouplingremapper}
89 )
90
91 ADD_LIBRARY(MEDCALCGUI SHARED ${MEDCALCGUI_SOURCES} ${MEDCALCGUI_HEADERS_MOC})
92 IF(WITH_MEDMEMGUI)
93   SET_TARGET_PROPERTIES(MEDCALCGUI PROPERTIES COMPILE_FLAGS "-D__WITH_MEDMEMGUI__")
94 ENDIF(WITH_MEDMEMGUI)
95 TARGET_LINK_LIBRARIES(MEDCALCGUI ${COMMON_FLAGS})
96
97 INSTALL(TARGETS MEDCALCGUI DESTINATION ${SALOME_INSTALL_LIBS})
98 QT_INSTALL_TS_RESOURCES("${MEDCALCGUITS_SOURCES}" "${SALOME_MED_INSTALL_RES_DATA}")
99
100 FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
101 INSTALL(FILES ${COMMON_HEADERS_HXX} DESTINATION ${SALOME_INSTALL_HEADERS})