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.
-
Requirements
- CMake 3.20 or later. On Unix, CMake installed from
apt
can 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, use
cmake -G "Xcode" ..
instead. -
Select Lagrange features
You can browse Lagrange options to enable in Lagrange's
LagrangeOptions.cmake.sample
or by runningcmake-gui .
. Once you're done, pressConfigure
and 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 .
Please check the docs/
folder for instructions on how to compile Doxygen documentation
for this project.
Contributions are welcomed! Read the Contributing Guide for more information.
This example project is licensed under the MIT license. See LICENSE for more information.