-
Notifications
You must be signed in to change notification settings - Fork 0
Setting up a Project
Once you properly built and installed the framework on your machine, using it in your own projects is really easy! I promise!
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
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.
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 islibNuria<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-D
efines or-I
ncludepaths!