FIND_PATH(JACK_INCLUDE_DIR jack/jack.h) FIND_LIBRARY(JACK_LIBRARY NAMES jack) IF(JACK_INCLUDE_DIR AND JACK_LIBRARY) SET(JACK_FOUND TRUE) SET(JACK_LIBRARIES ${JACK_LIBRARY}) ENDIF(JACK_INCLUDE_DIR AND JACK_LIBRARY) IF(JACK_FOUND) IF (NOT Jack_FIND_QUIETLY) MESSAGE(STATUS "Found jack includes: ${JACK_INCLUDE_DIR}/jack/jack.h") MESSAGE(STATUS "Found jack library: ${JACK_LIBRARIES}") ENDIF (NOT Jack_FIND_QUIETLY) ELSE(JACK_FOUND) IF (Jack_FIND_REQUIRED) MESSAGE(FATAL_ERROR "Could NOT find jack development files") ENDIF (Jack_FIND_REQUIRED) ENDIF(JACK_FOUND)