From 58c3ab19e7d2e47e65425c078155237b8540e316 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Bergstr=C3=B6m?= <davbe125@student.liu.se>
Date: Thu, 21 Jun 2018 14:43:37 +0200
Subject: [PATCH] Add sc2client-api to cmake

---
 CMakeLists.txt | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7f5525f..a159ef1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,6 +1,19 @@
 cmake_minimum_required (VERSION 2.8.12)
 project (starcraft-python-api)
 
+# Build with C++14 support, required by sc2api
+set(CMAKE_CXX_STARDARD 14)
+
+# Allow creating filters for projects in visual studio
+set_property(GLOBAL PROPERTY USE_FOLDERS ON)
+
+# Disable building for examples in the sc2api submodule
+set(BUILD_API_EXAMPLES OFF CACHE INTERNAL "" FORCE)
+
+# Disable building for tests in the sc2api submodule
+set(BUILD_API_TESTS OFF CACHE INTERNAL "" FORCE)
+
 add_subdirectory(lib/pybind11)
+add_subdirectory(lib/s2client-api)
 
 pybind11_add_module(library library.cxx)
-- 
GitLab