Newer
Older
# - Config file for the FooBar package
# It defines the following variables
# PYTHIA6M_INCLUDE_DIRS - include directories for pythia6m
# PYTHIA6M_DEFINITIONS - definitions needed to compile against pythia6m
# PYTHIA6M_LIBRARIES - Libraries to link against
# Enable languages
enable_language(C CXX Fortran)
# Compute paths
get_filename_component(PYTHIA6M_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
set(PYTHIA6M_INCLUDE_DIRS "@CONF_INCLUDE_DIRS@/..")
set(PYTHIA6M_DEFINITIONS "@CONF_DEFINITIONS@")
# Our library dependencies (contains definitions for IMPORTED targets)
if(NOT TARGET pythia6m AND NOT pythia6m_BINARY_DIR)
include("${PYTHIA6M_CMAKE_DIR}/pythia6m-targets.cmake")
endif()
# These are IMPORTED targets created by pythia6m-targets.cmake
set(PYTHIA6M_LIBRARIES ${PYTHIA6M_LIBRARIES} ${PYTHIA6M_LIBRARIES})
# Add the external libraries
find_package(nanocernlib REQUIRED)
set(PYTHIA6M_LIBRARIES
${PYTHIA6M_LIBRARIES} ${NANOCERNLIB_LIBRARIES})
set(PYTHIA6M_INCLUDE_DIRS
${PYTHIA6M_INCLUDE_DIRS}
${NANOCERLIB_INCLUDE_DIRS})