CMake script to find QJson

This commit is contained in:
craig.p.drummond
2014-03-25 19:45:40 +00:00
committed by craig.p.drummond
parent 835c68eacd
commit a97828537a

14
cmake/FindQJSON.cmake Normal file
View File

@@ -0,0 +1,14 @@
# - Try to find QJSON
# Once done this will define
#
# QJSON_FOUND - system has QJson
# QJSON_INCLUDE_DIR - the libqjson include directory
# QJSON_LIBRARIES - The libqjson libraries
find_path(QJSON_INCLUDE_DIR qjson/parser.h)
find_library(QJSON_LIBRARIES qjson)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(QJSON DEFAULT_MSG QJSON_INCLUDE_DIR QJSON_LIBRARIES)
mark_as_advanced(QJSON_INCLUDE_DIR QJSON_LIBRARIES)