Skip to content
Snippets Groups Projects
CMakeLists.txt 1.01 KiB
Newer Older
Fons Rademakers's avatar
Fons Rademakers committed
############################################################################
# CMakeLists.txt file for building ROOT montecarlo/pythia6 package
# @author Pere Mato, CERN
############################################################################

  set(PYTHIA6_LIBRARIES)
  if(ROOT_PLATFORM STREQUAL linux)
    string(REGEX REPLACE "-Wl,--no-undefined" "" CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}")
  elseif(ROOT_PLATFORM STREQUAL macosx)
    set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -undefined dynamic_lookup")
  endif()
  if(MSVC)
    SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /SAFESEH:NO ")
    link_directories($ENV{LIB})
  endif()
ROOT_STANDARD_LIBRARY_PACKAGE(EGPythia6
  HEADERS
    TMCParticle.h
    TPythia6Calls.h
    TPythia6Decayer.h
    TPythia6.h
  SOURCES
    src/TMCParticle.cxx
    src/TPythia6.cxx
    src/TPythia6Decayer.cxx
  LIBRARIES
    ${PYTHIA6_LIBRARIES}
  DEPENDENCIES
    Core
    EG
    Graf
    Physics
    VMC
)