elementary-dev-community team mailing list archive
Mailing list archive
CMake and Build-class
When looking at Noise's code, there is a
nice integration between CMake and the code itself via the Build-class:
some properties defined in Noise can be accessed in the vala code this
// App info
build_data_dir = Build.DATADIR;
build_version = Build.VERSION;
In this example, the properties DATADIR,
PKG_DATADIR etc. are defined in CMakeLists.txt and I think this is great
as you have to change the properties only in one place.
trying to use this concept in one of my own projects, I can't find a way
how to use this snippet. Where is this Build-class declared or how are
these variables linked from CMakeLists.txt to the vala source code file?
Do I have to add a specific class or should I add something to the
Thanks for your help!