Skip to content

Compiling FastNoise2

Auburn edited this page Jun 24, 2024 · 3 revisions

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!)

Install CMake

FastNoise2 uses CMake for project setup, install CMake with your OS support

Windows

Download from https://cmake.org/download/ and install

Linux

Ubuntu

sudo apt-get install cmake

or

sudo apt install cmake

MacOS

brew install cmake

Running 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

Windows

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

CMake Build

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)

Include/Linking to project

Wiki Guide