Home

Awesome

Brisk Example Project

This project demonstrates how to use the Brisk C++ library to build an application using CMake. It includes a simple executable that links to the Brisk library.

Prerequisites

To build and run this project, ensure you have the following installed:

Project Structure

Building the Project

  1. Clone or download the repository to your local machine.
  2. Navigate to the project directory:
    cd path/to/project
    
  3. Create a build directory and navigate into it:
    mkdir build && cd build
    
  4. Run CMake to configure the project:
    cmake -DBRISK_DIR=path/to/brisk/repository -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
    
  5. Build the project:
    cmake --build .
    

Dependencies

The Brisk dependencies are built using the vcpkg package manager. Vcpkg manages the dependencies by using source packages and builds each dependent library from its sources, which may lead to significant build times on the first run. It is recommended to set up a binary cache to reuse built libraries across multiple Brisk projects.

CMake Configuration

The provided CMakeLists.txt file includes the following key components:

add_executable(main main.cpp)

target_link_libraries(main PRIVATE brisk-widgets brisk-executable)

Ensure that the Brisk library is available and properly linked in your environment.

License

The Brisk library is licensed under a dual GPLv2+/Commercial license.

The example project contained in this repository is licensed under the public domain or CC0. You are free to modify this code and use it as a starting point for your own projects, either GPL-licensed or proprietary (provided you have acquired a commercial license for the Brisk library, for details, contact brisk@brisklib.com).