/CMakeModules/FindQJSON.cmake

http://github.com/tomahawk-player/tomahawk · CMake · 29 lines · 18 code · 4 blank · 7 comment · 0 complexity · e80cff72f8034aabbbf2de9f0022cb17 MD5 · raw file

  1. # Find QJSON - JSON handling library for Qt
  2. #
  3. # This module defines
  4. # QJSON_FOUND - whether the qsjon library was found
  5. # QJSON_LIBRARIES - the qjson library
  6. # QJSON_INCLUDE_DIR - the include path of the qjson library
  7. #
  8. find_library (QJSON_LIBRARIES
  9. NAMES
  10. qjson
  11. PATHS
  12. ${QJSON_LIBRARY_DIRS}
  13. ${LIB_INSTALL_DIR}
  14. ${KDE4_LIB_DIR}
  15. )
  16. find_path (QJSON_INCLUDE_DIR
  17. NAMES
  18. qjson/parser.h
  19. PATHS
  20. ${QJSON_INCLUDE_DIRS}
  21. ${INCLUDE_INSTALL_DIR}
  22. ${KDE4_INCLUDE_DIR}
  23. )
  24. include(FindPackageHandleStandardArgs)
  25. find_package_handle_standard_args(QJSON DEFAULT_MSG QJSON_LIBRARIES QJSON_INCLUDE_DIR)