diff --git a/External/RestFrames/CMakeLists.txt b/External/RestFrames/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..2c8c2e06d8d8ece595d64f9ab70442d9efd41f72 --- /dev/null +++ b/External/RestFrames/CMakeLists.txt @@ -0,0 +1,45 @@ +# +# Package building RestFrames +# + +# Set the package name: +atlas_subdir( RestFrames ) + +# In release recompilation mode stop here: +if( ATLAS_RELEASE_MODE ) + return() +endif() + +# Decide whether to request debug symbols from the build: +if( "${CMAKE_BUILD_TYPE}" STREQUAL "Release" OR + "${CMAKE_BUILD_TYPE}" STREQUAL "MinSizeRel" OR + "${CMAKE_BUILD_TYPE}" STREQUAL "" ) + set( _restFramesExtraConfig "--disable-debug" ) +else() + set( _restFramesExtraConfig "--enable-debug" ) +endif() + +# Temporary directory for the build results: +set( _buildDir + ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/RestFramesBuild ) + +# Set up the build of RestFrames for the build area: +ExternalProject_Add( RestFrames + PREFIX ${CMAKE_BINARY_DIR} + URL https://github.com/crogan/RestFrames/archive/v1.0.1.tar.gz + URL_MD5 668e3ca6f301172d7e67b5e85b1ab6d2 + INSTALL_DIR ${CMAKE_BINARY_DIR}/${ATLAS_PLATFORM} + CONFIGURE_COMMAND ./configure + --prefix=${_buildDir} --enable-shared --disable-static --enable-allcxxplugins + ${_restFramesExtraConfig} + BUILD_IN_SOURCE 1 + BUILD_COMMAND make + COMMAND make install + INSTALL_COMMAND ${CMAKE_COMMAND} -E copy_directory + ${_buildDir}/ <INSTALL_DIR> + ) +add_dependencies( Package_RestFrames RestFrames ) + +# Set up its installation: +install( DIRECTORY ${_buildDir}/ + DESTINATION . USE_SOURCE_PERMISSIONS OPTIONAL ) diff --git a/External/RestFrames/README.md b/External/RestFrames/README.md new file mode 100644 index 0000000000000000000000000000000000000000..a99958af614774e8789e7edf5a92ff3e2f7363c3 --- /dev/null +++ b/External/RestFrames/README.md @@ -0,0 +1,4 @@ +RestFrames +========== + +This package builds [RestFrames](http://restframes.com) using sources from [github](https://github.com/crogan/RestFrames/). diff --git a/Projects/AnalysisBaseExternals/package_filters.txt b/Projects/AnalysisBaseExternals/package_filters.txt index 570f19265726035a6faaa959df65af9f291f1586..d8dddd106f1637a0de35f4bea17d46a2a3926fcc 100644 --- a/Projects/AnalysisBaseExternals/package_filters.txt +++ b/Projects/AnalysisBaseExternals/package_filters.txt @@ -10,5 +10,6 @@ + External/Lhapdf + External/MCUtils + External/Python ++ External/RestFrames + External/ROOT - .* diff --git a/Projects/AthAnalysisExternals/package_filters.txt b/Projects/AthAnalysisExternals/package_filters.txt index 3cb62b8cd80dac3de66f4b6ca21149e39cc5b292..8012725b0879aaa54fb3637bb51efcd11c29a940 100644 --- a/Projects/AthAnalysisExternals/package_filters.txt +++ b/Projects/AthAnalysisExternals/package_filters.txt @@ -9,6 +9,7 @@ + External/Lhapdf #+ External/MCUtils #+ External/Python ++ External/RestFrames #+ External/ROOT + External/CheckerGccPlugins