FindCOUCHBASE.cmake 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. ################################################################################
  2. # HPCC SYSTEMS software Copyright (C) 2016 HPCC Systems®.
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. ################################################################################
  16. # - Try to find the Couchbase c library
  17. # Once done this will define
  18. #
  19. # LIBCOUCHBASE_FOUND, if false, do not try to link with libev
  20. # LIBCOUCHBASE_LIBRARIES, Library path and libs
  21. # LIBCOUCHBASE_INCLUDE_DIR, where to find the libev headers
  22. IF (NOT LIBCOUCHBASE_FOUND)
  23. #couchbase.h
  24. #libcouchbase
  25. FIND_PATH (
  26. LIBCOUCHBASE_INCLUDE_DIR
  27. NAMES couchbase.h
  28. PATH_SUFFIXES libcouchbase
  29. )
  30. FIND_LIBRARY (
  31. LIBCOUCHBASE_LIBRARIES
  32. NAMES couchbase libcouchbase
  33. PATHS /usr/lib64
  34. PATH_SUFFIXES libcouchbase
  35. )
  36. include(FindPackageHandleStandardArgs)
  37. find_package_handle_standard_args(
  38. couchbase DEFAULT_MSG
  39. LIBCOUCHBASE_LIBRARIES
  40. LIBCOUCHBASE_INCLUDE_DIR
  41. )
  42. MARK_AS_ADVANCED(LIBCOUCHBASE_INCLUDE_DIR LIBCOUCHBASE_LIBRARIES)
  43. ENDIF()