Lagrange Example Project
A minimal project that uses Lagrange. Can be used as a template.
README
Lagrange Example Project
An example project that uses Lagrange. To get started, click on
"Use this template" on GitHub, then go through the steps below, changing paths to your
project name.
Usage
-
Requirements
- CMake 3.20 or later. On Unix, CMake installed from
aptcan be
outdated. Check withcmake --version. - Command line (Unix) or Powershell/Git Bash (Windows).
- CMake 3.20 or later. On Unix, CMake installed from
-
Clone the repository:
git clone https://github.com/adobe/lagrange-example-project.git -
Setup build:
cd <lagrange-example-project> mkdir build cd build cmake ..By default, this will generate a Visual Studio project on Windows, and Unix Makefiles on OSX and
Linux. If you wish to use XCode on Mac, usecmake -G "Xcode" ..instead. -
Select Lagrange features
You can browse Lagrange options to enable in Lagrange's
LagrangeOptions.cmake.sampleor by
runningcmake-gui .. Once you're done, pressConfigureand thenGenerate. In your
project'sCMakeLists.txt, include the modules you want by callinglagrange_include_modules()
after including Lagrange. -
Build
cmake --build .Or open the Visual Studio/XCode project with
cmake --open .
Documentation
Please check the docs/ folder for instructions on how to compile Doxygen documentation
for this project.
Contributing
Contributions are welcomed! Read the Contributing Guide for more
information.
Licensing
This example project is licensed under the MIT license. See LICENSE for more information.
