Salome HOME
Updated copyright comment
[modules/jobmanager.git] / src / wrappers / CMakeLists.txt
1 # Copyright (C) 2012-2024  CEA, EDF
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 # --- options ---
21 # additional include directories
22 INCLUDE_DIRECTORIES(
23   ${QT_INCLUDES}
24   ${OMNIORB_INCLUDE_DIR}
25   ${KERNEL_INCLUDE_DIRS}
26   ${GUI_INCLUDE_DIRS}
27   ${Boost_INCLUDE_DIRS}
28   ${PROJECT_SOURCE_DIR}/src/bases
29 )
30
31 # additional preprocessor / compiler flags
32 ADD_DEFINITIONS(
33   ${QT_DEFINITIONS}
34   ${OMNIORB_DEFINITIONS}
35   ${BOOST_DEFINITIONS}
36 )
37
38 # libraries to link to
39 SET(_link_LIBRARIES_Wrappers_Qt
40   ${QT_LIBRARIES}
41   BL_Bases
42 )
43
44 SET(_link_LIBRARIES_Wrappers_SALOME
45   ${CORBA_LIBS}
46   ${GUI_LightApp}
47   ${GUI_SalomeApp}
48   ${GUI_SalomeSession}
49   ${GUI_CAM}
50   ${GUI_suit}
51   ${KERNEL_SalomeIDLKernel}
52   ${_link_LIBRARIES_Wrappers_Qt}
53 )
54
55 # --- sources ---
56
57 # sources / static
58 SET(BL_Wrappers_Qt_SOURCES
59   BL_MainWindows_Wrap.hxx
60   BL_MainWindows_Qt.cxx
61   BL_MainWindows_Qt.hxx
62 )
63
64 SET(BL_Wrappers_SALOME_SOURCES
65   BL_MainWindows_Wrap.hxx
66   BL_MainWindows_SALOME.cxx
67   BL_MainWindows_SALOME.hxx
68 )
69
70 # --- rules ---
71
72 ADD_LIBRARY(BL_Wrappers_Qt ${BL_Wrappers_Qt_SOURCES})
73 TARGET_LINK_LIBRARIES(BL_Wrappers_Qt ${_link_LIBRARIES_Wrappers_Qt} )
74 INSTALL(TARGETS BL_Wrappers_Qt EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
75
76 ADD_LIBRARY(BL_Wrappers_SALOME ${BL_Wrappers_SALOME_SOURCES})
77 TARGET_LINK_LIBRARIES(BL_Wrappers_SALOME ${_link_LIBRARIES_Wrappers_SALOME} )
78 INSTALL(TARGETS BL_Wrappers_SALOME EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})