aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorPřemysl Janouch <p@janouch.name>2018-10-18 07:44:09 +0200
committerPřemysl Janouch <p@janouch.name>2018-10-18 07:49:36 +0200
commitdf38bcf7758a3b59a15390cd00a16f8807bc055f (patch)
treec9d9a92cc5102a70febaee4cc52d34956b27f021 /cmake
parent2a071d319bc0f28787316b169ce93343b549685d (diff)
parent1c52f9e37ed07e93c21f84779d209ee196360006 (diff)
downloadjson-rpc-shell-df38bcf7758a3b59a15390cd00a16f8807bc055f.tar.gz
json-rpc-shell-df38bcf7758a3b59a15390cd00a16f8807bc055f.tar.xz
json-rpc-shell-df38bcf7758a3b59a15390cd00a16f8807bc055f.zip
Merge in a JSON-RPC 2.0 test server
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindLibMagic.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/cmake/FindLibMagic.cmake b/cmake/FindLibMagic.cmake
new file mode 100644
index 0000000..9bed3b3
--- /dev/null
+++ b/cmake/FindLibMagic.cmake
@@ -0,0 +1,10 @@
+# Public Domain
+
+find_library (LIBMAGIC_LIBRARIES magic)
+find_path (LIBMAGIC_INCLUDE_DIRS magic.h)
+
+include (FindPackageHandleStandardArgs)
+find_package_handle_standard_args (LibMagic DEFAULT_MSG
+ LIBMAGIC_LIBRARIES LIBMAGIC_INCLUDE_DIRS)
+
+mark_as_advanced (LIBMAGIC_LIBRARIES LIBMAGIC_INCLUDE_DIRS)