Skip to content
This repository has been archived by the owner on Jun 30, 2024. It is now read-only.

Setting up a Project

delgor edited this page Oct 5, 2014 · 3 revisions

Once you properly built and installed the framework on your machine, using it in your own projects is really easy! I promise!

Usage with QMake

All you need to do is to tell QMake in your .pro file that you want to use the Nuria Framework. To do so, add nuria to the CONFIG variable: CONFIG += nuria

By default, the Core module will be available in your project. If you also want to use some other module, like Network, then add its name to the NURIA variable: NURIA += network

Usage with CMake

CMake "Config-file packages" are included and will be installed by default. The simplest way to use Nuria is to include the whole Framework: find_package(NuriaFramework REQUIRED). This will load all installed modules. You still need to link your target to all required modules: target_link_libray(MyTarget Qt5::Core NuriaCore)

Tria can be run on all headers in a target by nuria_tria(MyTarget). This will create a static library with the generated runtime information and link it into your Target.

Generic usage

If you need or want to manually link the framework to your project, here's some information:

  • Header files reside in /usr/include/nuria
  • Libraries reside in /usr/lib. Their name-scheme is libNuria<Module>.so
  • Tria is a code-generator. The binary is /usr/bin/tria, help is available through -h. You're probably most interested in -o. Don't forget to tell tria about -Defines or -Includepaths!
Clone this wiki locally