Skip to content

In a Hurry

James Bradbury edited this page Jan 25, 2022 · 1 revision

...and you already have a development environment set up, understand CMake, and have the SC source available?

Cool:

mkdir -p build && cd build
cmake -DSC_PATH=<location of your SC source> ..
make install

This will assemble a clean package in release-packaging/FluidCorpusManipulation.

An alternative to setting up / running CMake directly on the command line is to install the CMake GUI, or use to use the curses GUI ccmake.

Also, with CMake you have a choice of which build system you use.

  • The default on macOS and Linux is Unix Makefiles. On macOS you can also use Xcode by passing -GXcode to CMake when you first run it.
  • The default on Windows is the latest version of Visual Studio installed. However, Visual Studio can open CMake files directly as projects, which has some upsides. When used this way, CMake variables have to be set via a JSON file that MSVC will use to configure CMake.