Newer
Older
############################################################################
# CMakeLists.txt file for building ROOT montecarlo/pythia6 package
# @author Pere Mato, CERN
############################################################################
Pere Mato Vila
committed
if(pythia6_nolink)
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()
Pere Mato Vila
committed
else()
if(MSVC)
SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /SAFESEH:NO ")
link_directories($ENV{LIB})
endif()
Pere Mato Vila
committed
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