-
-
Notifications
You must be signed in to change notification settings - Fork 107
Compiling FastNoise2
Download FastNoise2 source either by cloning the git repo or downloading the code zip on GitHub
(Precompiled binaries can be downloaded from Releases if you don't want to setup CMake compiling yourself!)
FastNoise2 uses CMake for project setup, install CMake with your OS support
Download from https://cmake.org/download/ and install
Ubuntu
sudo apt-get install cmake
or
sudo apt install cmake
brew install cmake
Open a terminal/CMD in the root of the FastNoise2 source (where the "LICENSE" file is located)
Run this command to create project files for FastNoise2
cmake -S . -B build
You can configure what parts of FastNoise2 are included in the project files using -D
cmake -S . -B build -D FASTNOISE2_NOISETOOL=OFF -D FASTNOISE2_TESTS=OFF -D BUILD_SHARED_LIBS=ON
-D BUILD_SHARED_LIBS=ON
Will setup FastNoise2 to build as a shared library (dll) instead of static
After CMake finishes creating the project files
You can open the solution file in the ./build
directory with Visual Studio and compile
The CMake method below is also an option on Windows
Using the same terminal/CMD as above (from the root FastNoise2 code directory)
cmake --build build --config {build type}
{build type} either Debug
or Release
.
This will build all the configured project files into binaries (exe/dll)