Salome HOME
Fix some bashisms and potential errors in generated shell scripts
[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-2014  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.
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
36 #  email : webmaster.salome@opencascade.com
37 ###############################################################
38
39 ### Initialisation performed by CONFIGURE_PACKAGE_CONFIG_FILE:
40 @PACKAGE_INIT@
41
42 ### First the generic stuff for a standard module:
43 SET(LIBBATCH_INCLUDE_DIRS "@PACKAGE_CONF_INCLUDE_DIRS@")
44
45 # Load the dependencies for the libraries of @PROJECT_NAME@ 
46 # (contains definitions for IMPORTED targets). This is only 
47 # imported if we are not built as a subproject (in this case targets are already there)
48 IF(NOT batch AND NOT @PROJECT_NAME@_BINARY_DIR)
49   INCLUDE("@PACKAGE_INSTALL_CMAKE_CONFIG_DIR@/@PROJECT_NAME@Targets.cmake")
50 ENDIF()   
51
52 # These are IMPORTED targets created by @PROJECT_NAME@Targets.cmake
53 SET(LIBBATCH_LIBRARIES batch)
54
55 # Package root dir:
56 SET_AND_CHECK(LIBBATCH_ROOT_DIR_EXP "@PACKAGE_CMAKE_INSTALL_PREFIX@")
57
58 #### Now the specificities
59
60 # Options exported by the package:
61 SET(LIBBATCH_LOCAL_SUBMISSION @LIBBATCH_LOCAL_SUBMISSION@)
62 SET(LIBBATCH_PYTHON_WRAPPING @LIBBATCH_PYTHON_WRAPPING@)
63
64 SET_AND_CHECK(PTHREAD_ROOT_DIR_EXP "@PACKAGE_PTHREAD_ROOT_DIR@")
65
66 IF(LIBBATCH_PYTHON_WRAPPING)
67   SET_AND_CHECK(LIBBATCH_PYTHONPATH "@PACKAGE_LIBBATCH_PYTHONPATH@")
68   SET_AND_CHECK(PYTHON_ROOT_DIR_EXP "@PACKAGE_PYTHON_ROOT_DIR@")
69   SET_AND_CHECK(SWIG_ROOT_DIR_EXP "@PACKAGE_SWIG_ROOT_DIR@")
70 ENDIF()
71