Skip to content

Build Magnum, plugin modules and it's dependencies from single project using CMake

Notifications You must be signed in to change notification settings

janbajana/magnum-build

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Magnum Build

Build all Magnum projects, it's dependencies and samples from single project using CMake.

CMake will configure and build following targets:

This configuration is tested on platforms:

  • Linux
  • MAC
  • Android

Prerequisites

How to get started

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.

Configure using script helpers

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

Configure with IDE

About

Build Magnum, plugin modules and it's dependencies from single project using CMake

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published