# Copyright (C) 2012-2013 CEA/DEN, EDF R&D, OPEN CASCADE # # 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. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/UseQT4EXT.cmake) INCLUDE_DIRECTORIES( ${QT_INCLUDES} ${PTHREAD_INCLUDE_DIRS} ${PYTHON_INCLUDE_DIRS} ${KERNEL_ROOT_DIR}/include/salome ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx ${CMAKE_CURRENT_SOURCE_DIR}/../SUIT ${CMAKE_CURRENT_SOURCE_DIR}/../PyInterp ${CMAKE_CURRENT_SOURCE_DIR}/../Event ) SET(COMMON_LIBS ${PYTHON_LIBRARIES} ${QT_LIBRARIES} ${SALOMELocalTrace} qtx suit PyInterp Event) SET(GUI_HEADERS PyConsole_Editor.h PyConsole_EnhEditor.h PyConsole_Console.h ) QT4_WRAP_CPP(GUI_HEADERS_MOC ${GUI_HEADERS}) SET(PyConsole_SOURCES PyConsole_Console.cxx PyConsole_Editor.cxx PyConsole_EnhEditor.cxx PyConsole_Interp.cxx PyConsole_EnhInterp.cxx PyConsole_Event.cxx PyConsole_Request.cxx ) SET(GUITS_SOURCES resources/PyConsole_msg_en.ts resources/PyConsole_msg_fr.ts ) ADD_DEFINITIONS(${QT_DEFINITIONS} ${PYTHON_DEFINITIONS}) ADD_LIBRARY(PyConsole ${PyConsole_SOURCES} ${GUI_HEADERS_MOC}) TARGET_LINK_LIBRARIES(PyConsole ${COMMON_LIBS}) INSTALL(TARGETS PyConsole DESTINATION ${GUI_salomelib_LIBS}) SET(COMMON_HEADERS_H PyConsole.h PyConsole_Console.h PyConsole_Editor.h PyConsole_EnhEditor.h PyConsole_Interp.h PyConsole_EnhInterp.h PyConsole_Event.h PyConsole_Request.h ) INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS}) QT4_INSTALL_TS_RESOURCES("${GUITS_SOURCES}" "${GUI_salomeres_DATA}")