FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/Batch)
-INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/Batch/ DESTINATION share/Batch/doc)
+INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/Batch/ DESTINATION share/libbatch/doc)
# email : webmaster.salome@opencascade.com
INSTALL(FILES check_libbatch.m4
- DESTINATION share/Batch/misc)
+ DESTINATION share/libbatch/misc)
-GET_TARGET_PROPERTY(LIBBATCH_ABS_PATH Batch LOCATION)
+GET_TARGET_PROPERTY(LIBBATCH_ABS_PATH batch LOCATION)
GET_FILENAME_COMPONENT(LIBBATCH_REAL_NAME ${LIBBATCH_ABS_PATH} NAME)
-configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libBatchConfig.cmake.in
- ${CMAKE_CURRENT_BINARY_DIR}/libBatchConfig.cmake @ONLY)
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libbatchConfig.cmake.in
+ ${CMAKE_CURRENT_BINARY_DIR}/libbatchConfig.cmake @ONLY)
-INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/libBatchConfig.cmake
+INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/libbatchConfig.cmake
DESTINATION lib)
-dnl Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
+dnl Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
dnl
-dnl Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-dnl CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+dnl Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+dnl CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
dnl
-dnl This library is free software; you can redistribute it and/or
-dnl modify it under the terms of the GNU Lesser General Public
-dnl License as published by the Free Software Foundation; either
-dnl version 2.1 of the License.
+dnl This library is free software; you can redistribute it and/or
+dnl modify it under the terms of the GNU Lesser General Public
+dnl License as published by the Free Software Foundation; either
+dnl version 2.1 of the License.
dnl
-dnl This library is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-dnl Lesser General Public License for more details.
+dnl This library is distributed in the hope that it will be useful,
+dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
+dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+dnl Lesser General Public License for more details.
dnl
-dnl You should have received a copy of the GNU Lesser General Public
-dnl License along with this library; if not, write to the Free Software
-dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+dnl You should have received a copy of the GNU Lesser General Public
+dnl License along with this library; if not, write to the Free Software
+dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
dnl
-dnl See http://www.salome-platform.org/ or
-dnl email : webmaster.salome@opencascade.com
+dnl See http://www.salome-platform.org/ or
+dnl email : webmaster.salome@opencascade.com
dnl
# CHECK_LIBBATCH
-# This macro can be used to find libBatch and set the associated variables in
+# This macro can be used to find libbatch and set the associated variables in
# a project based on autoconf. You can copy this file in your own project and
# eventually modify it according to your own needs.
# ----------------------------------------------------------------------------
AC_DEFUN([CHECK_LIBBATCH],[
-AC_MSG_NOTICE(Checking for libBatch library)
+AC_MSG_NOTICE(Checking for libbatch library)
AC_SUBST(LIBBATCH_INCLUDES)
AC_SUBST(LIBBATCH_LIBS)
if test "x$LIBBATCH_DIR" != "x" ; then
LOCAL_INCLUDES="-I$LIBBATCH_DIR/include"
if test "x$LIBBATCH_DIR" = "x/usr" ; then
- LOCAL_LIBS="-lBatch"
+ LOCAL_LIBS="-lbatch"
else
- LOCAL_LIBS="-L$LIBBATCH_DIR/lib -lBatch"
+ LOCAL_LIBS="-L$LIBBATCH_DIR/lib -lbatch"
fi
else
LOCAL_INCLUDES="-I/usr/include"
- LOCAL_LIBS="-lBatch"
+ LOCAL_LIBS="-lbatch"
fi
-# libBatch headers
+# libbatch headers
CPPFLAGS_old="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $LOCAL_INCLUDES"
-AC_CHECK_HEADER(Batch/Batch_BatchManager.hxx,
+AC_CHECK_HEADER(libbatch/Batch_BatchManager.hxx,
libbatch_ok="yes",
libbatch_ok="no")
CPPFLAGS="$CPPFLAGS_old"
if test "x$libbatch_ok" = "xyes" ; then
- # libBatch library
+ # libbatch library
LIBS_old=$LIBS
LIBS="$LIBS $LOCAL_LIBS"
LIBBATCH_LIBS="$LOCAL_LIBS"
fi
-AC_MSG_RESULT(for libBatch: $libbatch_ok)
+AC_MSG_RESULT(for libbatch: $libbatch_ok)
])
+++ /dev/null
-# Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
-#
-# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-#
-# 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
-
-get_filename_component(SELF_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
-get_filename_component(LIBBATCH_ROOT_DIR "${SELF_DIR}/.." ABSOLUTE)
-set(LIBBATCH_INCLUDE_DIRS "${LIBBATCH_ROOT_DIR}/include/Batch")
-set(LIBBATCH_LIBRARIES "${LIBBATCH_ROOT_DIR}/lib/@LIBBATCH_REAL_NAME@")
-set(LIBBATCH_RUNTIME_LIBRARY_DIRS "${LIBBATCH_ROOT_DIR}/lib")
-set(LIBBATCH_PYTHONPATH "${LIBBATCH_ROOT_DIR}/lib/python@PYTHON_VERSION@/site-packages")
--- /dev/null
+# Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+#
+# 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
+
+get_filename_component(SELF_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
+get_filename_component(LIBBATCH_ROOT_DIR "${SELF_DIR}/.." ABSOLUTE)
+set(LIBBATCH_INCLUDE_DIRS "${LIBBATCH_ROOT_DIR}/include/libbatch")
+set(LIBBATCH_LIBRARIES "${LIBBATCH_ROOT_DIR}/lib/@LIBBATCH_REAL_NAME@")
+set(LIBBATCH_RUNTIME_LIBRARY_DIRS "${LIBBATCH_ROOT_DIR}/lib")
+set(LIBBATCH_PYTHONPATH "${LIBBATCH_ROOT_DIR}/lib/python@PYTHON_VERSION@/site-packages")
SET(HDR_FILES_BUILD CACHE INTERNAL "")
-add_library (Batch SHARED ${SRC_FILES})
+add_library(batch SHARED ${SRC_FILES})
include_directories(${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/Core)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/Local)
-target_link_libraries(Batch ${PTHREAD_LIBRARY})
+target_link_libraries(batch ${PTHREAD_LIBRARY})
IF (WIN32)
- target_link_libraries(Batch ws2_32)
+ target_link_libraries(batch ws2_32)
ENDIF (WIN32)
# If necessary, activate all warnings (useful for debugging and code cleaning)
# add_definitions(-Wall -Werror -ansi -pedantic)
-INSTALL(TARGETS Batch DESTINATION lib)
-INSTALL(FILES ${HDR_FILES} DESTINATION include/Batch)
+INSTALL(TARGETS batch DESTINATION lib)
+INSTALL(FILES ${HDR_FILES} DESTINATION include/libbatch)
IF (BUILD_PYTHON_WRAPPING AND Python_FOUND AND SWIG_FOUND)
add_subdirectory (Python)
# Build the test programs and add the tests
add_executable(Test_eLSF Test_eLSF.cxx)
-target_link_libraries(Test_eLSF Batch SimpleParser)
+target_link_libraries(Test_eLSF batch SimpleParser)
IF (HAS_SSH)
ADD_TEST(eLSF_SSH Test_eLSF SSH)
# Build the test programs and add the tests
add_executable(Test_eLL Test_eLL.cxx)
-target_link_libraries(Test_eLL Batch SimpleParser)
+target_link_libraries(Test_eLL batch SimpleParser)
IF (HAS_SSH)
ADD_TEST(eLL_SSH Test_eLL SSH)
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/Test_Local_config.h.in ${CMAKE_CURRENT_BINARY_DIR}/Test_Local_config.h)
add_executable(Test_Local_SH Test_Local_SH.cxx)
- target_link_libraries(Test_Local_SH Batch SimpleParser)
+ target_link_libraries(Test_Local_SH batch SimpleParser)
ADD_TEST(Local_SH Test_Local_SH)
ENDIF (HAS_SH)
IF (HAS_SSH)
add_executable(Test_Local_SSH Test_Local_SSH.cxx)
- target_link_libraries(Test_Local_SSH Batch SimpleParser)
+ target_link_libraries(Test_Local_SSH batch SimpleParser)
ADD_TEST(Local_SSH Test_Local_SSH)
ENDIF (HAS_SSH)
IF (HAS_RSH)
add_executable(Test_Local_RSH Test_Local_RSH.cxx)
- target_link_libraries(Test_Local_RSH Batch SimpleParser)
+ target_link_libraries(Test_Local_RSH batch SimpleParser)
ADD_TEST(Local_RSH Test_Local_RSH)
ENDIF (HAS_RSH)
# Build the test programs and add the tests
add_executable(Test_ePBS Test_ePBS.cxx)
-target_link_libraries(Test_ePBS Batch SimpleParser)
+target_link_libraries(Test_ePBS batch SimpleParser)
IF (HAS_SSH)
ADD_TEST(ePBS_SSH Test_ePBS SSH)
SET(SWIG_SRC_FILE libBatch_Swig.i)
SET_SOURCE_FILES_PROPERTIES(${SWIG_SRC_FILE} PROPERTIES CPLUSPLUS ON
SWIG_FLAGS "-shadow")
-SWIG_ADD_MODULE(libBatch_Swig python ${SWIG_SRC_FILE})
-SWIG_LINK_LIBRARIES(libBatch_Swig Batch ${PYTHON_LIBRARIES})
+SWIG_ADD_MODULE(libbatch python ${SWIG_SRC_FILE})
+SWIG_LINK_LIBRARIES(libbatch batch ${PYTHON_LIBRARIES})
-INSTALL(TARGETS ${SWIG_MODULE_libBatch_Swig_REAL_NAME} DESTINATION lib/python${PYTHON_VERSION}/site-packages)
-INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/libBatch_Swig.py
+INSTALL(TARGETS ${SWIG_MODULE_libbatch_REAL_NAME} DESTINATION lib/python${PYTHON_VERSION}/site-packages)
+INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/libbatch.py
DESTINATION lib/python${PYTHON_VERSION}/site-packages)
-SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES libBatch_Swig.py)
+SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES libbatch.py)
IF (TEST_ENABLED)
add_subdirectory(Test)
import sys
import time
-# Import libBatch library
-from libBatch_Swig import *
+# Import libbatch library
+from libbatch import *
def work():
print "*******************************************************************************************"
/* Le nom du module Python tel qu'il est importe */
-%module libBatch_Swig
+%module libbatch
/* generate docstrings with types */
%feature("autodoc", "1");
# Build the test programs and add the tests
add_executable(Test_eSlurm Test_eSlurm.cxx)
-target_link_libraries(Test_eSlurm Batch SimpleParser)
+target_link_libraries(Test_eSlurm batch SimpleParser)
IF (HAS_SSH)
ADD_TEST(eSlurm_SSH Test_eSlurm SSH)
# Build the test programs and add the tests
add_executable(Test_eVishnu Test_eVishnu.cxx)
-target_link_libraries(Test_eVishnu Batch SimpleParser)
+target_link_libraries(Test_eVishnu batch SimpleParser)
IF (HAS_SSH)
ADD_TEST(eVishnu_SSH Test_eVishnu SSH)