CMake script to find QJson
This commit is contained in:
committed by
craig.p.drummond
parent
835c68eacd
commit
a97828537a
14
cmake/FindQJSON.cmake
Normal file
14
cmake/FindQJSON.cmake
Normal 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)
|
||||
Reference in New Issue
Block a user