1 # Copyright (C) 2012-2013 CEA/DEN, EDF R&D
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.
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.
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
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 ADD_DEFINITIONS(${MEDFILE_DEFINITIONS} ${XDR_DEFINITIONS} ${CAS_DEFINITIONS} ${BOOST_DEFINITIONS} ${PLATFORM_DEFINITIONS} ${OMNIORB_DEFINITIONS})
22 INCLUDE(${QT_USE_FILE})
23 SET(QT_LIBS "${QT_LIBRARIES}")
26 ADD_SUBDIRECTORY(dialogs)
30 MEDOPFactoryClient.cxx
32 WorkspaceController.cxx
34 MEDEventListener_i.cxx
36 DatasourceController.cxx
40 SET(MEDOPGUI_HEADERS MEDOPModule.hxx MEDEventListener_i.hxx WorkspaceController.hxx DatasourceController.hxx)
42 QT4_WRAP_CPP(MEDOPGUI_HEADERS_MOC ${MEDOPGUI_HEADERS})
45 ${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIRS}
48 ${PTHREAD_INCLUDE_DIRS}
49 ${KERNEL_ROOT_DIR}/include/salome
50 ${GUI_ROOT_DIR}/include/salome
51 ${CMAKE_CURRENT_BINARY_DIR}
52 ${CMAKE_CURRENT_SOURCE_DIR}/dialogs
53 ${CMAKE_CURRENT_BINARY_DIR}/dialogs
54 ${CMAKE_CURRENT_SOURCE_DIR}/../cmp
55 ${CMAKE_CURRENT_SOURCE_DIR}/../../MEDGUI
56 ${CMAKE_BINARY_DIR}/idl
60 SET(MEDOPGUITS_SOURCES
78 ${SalomeLifeCycleCORBA}
79 ${SalomeKernelHelpers}
90 ADD_LIBRARY(MEDOPGUI SHARED ${MEDOPGUI_SOURCES} ${MEDOPGUI_HEADERS_MOC})
92 SET_TARGET_PROPERTIES(MEDOPGUI PROPERTIES COMPILE_FLAGS "-D__WITH_MEDMEMGUI__")
94 TARGET_LINK_LIBRARIES(MEDOPGUI ${COMMON_FLAGS})
96 INSTALL(TARGETS MEDOPGUI DESTINATION ${SALOME_INSTALL_LIBS})
97 QT4_INSTALL_TS_RESOURCES("${MEDOPGUITS_SOURCES}" "${MED_salomeres_DATA}")
99 FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
100 INSTALL(FILES ${COMMON_HEADERS_HXX} DESTINATION ${SALOME_INSTALL_HEADERS})