Build all Magnum projects, it's dependencies and samples from single project using CMake.
CMake will configure and build following targets:
- Corrade - https://github.com/mosra/corrade
- Magnum - https://github.com/mosra/magnum
- Magnum Plugins - https://github.com/mosra/magnum-plugins
- Magnum Integration - https://github.com/mosra/magnum-integration
- Magnum Bootstrap (optional) - https://github.com/mosra/magnum-bootstrap
- Magnum Examples (optional) - https://github.com/mosra/magnum-examples
- Magnum Extras (optional) - https://github.com/mosra/magnum-extras
This configuration is tested on platforms:
- Linux
- MAC
- Android
Clone following Magnum projects to one root directory just beside your magnum-build
project.
git clone [email protected]:mosra/corrade.git
git clone [email protected]:mosra/magnum.git
git clone [email protected]:mosra/magnum-plugins.git
git clone [email protected]:mosra/magnum-integration.git
git clone [email protected]:mosra/magnum-examples.git
git clone [email protected]:mosra/magnum-extras.git
git clone -b <base/base-android/...> [email protected]:mosra/magnum-bootstrap.git
git clone [email protected]:janbajana/magnum-build.git
third-party dependencies
git clone [email protected]:ocornut/imgui.git
Use cmake to configure the magnum-build
project. You can pass here cmake options required for all magnum projects. This example is using Nanja generator.
$ mkdir build
$ cd build
$ cmake .. -GNinja -DCMAKE_BUILD_TYPE=Release -DBUILD_WITH_MAGNUM_EXAMPLES=ON
$ ninja -j6
This is a minimal configuration which builds only magnum-triangle
example.
The project includes ./scripts/*.sh
helper scripts to setup CMake with all avaiable options.
To see how magnum projects can be configured try to run:
$ ./scripts/setup-dev-desktop.sh Release
$ cd ./build/Desktop-Release
$ ninja -j6
for Android
$ ./scripts/setup-dev-android.sh Release
$ cd ./build/Desktop-Release
$ ninja -j6
If you build magnum-axamples
for Android you have to chekcout branch from here, only magnum-triangle
is currrently configurable:
git clone -b origin/jb/android-build [email protected]:janbajana/magnum-examples.git