From 7dd52b8648a98d2dcbaa98632265f82c324759b5 Mon Sep 17 00:00:00 2001 From: rnv Date: Mon, 17 Feb 2014 13:28:12 +0400 Subject: [PATCH] Add missing file. --- salome_adm/cmake_files/FindLibBatch.cmake | 54 +++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 salome_adm/cmake_files/FindLibBatch.cmake diff --git a/salome_adm/cmake_files/FindLibBatch.cmake b/salome_adm/cmake_files/FindLibBatch.cmake new file mode 100644 index 000000000..45ed85fc2 --- /dev/null +++ b/salome_adm/cmake_files/FindLibBatch.cmake @@ -0,0 +1,54 @@ +# - Find LibBatch installation +# +# The following variable are set: +# LIBBATCH_FOUND - TRUE if LibBatch installation has been found +# LIBBATCH_INCLUDE_DIRS - LibBatch headers path +# LIBBATCH_LIBRARIES - LibBatch libraries +# +# The CMake (or environment) variable LIBBATCH_ROOT_DIR can be set to +# guide the detection and indicate a root directory to look into. +# +############################################################################ +# Copyright (C) 2012-2013 CEA/DEN, EDF R&D, OPEN CASCADE +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +# + +# ------ + +IF(NOT LIBBATCH_FIND_QUIETLY) + MESSAGE(STATUS "Check for LibBatch ...") +ENDIF() + +# ------ + +SET(LIBBATCH_ROOT_DIR $ENV{LIBBATCH_ROOT_DIR} CACHE PATH "Path to the LibBatch.") +IF(LIBBATCH_ROOT_DIR) + LIST(APPEND CMAKE_PREFIX_PATH "${LIBBATCH_ROOT_DIR}") +ENDIF() + +FIND_PATH(LIBBATCH_INCLUDE_DIRS libbatch/BatchManager.hxx) +FIND_LIBRARY(LIBBATCH_LIBRARIES NAMES batch) + +INCLUDE(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(LibBatch REQUIRED_VARS LIBBATCH_INCLUDE_DIRS LIBBATCH_LIBRARIES) + +IF(LIBBATCH_FOUND) + IF(NOT LIBBATCH_FIND_QUIETLY) + MESSAGE(STATUS "LibBatch library: ${LIBBATCH_LIBRARIES}") + ENDIF() +ENDIF() -- 2.39.2