summary refs log tree commit diff
path: root/deps/cmake
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-09-07 20:05:30 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-09-07 20:05:30 +0300
commit9e8f0b7409ff34b1235908b4c9d619b2a43d7a11 (patch)
tree558863c4a701f159492b0ce700db3b29c8969e1c /deps/cmake
parentFix double href links on username pills (diff)
downloadnheko-9e8f0b7409ff34b1235908b4c9d619b2a43d7a11.tar.xz
Initial support for sending markdown formatted messages
fixes #283
Diffstat (limited to 'deps/cmake')
-rw-r--r--deps/cmake/Maddy.cmake20
1 files changed, 20 insertions, 0 deletions
diff --git a/deps/cmake/Maddy.cmake b/deps/cmake/Maddy.cmake
new file mode 100644
index 00000000..699d214d
--- /dev/null
+++ b/deps/cmake/Maddy.cmake
@@ -0,0 +1,20 @@
+set(WINDOWS_FLAGS "")
+
+if(MSVC)
+    set(WINDOWS_FLAGS "-DCMAKE_GENERATOR_PLATFORM=x64")
+endif()
+
+ExternalProject_Add(
+   Maddy
+
+   URL ${MADDY_URL}
+   URL_HASH SHA256=${MADDY_HASH}
+
+   BUILD_IN_SOURCE 1
+   SOURCE_DIR ${DEPS_BUILD_DIR}/maddy
+   CONFIGURE_COMMAND ${CMAKE_COMMAND}
+        -DCMAKE_INSTALL_PREFIX=${DEPS_INSTALL_DIR}
+        ${DEPS_BUILD_DIR}/maddy
+        ${WINDOWS_FLAGS})
+
+list(APPEND THIRD_PARTY_DEPS Maddy)