diff options
author | Thomas Groman <tgroman@nuegia.net> | 2020-06-01 18:13:44 -0700 |
---|---|---|
committer | Thomas Groman <tgroman@nuegia.net> | 2020-06-01 18:13:44 -0700 |
commit | effdcc9b1cf185f24e67d9e627a77d823bcfef8f (patch) | |
tree | 5c1c85ecce87af175eb2dcfcc77929b2577e344e /cmake | |
parent | 8d810413cd6a126dde0353555c21ac210e6cc7a2 (diff) | |
download | twinkle-effdcc9b1cf185f24e67d9e627a77d823bcfef8f.tar twinkle-effdcc9b1cf185f24e67d9e627a77d823bcfef8f.tar.gz twinkle-effdcc9b1cf185f24e67d9e627a77d823bcfef8f.tar.lz twinkle-effdcc9b1cf185f24e67d9e627a77d823bcfef8f.tar.xz twinkle-effdcc9b1cf185f24e67d9e627a77d823bcfef8f.zip |
added jack to cmake buildsystem
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) |