-# Copyright (C) 2012-2013 CEA/DEN, EDF R&D
+# Copyright (C) 2012-2015 CEA/DEN, EDF R&D
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
-# version 2.1 of the License.
+# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
+ADD_DEFINITIONS(${MEDFILE_DEFINITIONS} ${XDR_DEFINITIONS} ${CAS_DEFINITIONS} ${BOOST_DEFINITIONS} ${OMNIORB_DEFINITIONS})
+INCLUDE(${QT_USE_FILE})
+SET(QT_LIBS "${QT_LIBRARIES}")
+INCLUDE(UseQt4Ext)
+
ADD_SUBDIRECTORY(dialogs)
-INCLUDE(${GUI_ROOT_DIR}/adm_local/cmake_files/UseQT4EXT.cmake)
SET(MEDOPGUI_SOURCES
MEDOPFactoryClient.cxx
QT4_WRAP_CPP(MEDOPGUI_HEADERS_MOC ${MEDOPGUI_HEADERS})
INCLUDE_DIRECTORIES(
- ${OMNIORB_INCLUDE_DIRS}
+ ${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIRS}
${CAS_INCLUDE_DIRS}
- ${BOOST_INCLUDE_DIRS}
- ${PTHREAD_INCLUDE_DIRS}
- ${KERNEL_ROOT_DIR}/include/salome
- ${GUI_ROOT_DIR}/include/salome
+ ${Boost_INCLUDE_DIRS}
+ ${PTHREAD_INCLUDE_DIR}
+ ${GUI_INCLUDE_DIRS}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/dialogs
${CMAKE_CURRENT_BINARY_DIR}/dialogs
${CMAKE_CURRENT_SOURCE_DIR}/../cmp
${CMAKE_CURRENT_SOURCE_DIR}/../../MEDGUI
- ${CMAKE_BINARY_DIR}/idl
- ${CMAKE_BINARY_DIR}
+ ${PROJECT_BINARY_DIR}/idl
+ ${PROJECT_BINARY_DIR}
)
SET(MEDOPGUITS_SOURCES
MED_images.ts
MED_msg_en.ts
MED_msg_fr.ts
+ MED_msg_ja.ts
+ MEDOP_msg_en.ts
+ MEDOP_msg_fr.ts
+ MEDOP_msg_ja.ts
)
-SET(COMMON_DEFINITIONS "${MED3_DEFINITIONS} ${XDR_DEFINITIONS} ${CAS_DEFINITIONS} ${BOOST_DEFINITIONS} ${PLATFORM_DEFINITIONS} ${OMNIORB_DEFINITIONS}")
+
SET(COMMON_FLAGS
${CAS_KERNEL}
- ${QT_MT_LIBS}
- ${OMNIORB_LIBS}
- ${PLATFORM_LIBS}
- ${BOOST_LIBS}
+ ${QT_MT_LIBRARIES}
+ ${OMNIORB_LIBRARIES}
+ ${PLATFORM_LIBRARIES}
+ ${BOOST_LIBRARIES}
SalomeIDLMED
MEDOPGUI_dialogs
MEDOPFactoryEngine
- ${qtx}
- ${suit}
- ${SalomeObject}
- ${SalomeLifeCycleCORBA}
- ${SalomeKernelHelpers}
- ${SalomeApp}
- ${SalomeGuiHelpers}
- ${SalomeTreeData}
- ${OpUtil}
- ${CAM}
- ${LightApp}
- ${PyConsole}
- ${SalomeGuiHelpers}
+ ${GUI_qtx}
+ ${GUI_suit}
+ ${GUI_SalomeObject}
+ ${KERNEL_SalomeLifeCycleCORBA}
+ ${KERNEL_SalomeKernelHelpers}
+ ${GUI_SalomeApp}
+ ${GUI_SalomeGuiHelpers}
+ ${GUI_SalomeTreeData}
+ ${KERNEL_OpUtil}
+ ${GUI_CAM}
+ ${GUI_LightApp}
+ ${GUI_PyConsole}
)
-#-D__WITH_MEDMEMGUI__ libMEDGUI.la
+ADD_LIBRARY(MEDOPGUI SHARED ${MEDOPGUI_SOURCES} ${MEDOPGUI_HEADERS_MOC})
IF(WITH_MEDMEMGUI)
- SET(COMMON_DEFINITIONS "${COMMON_DEFINITIONS} -D__WITH_MEDMEMGUI__")
- SET(COMMON_FLAGS ${COMMON_FLAGS} MEDGUI)
+ SET_TARGET_PROPERTIES(MEDOPGUI PROPERTIES COMPILE_FLAGS "-D__WITH_MEDMEMGUI__")
ENDIF(WITH_MEDMEMGUI)
-
-ADD_LIBRARY(MEDOPGUI SHARED ${MEDOPGUI_SOURCES} ${MEDOPGUI_HEADERS_MOC})
-SET_TARGET_PROPERTIES(MEDOPGUI PROPERTIES COMPILE_FLAGS ${COMMON_DEFINITIONS})
TARGET_LINK_LIBRARIES(MEDOPGUI ${COMMON_FLAGS})
-INSTALL(TARGETS MEDOPGUI DESTINATION ${MED_salomelib_LIBS})
-QT4_INSTALL_TS_RESOURCES("${MEDOPGUITS_SOURCES}" "${MED_salomeres_DATA}")
+INSTALL(TARGETS MEDOPGUI DESTINATION ${SALOME_INSTALL_LIBS})
+QT4_INSTALL_TS_RESOURCES("${MEDOPGUITS_SOURCES}" "${SALOME_MED_INSTALL_RES_DATA}")
FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
-INSTALL(FILES ${COMMON_HEADERS_HXX} DESTINATION ${MED_salomeinclude_HEADERS})
+INSTALL(FILES ${COMMON_HEADERS_HXX} DESTINATION ${SALOME_INSTALL_HEADERS})