]> SALOME platform Git repositories - modules/yacs.git/blob - src/py2yacsgui/CMakeLists.txt
Salome HOME
Merge remote-tracking branch 'origin/master' into V9_dev
[modules/yacs.git] / src / py2yacsgui / CMakeLists.txt
1 # Copyright (C) 2012-2016  CEA/DEN, EDF R&D
2 #
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, or (at your option) any later version.
7 #
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.
12 #
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
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 INCLUDE(UseQtExt)
21
22 # additional include directories
23 INCLUDE_DIRECTORIES(
24   ${QT_INCLUDES}
25   ${PROJECT_SOURCE_DIR}/src/bases
26   ${PROJECT_SOURCE_DIR}/src/engine
27   ${PROJECT_SOURCE_DIR}/src/runtime
28   ${PROJECT_SOURCE_DIR}/src/py2yacs
29   ${PROJECT_BINARY_DIR}/src/py2yacs
30   ${GUI_INCLUDE_DIRS}
31   ${OMNIORB_INCLUDE_DIR}
32   ${OMNIORB_ROOT_DIR}/include/omniORB4/internal
33   ${OMNIORBPY_INCLUDE_DIR}
34   )
35
36 # additional preprocessor / compiler flags
37 ADD_DEFINITIONS(
38   ${QT_DEFINITIONS}
39   ${GUI_DEFINITIONS}
40   ${OMNIORB_DEFINITIONS}
41   ${PYTHON_DEFINITIONS})
42
43 SET(_link_LIBRARIES
44   ${QT_LIBRARIES}
45   ${GUI_LightApp} # for PyEditor
46   py2yacslib
47   )
48
49 SET(_moc_HEADERS
50   Py2YacsDialog.hxx
51   Py2YacsModel.hxx
52   )
53
54 # sources / moc wrappings
55 QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
56
57 SET(py2yacsgui_HEADERS
58   Py2YacsModel.hxx
59   Py2YacsDialog.hxx
60   config_py2yacsgui.hxx
61   )
62
63 SET(py2yacsgui_SOURCES
64   Py2YacsDialog.cxx
65   Py2YacsModel.cxx
66   ${_moc_SOURCES}
67   )
68
69 ADD_LIBRARY(py2yacsguilib ${py2yacsgui_SOURCES})
70 TARGET_LINK_LIBRARIES(py2yacsguilib ${_link_LIBRARIES})
71 ADD_EXECUTABLE(py2yacsgui py2yacsgui.cxx)
72 TARGET_LINK_LIBRARIES(py2yacsgui py2yacsguilib)
73
74 INSTALL(TARGETS py2yacsguilib EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
75 INSTALL(TARGETS py2yacsgui DESTINATION ${SALOME_INSTALL_BINS})
76 INSTALL(FILES ${py2yacsgui_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})