diff --git a/CMakeLists.txt b/CMakeLists.txt index 6a79da24e0e71bc955c0d424ecbfa47ca4db98a0..ae7fce9a5dc737320f7fb210935e964a54cb5004 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 9c93229a0e450e81c500781a5797adc91ca61c00..f3e644f116c313b168581322251fa721d8f0ad8c 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).