############################################################################
# CMakeLists.txt file for building ROOT montecarlo/pythia8 package
# @author Pere Mato, CERN
############################################################################

include_directories(${PYTHIA8_INCLUDE_DIR})

ROOT_ADD_CXX_FLAG(CMAKE_CXX_FLAGS -Wno-delete-non-virtual-dtor)
ROOT_ADD_CXX_FLAG(CMAKE_CXX_FLAGS -Wno-misleading-indentation)
ROOT_ADD_CXX_FLAG(CMAKE_CXX_FLAGS -Wno-overloaded-virtual)

ROOT_STANDARD_LIBRARY_PACKAGE(EGPythia8
                              LIBRARIES ${PYTHIA8_LIBRARIES}
                              DEPENDENCIES Core EG Graf VMC Physics)

############################################################################
# CMakeLists.txt file for building ROOT montecarlo/pythia8 package
# @author Pere Mato, CERN
############################################################################

include_directories(SYSTEM ${PYTHIA8_INCLUDE_DIR})

ROOT_ADD_CXX_FLAG(CMAKE_CXX_FLAGS -Wno-delete-non-virtual-dtor)
ROOT_ADD_CXX_FLAG(CMAKE_CXX_FLAGS -Wno-misleading-indentation)
ROOT_ADD_CXX_FLAG(CMAKE_CXX_FLAGS -Wno-overloaded-virtual)

ROOT_STANDARD_LIBRARY_PACKAGE(EGPythia8
                              LIBRARIES ${PYTHIA8_LIBRARIES}
                              DEPENDENCIES Core EG Graf VMC Physics)

Make Pythia8 a system include to avoid inheriting warnings
Make Pythia8 a system include to avoid inheriting warnings
