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} ${OMNIORB_DEFINITIONS})
21 INCLUDE(${QT_USE_FILE})
22 SET(QT_LIBS "${QT_LIBRARIES}")
25 ADD_SUBDIRECTORY(dialogs)
29 MEDOPFactoryClient.cxx
31 WorkspaceController.cxx
33 MEDEventListener_i.cxx
35 DatasourceController.cxx
39 SET(MEDOPGUI_HEADERS MEDOPModule.hxx MEDEventListener_i.hxx WorkspaceController.hxx DatasourceController.hxx)
41 QT4_WRAP_CPP(MEDOPGUI_HEADERS_MOC ${MEDOPGUI_HEADERS})
44 ${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIRS}
47 ${PTHREAD_INCLUDE_DIR}
48 ${KERNEL_INCLUDE_DIRS}
50 ${CMAKE_CURRENT_BINARY_DIR}
51 ${CMAKE_CURRENT_SOURCE_DIR}/dialogs
52 ${CMAKE_CURRENT_BINARY_DIR}/dialogs
53 ${CMAKE_CURRENT_SOURCE_DIR}/../cmp
54 ${CMAKE_CURRENT_SOURCE_DIR}/../../MEDGUI
55 ${PROJECT_BINARY_DIR}/idl
59 SET(MEDOPGUITS_SOURCES
78 ${KERNEL_SalomeLifeCycleCORBA}
79 ${KERNEL_SalomeKernelHelpers}
81 ${GUI_SalomeGuiHelpers}
89 ADD_LIBRARY(MEDOPGUI SHARED ${MEDOPGUI_SOURCES} ${MEDOPGUI_HEADERS_MOC})
91 SET_TARGET_PROPERTIES(MEDOPGUI PROPERTIES COMPILE_FLAGS "-D__WITH_MEDMEMGUI__")
93 TARGET_LINK_LIBRARIES(MEDOPGUI ${COMMON_FLAGS})
95 INSTALL(TARGETS MEDOPGUI DESTINATION ${SALOME_INSTALL_LIBS})
96 QT4_INSTALL_TS_RESOURCES("${MEDOPGUITS_SOURCES}" "${SALOME_MED_INSTALL_RES_DATA}")
98 FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
99 INSTALL(FILES ${COMMON_HEADERS_HXX} DESTINATION ${SALOME_INSTALL_HEADERS})