diff --git a/External/APEGlue/CMakeLists.txt b/External/APEGlue/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..2d15c37642d548a11b8df0cd5cad08a8ab1bc9eb --- /dev/null +++ b/External/APEGlue/CMakeLists.txt @@ -0,0 +1,56 @@ +# $Id: CMakeLists.txt 782163 2016-11-03 15:44:29Z kama $ +# +# CMake configuration building APE as part of the release build. +# To be kept in sync with the requirements file of the package. +# + +# Set the name of the package: +atlas_subdir( APEGlue ) + +# Set up its package dependencies: +atlas_depends_on_subdirs( + PRIVATE Externals/yampl ) + +# External dependencies: +find_package( TBB ) + +# In release recompilation mode finish here: +if( ATLAS_RELEASE_MODE ) + return() +endif() + +# Get the offline repository location, if it's set in the environment: +if( ENV{SVNROOT} ) + set( _svnroot $ENV{SVNROOT} ) +else() + set( _svnroot "svn+ssh://svn.cern.ch/reps/atlasoff" ) +endif() + +message(STATUS "SAMI TBBPAth=${TBB_INSTALL_DIR}") +# Build the package for the build area: +ExternalProject_Add( APE + PREFIX ${CMAKE_BINARY_DIR} + SVN_REPOSITORY ${_svnroot}/Offloading/APE/tags/APE-01-02-00 + CMAKE_CACHE_ARGS + -DTBB_INSTALL_DIR:PATH=${TBB_DIR} + -DYAMPL_DIR:PATH=${CMAKE_BINARY_DIR}/${ATLAS_PLATFORM} + -DBOOST_ROOT:PATH=${BOOST_ROOT} + -DBOOST_INCLUDEDIR:PATH=${BOOST_INCLUDEDIR} + -DCMAKE_PREFIX_PATH:PATH=${YAMLCPP_ROOT} + -DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_CURRENT_BINARY_DIR}/build + -DCMAKE_SYSTEM_IGNORE_PATH:STRING=/usr/include;/usr/lib;/usr/lib32;/usr/lib64 + INSTALL_DIR ${CMAKE_BINARY_DIR}/${ATLAS_PLATFORM} + LOG_CONFIGURE 1 ) +ExternalProject_Add_Step( APE buildinstall + COMMAND ${CMAKE_COMMAND} -E remove_directory + ${CMAKE_CURRENT_BINARY_DIR}/build/lib/cmake + COMMAND ${CMAKE_COMMAND} -E copy_directory + ${CMAKE_CURRENT_BINARY_DIR}/build/ <INSTALL_DIR> + COMMENT "Installing APE into the build area" + DEPENDEES install ) +add_dependencies( APE yampl ) +add_dependencies( Package_APEGlue APE ) + +# Install APE: +install( DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/build/ + DESTINATION . USE_SOURCE_PERMISSIONS OPTIONAL ) diff --git a/External/APEGlue/cmt/requirements b/External/APEGlue/cmt/requirements new file mode 100644 index 0000000000000000000000000000000000000000..2da4349c631143be7e2b9e5a9128a39ad0ab8390 --- /dev/null +++ b/External/APEGlue/cmt/requirements @@ -0,0 +1,29 @@ +package APEGlue + +author sami.kama@cern.ch +manager sami.kama@cern.ch + +use ExternalPolicy ExternalPolicy-* External + +use yampl yampl-* External +# Version to be kept in sync with the CMake configuration: +macro APE_native_version "1.2.0" +# macro mandatory for distribution kit building +macro APEGlue_native_version "$(APE_native_version)" + +macro APE_home "${ATLAS_EXTERNAL}/APE/${APE_native_version}/${CMTCONFIG}" +#macro APE_home "${CMTINSTALLAREA}/${CMTCONFIG}" + +include_dirs "$(APE_home)/include" +macro APE_libs "${APE_home}/lib" +macro APE_bin "${APE_home}/bin" + +macro APEGlue_linkopts "-L$(APE_libs) -lAPEContainer " +path_remove LD_LIBRARY_PATH "/APE/" +path_append LD_LIBRARY_PATH "${APE_libs}" + +path_remove PATH "/APE/" +path_append PATH "${APE_bin}" + +macro APEGlue_export_paths "${APE_home}" +