Salome HOME
Update copyrights 2014.
[modules/jobmanager.git] / src / wrappers / CMakeLists.txt
1 # Copyright (C) 2012-2014  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 # --- 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   ${CAS_DEFINITIONS}
36   ${BOOST_DEFINITIONS}
37 )
38
39 # libraries to link to
40 SET(_link_LIBRARIES_Wrappers_Qt
41   ${QT_LIBRARIES}
42   BL_Bases
43 )
44
45 SET(_link_LIBRARIES_Wrappers_SALOME
46   ${CORBA_LIBS}
47   ${GUI_LightApp}
48   ${GUI_SalomeApp}
49   ${GUI_SalomeSession}
50   ${GUI_CAM}
51   ${GUI_suit}
52   ${KERNEL_SalomeIDLKernel}
53   ${_link_LIBRARIES_Wrappers_Qt}
54 )
55
56 # --- sources ---
57
58 # sources / static
59 SET(BL_Wrappers_Qt_SOURCES
60   BL_MainWindows_Wrap.hxx
61   BL_MainWindows_Qt.cxx
62   BL_MainWindows_Qt.hxx
63 )
64
65 SET(BL_Wrappers_SALOME_SOURCES
66   BL_MainWindows_Wrap.hxx
67   BL_MainWindows_SALOME.cxx
68   BL_MainWindows_SALOME.hxx
69 )
70
71 # --- rules ---
72
73 ADD_LIBRARY(BL_Wrappers_Qt ${BL_Wrappers_Qt_SOURCES})
74 TARGET_LINK_LIBRARIES(BL_Wrappers_Qt ${_link_LIBRARIES_Wrappers_Qt} )
75 INSTALL(TARGETS BL_Wrappers_Qt EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
76
77 ADD_LIBRARY(BL_Wrappers_SALOME ${BL_Wrappers_SALOME_SOURCES})
78 TARGET_LINK_LIBRARIES(BL_Wrappers_SALOME ${_link_LIBRARIES_Wrappers_SALOME} )
79 INSTALL(TARGETS BL_Wrappers_SALOME EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})