Quantcast
Channel: Do something for all targets - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by Florian for Do something for all targets

You can overwrite any CMake command/function to extend its functionality, but pleaseCall Things by their NamesI strongly advocate to call the things by their names and not doing things implicitly. It...

View Article



Answer by sakra for Do something for all targets

The built-in CMake functions add_library and add_executable can be overidden by defining CMake functions of the same name. E.g., to automatically sign all added executables add the following...

View Article

Do something for all targets

What is the best way to do additional stuff for all (binary) targets?Examples:I want to check that each library name follows a pattern.I want to sign each executable.I dont what the C/C++ developers to...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images