slint/api/cpp/cmake
Simon Hausmann 964de46c51 C++: Make the system testing feature automatically enable debug info
While we haven't settled on the debug info feature and are
merely controlling it via environment variable, setting that can be very hard - especially when using Yocto.

To make life easier, let's do in C++ what we can't easily do for Rust but would like to:

When enabling system testing, automatically emit the necessary debug info, by setting the environment variable when calling the compiler.

This is done by adding SLINT_ENABLED_FEATURES and SLINT_DISABLED_FEATURES properties
on the Slint::Slint target that - as lists - export the list of features and their status.

This way we can compile Slint in once place and safely in the CMake code running in application
scope check about the available features.
2024-07-04 13:39:13 +02:00
..
SlintConfig.cmake.in Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
SlintMacro.cmake C++: Make the system testing feature automatically enable debug info 2024-07-04 13:39:13 +02:00