1 # Copyright (C) 2012-2013 CEA/DEN, EDF R&D, OPEN CASCADE
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
21 INCLUDE(${VTK_USE_FILE})
25 # additional include directories
32 ${PYTHON_INCLUDE_DIRS}
33 ${CMAKE_CURRENT_SOURCE_DIR}
34 ${PROJECT_SOURCE_DIR}/src/CAM
35 ${PROJECT_SOURCE_DIR}/src/Event
36 ${PROJECT_SOURCE_DIR}/src/LightApp
37 ${PROJECT_SOURCE_DIR}/src/LogWindow
38 ${PROJECT_SOURCE_DIR}/src/OBJECT
39 ${PROJECT_SOURCE_DIR}/src/OCCViewer
40 ${PROJECT_SOURCE_DIR}/src/ObjBrowser
41 ${PROJECT_SOURCE_DIR}/src/Plot2d
42 ${PROJECT_SOURCE_DIR}/src/PyInterp
43 ${PROJECT_SOURCE_DIR}/src/Qtx
44 ${PROJECT_SOURCE_DIR}/src/SALOME_PYQT/SALOME_PYQT_GUILight
45 ${PROJECT_SOURCE_DIR}/src/STD
46 ${PROJECT_SOURCE_DIR}/src/SUIT
49 # additional preprocessor / compiler flags
58 # libraries to link to
69 # header files / to be processed by moc
70 SET(_moc_HEADERS SalomePyQt.h)
74 # sip files / to be processed by sip
75 SET(_sip_files SalomePyQt.sip)
79 # sources / moc wrappings
80 QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
82 # sources / sip wrappings
83 PYQT4_WRAP_SIP(_sip_SOURCES ${_sip_files})
86 SET(_other_SOURCES SalomePyQt.cxx)
88 # sources / to compile
89 SET(SalomePyQt_SOURCES ${_other_SOURCES} ${_moc_SOURCES} ${_sip_SOURCES})
93 ADD_LIBRARY(SalomePyQt ${SalomePyQt_SOURCES})
94 TARGET_LINK_LIBRARIES(SalomePyQt ${_link_LIBRARIES})
95 INSTALL(TARGETS SalomePyQt DESTINATION ${SALOME_INSTALL_LIBS})
98 SET_TARGET_PROPERTIES(SalomePyQt PROPERTIES SUFFIX ".pyd" DEBUG_OUTPUT_NAME SalomePyQt_d RELEASE_OUTPUT_NAME SalomePyQt)
100 SET_TARGET_PROPERTIES(SalomePyQt PROPERTIES PREFIX "")