Salome HOME
Copyright update 2021
[tools/libbatch.git] / misc / LibBatchConfig.cmake.in
1 # - Config file for the @PROJECT_NAME@ package
2 # It defines the following variables. 
3 # Specific to the pacakge @PROJECT_NAME@ itself:
4 #  @PROJECT_NAME_UC@_INCLUDE_DIRS - include directories 
5 #  @PROJECT_NAME_UC@_LIBRARIES    - libraries to link against
6 #  @PROJECT_NAME_UC@_ROOT_DIR_EXP - the root path of the installation providing this CMake file
7 #
8 # Other stuff specific to this package:
9 #  1. Some flags:
10 #   LIBBATCH_LOCAL_SUBMISSION - boolean indicating whether LibBatch was built with the 
11 #   local submission support.
12 #   LIBBATCH_PYTHON_WRAPPING  - boolean indicating whether the Python wrapping was built.
13 #   LIBBATCH_PYTHONPATH       - (if above is True) path to the Python wrapping. 
14
15 ###############################################################
16 # Copyright (C) 2007-2021  CEA/DEN, EDF R&D, OPEN CASCADE
17 #
18 # Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
19 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
20 #
21 # This library is free software; you can redistribute it and/or
22 # modify it under the terms of the GNU Lesser General Public
23 # License as published by the Free Software Foundation; either
24 # version 2.1 of the License, or (at your option) any later version.
25 #
26 # This library is distributed in the hope that it will be useful,
27 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
29 # Lesser General Public License for more details.
30 #
31 # You should have received a copy of the GNU Lesser General Public
32 # License along with this library; if not, write to the Free Software
33 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
34 #
35 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
36 #
37
38 ### Initialisation performed by CONFIGURE_PACKAGE_CONFIG_FILE:
39 @PACKAGE_INIT@
40
41 ### First the generic stuff for a standard module:
42 SET(LIBBATCH_INCLUDE_DIRS "@PACKAGE_CONF_INCLUDE_DIRS@")
43
44 # Load the dependencies for the libraries of @PROJECT_NAME@ 
45 # (contains definitions for IMPORTED targets). This is only 
46 # imported if we are not built as a subproject (in this case targets are already there)
47 IF(NOT batch AND NOT @PROJECT_NAME@_BINARY_DIR)
48   INCLUDE("@PACKAGE_INSTALL_CMAKE_CONFIG_DIR@/@PROJECT_NAME@Targets.cmake")
49 ENDIF()   
50
51 # These are IMPORTED targets created by @PROJECT_NAME@Targets.cmake
52 SET(LIBBATCH_LIBRARIES batch)
53
54 # Package root dir:
55 SET_AND_CHECK(LIBBATCH_ROOT_DIR_EXP "@PACKAGE_CMAKE_INSTALL_PREFIX@")
56
57 #### Now the specificities
58
59 # Options exported by the package:
60 SET(LIBBATCH_LOCAL_SUBMISSION @LIBBATCH_LOCAL_SUBMISSION@)
61 SET(LIBBATCH_PYTHON_WRAPPING @LIBBATCH_PYTHON_WRAPPING@)
62
63 SET_AND_CHECK(PTHREAD_ROOT_DIR_EXP "@PACKAGE_PTHREAD_ROOT_DIR@")
64
65 IF(LIBBATCH_PYTHON_WRAPPING)
66   SET_AND_CHECK(LIBBATCH_PYTHONPATH "@PACKAGE_LIBBATCH_PYTHONPATH@")
67   SET_AND_CHECK(PYTHON_ROOT_DIR_EXP "@PACKAGE_PYTHON_ROOT_DIR@")
68   SET_AND_CHECK(SWIG_ROOT_DIR_EXP "@PACKAGE_SWIG_ROOT_DIR@")
69 ENDIF()
70