Skip to content

Latest commit

 

History

History
54 lines (34 loc) · 2 KB

README.md

File metadata and controls

54 lines (34 loc) · 2 KB

cmake-lagom-template

A minimal project template for building a C++ application using Lagom from SerenityOS.

It also includes some recommended settings (some from SerenityOS' documentation) for Visual Studio Code.

Note It is recommended that you use the clangd extension for Visual Studio Code.

A lot of the default configuration is suited to mimic the SerenityOS coding style, but feel free to change it! :)

Using the template

  1. Clone the repository

    $ git clone git@github.com:caoimhebyrne/cmake-lagom-template.git
  2. Set the SERENITY_SOURCE_DIR environment variable to your local clone of SerenityOS/serenity. (Optional, reduces build time)

    .bashrc/zshrc

    ...
    export SERENITY_SOURCE_DIR=~/path/to/serenity/directory
  3. Replace all instances of cmake_lagom_template with your project's name

  4. Run the Scripts/setup.sh script

    $ Scripts/setup.sh
  5. Build and run your program with the Scripts/build-and-run.sh script!

    $ Scripts/build-and-run.sh

Special thanks

The following repositories and people helped with creating this template:

License

MIT