Commit e96833e2 authored by Lennart Huth's avatar Lennart Huth Committed by Lennart Huth
Browse files

added FindMUPIX8DAQ.cmake to correctly link the libraries

parent 0e5fd444
# - Try to find the MuPix telescope DAQ
# Once done this will define
# MUPIX8DAQ_FOUND - System has EUDAQ
# MUPIX8DAQ_INCLUDE_DIR - The EUDAQ main include directories
# MUPIX8DAQ_LIBRARY - The libraries needed to use EUDAQ
MESSAGE(STATUS "Looking for MuPix Telescope Readout...")
FIND_PATH(MUPIX8DAQ_INCLUDE_DIR NAMES "library/telescope_frame.hpp" "library/blockfile.hpp" PATHS "$ENV{MUPIX8DAQ}")
MESSAGE(STATUS "telescope_frame.hpp => ${MUPIX8DAQ_INCLUDE_DIR}")
IF(MUPIX8DAQ_INCLUDE_DIR)
SET(MUPIX8DAQ_INC_FOUND TRUE)
MESSAGE(STATUS "Found MUPIX8DAQ headers: ${MUPIX8DAQ_INCLUDE_DIR}")
ENDIF()
FIND_LIBRARY(MUPIX8DAQ_LIBRARY NAMES "libtelescope" HINTS "$ENV{MUPIX8DAQ}/build/library")
MESSAGE(STATUS "libMuPix8 => ${MUPIX8DAQ_LIBRARY}")
IF(MUPIX8DAQ_LIBRARY)
SET(MUPIX8DAQ_LIB_FOUND TRUE)
MESSAGE(STATUS "Found MuPix8DAQ library: ${MUPIX8DAQ_LIBRARY}")
ENDIF()
IF(MUPIX8DAQ_LIB_FOUND AND MUPIX8DAQ_INC_FOUND)
SET(MUPIX8DAQ_FOUND TRUE)
MESSAGE(STATUS "MUPIX8DAQ Found true")
ENDIF()
mark_as_advanced(MUPIX8DAQ_LIBRARY MUPIX8DAQ_INCLUDE_DIR)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment