diff options
author | Peng Wu <alexepico@gmail.com> | 2016-11-29 15:29:13 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2016-11-29 15:29:13 +0800 |
commit | 710b68d071ee95a58421acbdfca8154ba56502ac (patch) | |
tree | eef93c54f20f8c85d5e14f4f21aca4338c61937f /cmake/FindKyotoCabinet.cmake | |
parent | fecc795f90768a926a28c34636f593440f1af9a9 (diff) | |
download | libpinyin-710b68d071ee95a58421acbdfca8154ba56502ac.tar.gz libpinyin-710b68d071ee95a58421acbdfca8154ba56502ac.tar.xz libpinyin-710b68d071ee95a58421acbdfca8154ba56502ac.zip |
update cmake sub-directory
Diffstat (limited to 'cmake/FindKyotoCabinet.cmake')
-rw-r--r-- | cmake/FindKyotoCabinet.cmake | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cmake/FindKyotoCabinet.cmake b/cmake/FindKyotoCabinet.cmake new file mode 100644 index 0000000..db5f85d --- /dev/null +++ b/cmake/FindKyotoCabinet.cmake @@ -0,0 +1,14 @@ +find_path(KyotoCabinet_INCLUDE_PATH kccommon.h) +find_library(KyotoCabinet_LIBRARY NAMES kyotocabinet.lib libkyotocabinet.a kyotocabinet) +if(KyotoCabinet_INCLUDE_PATH AND KyotoCabinet_LIBRARY) + set(KyotoCabinet_FOUND TRUE) +endif(KyotoCabinet_INCLUDE_PATH AND KyotoCabinet_LIBRARY) +if(KyotoCabinet_FOUND) + if(NOT KyotoCabinet_FIND_QUIETLY) + message(STATUS "Found KyotoCabinet: ${KyotoCabinet_LIBRARY}") + endif(NOT KyotoCabinet_FIND_QUIETLY) +else(KyotoCabinet_FOUND) + if(KyotoCabinet_FIND_REQUIRED) + message(FATAL_ERROR "Could not find kyotocabinet library.") + endif(KyotoCabinet_FIND_REQUIRED) +endif(KyotoCabinet_FOUND) |