summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorproller <proller@github.com>2013-02-22 02:00:44 +0400
committerIlya Zhuravlev <zhuravlevilya@ya.ru>2013-02-22 02:04:53 +0400
commitee07c3f7cf638e854518d2cfcb9c11a64412cc72 (patch)
tree18ecc46deebf58d0a4a6ca93df6a526e2720ae69 /cmake
parentef6b8bee07b9cefe7d463fabd199548d37ff2bee (diff)
downloadminetest-ee07c3f7cf638e854518d2cfcb9c11a64412cc72.tar.gz
minetest-ee07c3f7cf638e854518d2cfcb9c11a64412cc72.tar.bz2
minetest-ee07c3f7cf638e854518d2cfcb9c11a64412cc72.zip
new auto masterserver
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/FindJson.cmake18
1 files changed, 18 insertions, 0 deletions
diff --git a/cmake/Modules/FindJson.cmake b/cmake/Modules/FindJson.cmake
new file mode 100644
index 000000000..bc4e71a29
--- /dev/null
+++ b/cmake/Modules/FindJson.cmake
@@ -0,0 +1,18 @@
+# Look for json, use our own if not found
+
+#FIND_PATH(JSON_INCLUDE_DIR json.h)
+
+#FIND_LIBRARY(JSON_LIBRARY NAMES json)
+
+#IF(JSON_LIBRARY AND JSON_INCLUDE_DIR)
+# SET( JSON_FOUND TRUE )
+#ENDIF(JSON_LIBRARY AND JSON_INCLUDE_DIR)
+
+#IF(JSON_FOUND)
+# MESSAGE(STATUS "Found system json header file in ${JSON_INCLUDE_DIR}")
+# MESSAGE(STATUS "Found system json library ${JSON_LIBRARY}")
+#ELSE(JSON_FOUND)
+ SET(JSON_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/json)
+ SET(JSON_LIBRARY json)
+ MESSAGE(STATUS "Using project json library")
+#ENDIF(JSON_FOUND)