PageRenderTime 52ms CodeModel.GetById 30ms app.highlight 1ms RepoModel.GetById 20ms app.codeStats 0ms

/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
 9find_library (QJSON_LIBRARIES
10    NAMES
11    qjson
12    PATHS
13    ${QJSON_LIBRARY_DIRS}
14    ${LIB_INSTALL_DIR}
15    ${KDE4_LIB_DIR}
16)
17
18find_path (QJSON_INCLUDE_DIR
19    NAMES
20    qjson/parser.h
21    PATHS
22    ${QJSON_INCLUDE_DIRS}
23    ${INCLUDE_INSTALL_DIR}
24    ${KDE4_INCLUDE_DIR}
25)
26
27include(FindPackageHandleStandardArgs)
28find_package_handle_standard_args(QJSON DEFAULT_MSG QJSON_LIBRARIES QJSON_INCLUDE_DIR)
29