Skip to content

Building from Source

ng-log can be compiled using CMake on a wide range of platforms. The typical workflow for building ng-log on a Unix-like system with GNU Make as build tool is as follows:

  1. Clone the repository and change into source directory.
    git clone https://github.com/ng-log/ng-log.git
    cd ng-log
    
  2. Run CMake to configure the build tree.
    cmake -S . -B build -G "Unix Makefiles"
    
    CMake provides different generators, and by default will pick the most relevant one to your environment. If you need a specific version of Visual Studio, use cmake . -G <generator-name>, and see cmake --help for the available generators. Also see -T <toolset-name>, which can be used to request the native x64 toolchain with -T host=x64.
  3. Afterwards, generated files can be used to compile the project.
    cmake --build build
    
  4. Test the build software (optional).
    cmake --build build --target test
    
  5. Install the built files (optional).
    cmake --build build --target install
    

Once successfully built, ng-log can be integrated into own projects.