# - Try to find CHSM # Once done this will define # CHSM_FOUND - System has CHSM # CHSM_INCLUDE_DIRS - The CHSM include directories # CHSM_LIBRARIES - The libraries needed to use chsm # CHSM_DEFINITIONS - Compiler switches required for using chsm find_path(CHSM_INCLUDE_DIR chsm.h HINTS ${CMAKE_SOURCE_DIR}/../../externals/chsm/include ${CMAKE_SOURCE_DIR}/../jpp/externals/chsm/include ${JPP_ROOT}/externals/chsm/include ) find_library(CHSM_LIBRARY NAMES chsm libchsm HINTS ${CMAKE_SOURCE_DIR}/../../externals/chsm/lib ${CMAKE_SOURCE_DIR}/../jpp/externals/chsm/lib ${JPP_ROOT}/externals/chsm/lib ) set(CHSM_LIBRARIES ${CHSM_LIBRARY} ) set(CHSM_INCLUDE_DIRS ${CHSM_INCLUDE_DIR} ) include(FindPackageHandleStandardArgs) # handle the QUIETLY and REQUIRED arguments and set CHSM_FOUND to TRUE # if all listed variables are TRUE find_package_handle_standard_args(CHSM "chsm files not found, have you 'make'ed and installed it in externals/chsm/src/c++ ?" CHSM_LIBRARY CHSM_INCLUDE_DIR) mark_as_advanced(CHSM_INCLUDE_DIR CHSM_LIBRARY)