Salome HOME
updated copyright message
[modules/kernel.git] / src / ResourcesManager / CMakeLists.txt
1 # Copyright (C) 2012-2023  CEA, EDF, OPEN CASCADE
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_DIRECTORIES(
21   ${LIBXML2_INCLUDE_DIR}
22   ${PTHREAD_INCLUDE_DIR}
23   ${OMNIORB_INCLUDE_DIR}
24   ${PROJECT_BINARY_DIR}/salome_adm
25   ${CMAKE_CURRENT_SOURCE_DIR}/../Basics
26   ${CMAKE_CURRENT_SOURCE_DIR}/../SALOMELocalTrace
27   ${CMAKE_CURRENT_SOURCE_DIR}/../NamingService
28   ${CMAKE_CURRENT_SOURCE_DIR}/../Utils
29   ${PROJECT_BINARY_DIR}/idl
30 )
31
32
33 # This local variable defines the list of dependent libraries common to all target in this package.
34 SET(COMMON_LIBS
35   SalomeNS
36   OpUtil
37   SALOMEBasics
38   SalomeIDLKernel
39   ${LIBXML2_LIBRARIES}
40 )
41
42 SET(ResourcesManager_SOURCES
43     SALOME_ResourcesCatalog_Parser.cxx
44     SALOME_ResourcesCatalog_Handler.cxx
45     SALOME_LoadRateManager.cxx
46     ResourcesManager.cxx
47 )
48
49 ADD_DEFINITIONS(${OMNIORB_DEFINITIONS} ${LIBXML2_DEFINITIONS})
50
51 ADD_LIBRARY(ResourcesManager ${ResourcesManager_SOURCES})
52 TARGET_LINK_LIBRARIES(ResourcesManager SALOMEBasics SALOMELocalTrace ${LIBXML2_LIBRARIES})
53 INSTALL(TARGETS ResourcesManager EXPORT ${PROJECT_NAME}TargetGroup 
54     DESTINATION ${SALOME_INSTALL_LIBS})
55
56 SET(SalomeResourcesManager_SOURCES
57   SALOME_ResourcesManager.cxx
58   SALOME_ResourcesManager_Client.cxx
59   SALOME_ResourcesManager_Common.cxx
60 )
61 ADD_LIBRARY(SalomeResourcesManager ${SalomeResourcesManager_SOURCES})
62 TARGET_LINK_LIBRARIES(SalomeResourcesManager ResourcesManager ${COMMON_LIBS})
63 INSTALL(TARGETS SalomeResourcesManager EXPORT ${PROJECT_NAME}TargetGroup
64         DESTINATION ${SALOME_INSTALL_LIBS})
65
66 SET(COMMON_HEADERS_HXX
67   ResourcesManager.hxx
68   ResourcesManager_Defs.hxx
69   SALOME_LoadRateManager.hxx
70   SALOME_ResourcesCatalog_Parser.hxx
71   SALOME_ResourcesManager.hxx
72   SALOME_ResourcesManager_Client.hxx
73   SALOME_ResourcesManager_Common.hxx
74   )
75 INSTALL(FILES ${COMMON_HEADERS_HXX} DESTINATION ${SALOME_INSTALL_HEADERS})