@PACKAGE_INIT@

SET(SHERPA-MC_VERSION @SHERPA_VERSION@)
SET(SHERPA-MC_VERSION_MAJOR  @SHERPA_VERSION_MAJOR@)
SET(SHERPA-MC_VERSION_MINOR  @SHERPA_VERSION_MINOR@)
SET(SHERPA-MC_VERSION_PATCH  @SHERPA_VERSION_PATCH@)
include(${CMAKE_CURRENT_LIST_DIR}/SHERPATargets.cmake)

if(@SHERPA_ENABLE_MPI@)
  set(MPIEXEC_EXECUTABLE @MPIEXEC_EXECUTABLE@)
  message(STATUS "AMEGIC: Set MPIEXEC_EXECUTABLE=@MPIEXEC_EXECUTABLE@")
  find_package(MPI REQUIRED)
  message(STATUS "AMEGIC: Found MPIEXEC_EXECUTABLE=${MPIEXEC_EXECUTABLE}")
endif()
macro(amegic_handle_shared_library  mylib)
  if(@SHERPA_ENABLE_MPI@)
     target_link_libraries(${mylib} PRIVATE MPI::MPI_CXX)
  endif()
  target_link_libraries(${mylib} PRIVATE SHERPA::All)
  target_compile_features(${mylib} PRIVATE cxx_std_11)
endmacro()

