summary refs log tree commit diff
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Tweeny.cmake25
1 files changed, 25 insertions, 0 deletions
diff --git a/cmake/Tweeny.cmake b/cmake/Tweeny.cmake
new file mode 100644
index 00000000..87a2ade8
--- /dev/null
+++ b/cmake/Tweeny.cmake
@@ -0,0 +1,25 @@
+include(ExternalProject)
+
+#
+# Build tweeny
+#
+
+set(THIRD_PARTY_ROOT ${CMAKE_SOURCE_DIR}/.third-party)
+set(TWEENY_ROOT ${THIRD_PARTY_ROOT}/tweeny)
+
+set(TWEENY_INCLUDE_DIRS ${TWEENY_ROOT}/include)
+
+ExternalProject_Add(
+  Tweeny
+
+  GIT_REPOSITORY https://github.com/mobius3/tweeny
+  GIT_TAG b94ce07cfb02a0eb8ac8aaf66137dabdaea857cf
+
+  BUILD_IN_SOURCE 1
+  SOURCE_DIR ${TWEENY_ROOT}
+  CONFIGURE_COMMAND ""
+  BUILD_COMMAND ""
+  INSTALL_COMMAND ""
+)
+
+include_directories(SYSTEM ${TWEENY_ROOT}/include)