From c7eba08a126f58ec6071dfb69db85ae7b00217a3 Mon Sep 17 00:00:00 2001
From: edvin <be.edvin@gmail.com>
Date: Mon, 7 Jun 2021 16:50:50 +0200
Subject: [PATCH] It can now be bulit on/for mac

---
 CMakeLists.txt |  7 +++++++
 README.md      | 14 ++++++++++++++
 2 files changed, 21 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6a79da2..ae7fce9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,6 +18,13 @@ add_subdirectory(lib/cpp-sc2)
 add_subdirectory(src)
 add_subdirectory(python-api-src)
 
+set_target_properties(civetweb-c-library PROPERTIES FOLDER contrib)
+set_target_properties(libprotobuf PROPERTIES FOLDER contrib)
+set_target_properties(libprotobuf-lite PROPERTIES FOLDER contrib)
+set_target_properties(libprotoc PROPERTIES FOLDER contrib)
+set_target_properties(protoc PROPERTIES FOLDER contrib)
+set_target_properties(ipv6-parse PROPERTIES FOLDER contrib)
+
 # Hack to make compile, these flags are otherwise set to give errors on warnings
 if (MSVC)
     set_target_properties(sc2api PROPERTIES COMPILE_FLAGS "/W4")
diff --git a/README.md b/README.md
index 9c93229..f3e644f 100644
--- a/README.md
+++ b/README.md
@@ -99,6 +99,20 @@ Studio.
 3. Run `make` to build the project (use `make -j N` if you want to use N
    threads)
 
+# How to build (Mac, untested)
+Same dependencies applies as for Windows (i think), although you don't need Visual
+Studio but you need Xcode.
+
+1. Open up a terminal, download the source code using the command: `git clone --recurse-submodules https://gitlab.liu.se/course-starcraft-ai/pycommandcenter.git`
+2. Next, enter the directory and run the command `mkdir build` followed by `cd
+build` and `cmake ../ -G Xcode ` in order to create the xcode project. Then run `open starcraft-python-api.xcodeproj` 
+
+3. Click the "play" button to bulid the library
+
+4. The library file can then be found in  `build/python-api-src/Debug`
+
+
+
 # How to use the library with PyCharm
 
 See [separate page](pycharm.md).
-- 
GitLab