From b08d52d1db02a80a0dcce36e5255fcdc14a34669 Mon Sep 17 00:00:00 2001
From: Soeren Peters <peters@irmb.tu-bs.de>
Date: Tue, 23 Jun 2020 15:43:14 +0200
Subject: [PATCH] Adds top level CMakeList.txt, which refers to the vf cpu
 and/or gpu version.

---
 CMakeLists.txt | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 CMakeLists.txt

diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 000000000..75611ce3e
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,19 @@
+cmake_minimum_required(VERSION 3.9..3.17 FATAL_ERROR)
+
+if(${CMAKE_VERSION} VERSION_LESS 3.12)
+    cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
+endif()
+
+project(VirtualFluids)
+
+
+option(BUILD_VF_CPU "Build VirtualFluids cpu variant" ON)
+option(BUILD_VF_GPU "Build VirtualFluids gpu variant" OFF)
+
+
+if (BUILD_VF_CPU)
+    add_subdirectory(cpu)
+endif()
+if(BUILD_VF_GPU)
+    add_subdirectory(gpu)
+endif()
-- 
GitLab