# - Try to find JPP # Once done this will define # JPP_FOUND - System has JPP # JPP_INCLUDE_DIR - The JPP include directories # JPP_LIBRARIES - The libraries needed to use JPP find_path(JPP_ROOT setenv.sh HINTS ${CMAKE_SOURCE_DIR}/../../ ${CMAKE_SOURCE_DIR}/../jpp/ ${JPP_ROOT}/ ) find_library(DAQ_CHSM_LIBRARY NAMES DAQ_CHSM libDAQ_CHSM HINTS ${JPP_ROOT}/out/Linux/lib/ ${JPP_ROOT}/out/Linux/lib/ ) find_library(LANG_LIBRARY NAMES lang liblang HINTS ${JPP_ROOT}/out/Linux/lib/ ${JPP_ROOT}/out/Linux/lib/ ) set(JPP_LIBRARIES ${DAQ_CHSM_LIBRARY} ${LANG_LIBRARY}) set(JPP_INCLUDE_DIR ${JPP_ROOT}/software ) include(FindPackageHandleStandardArgs) # handle the QUIETLY and REQUIRED arguments and set JPP_FOUND to TRUE # if all listed variables are TRUE find_package_handle_standard_args(JPP "JPP not found." JPP_LIBRARIES JPP_INCLUDE_DIR) mark_as_advanced(JPP_INCLUDE_DIR JPP_LIBRARIES)