1 # Copyright (C) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
3 # Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 # This library is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU Lesser General Public
8 # License as published by the Free Software Foundation; either
9 # version 2.1 of the License.
11 # This library is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # Lesser General Public License for more details.
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with this library; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 # See http://www.salome-platform.org/ or
21 # email : webmaster.salome@opencascade.com
24 # This module can be used to find libBatch and set the associated variables in
25 # a project based on CMake. You can copy this file in your own project and
26 # eventually modify it according to your own needs.
27 #-----------------------------------------------------------------------------
29 IF (NOT LibBatch_FIND_QUIETLY)
30 MESSAGE(STATUS "Looking for libBatch...")
31 ENDIF (NOT LibBatch_FIND_QUIETLY)
33 FIND_PATH(LIBBATCH_INCLUDE_DIR Batch/Batch_BatchManager.hxx)
34 FIND_LIBRARY(LIBBATCH_LIBRARY Batch)
36 IF (LIBBATCH_INCLUDE_DIR AND LIBBATCH_LIBRARY)
37 SET(LibBatch_FOUND True)
38 ENDIF (LIBBATCH_INCLUDE_DIR AND LIBBATCH_LIBRARY)
42 IF (NOT LibBatch_FIND_QUIETLY)
43 MESSAGE(STATUS "Found libBatch:")
44 MESSAGE(STATUS "libBatch include directory: ${LIBBATCH_INCLUDE_DIR}")
45 MESSAGE(STATUS "libBatch library: ${LIBBATCH_LIBRARY}")
46 ENDIF (NOT LibBatch_FIND_QUIETLY)
50 IF (LibBatch_FIND_REQUIRED)
51 MESSAGE(FATAL_ERROR "libBatch not found")
52 ELSE (LibBatch_FIND_REQUIRED)
53 IF (NOT LibBatch_FIND_QUIETLY)
54 MESSAGE(STATUS "libBatch not found")
55 ENDIF (NOT LibBatch_FIND_QUIETLY)
56 ENDIF (LibBatch_FIND_REQUIRED)
58 ENDIF (LibBatch_FOUND)