Salome HOME
62bfc346066aa7b877b98d059472a0ce25922eda
[tools/ydefx.git] / src / gui / CMakeLists.txt
1 # Copyright (C) 2019  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 #INCLUDE_DIRECTORIES(
22 #  ${QT_INCLUDES}
23 #  ${PROJECT_SOURCE_DIR}/src/cpp
24 #)
25
26 #ADD_DEFINITIONS(
27 #  ${QT_DEFINITIONS}
28 #  ${GUI_DEFINITIONS}
29 #  ${PYTHON_DEFINITIONS}
30 #)
31 SET(CMAKE_AUTOMOC ON)
32
33 INCLUDE_DIRECTORIES(
34   ${PROJECT_SOURCE_DIR}/src/cpp
35   ${PYTHON_INCLUDE_DIR}
36 )
37
38 ADD_DEFINITIONS(
39   ${PYTHON_DEFINITIONS}
40 )
41
42 SET(YDEFX_SOURCES
43   ResourceWidget.cxx
44   ParamsConfig.cxx
45   PathsConfig.cxx
46   QuickConfig.cxx
47 )
48
49 SET(YDEFX_HEADERS
50   ResourceWidget.hxx
51 )
52
53 SET(YDEFX_link_LIBRARIES
54   Qt5::Widgets
55   ydefx
56 )
57
58 ADD_LIBRARY(ydefxgui ${YDEFX_SOURCES})
59 TARGET_LINK_LIBRARIES(ydefxgui ${YDEFX_link_LIBRARIES})
60 TARGET_INCLUDE_DIRECTORIES(ydefxgui PUBLIC
61                           $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/gui>
62                           $<INSTALL_INTERFACE:include>)
63
64 ADD_EXECUTABLE(ydefxgui.exe ydefxgui.cxx)
65 TARGET_LINK_LIBRARIES(ydefxgui.exe ydefxgui)