diff options
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/FindJack.cmake | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/cmake/FindJack.cmake b/cmake/FindJack.cmake new file mode 100644 index 0000000..1391d98 --- /dev/null +++ b/cmake/FindJack.cmake @@ -0,0 +1,18 @@ +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) |