How can I write CMakeLists.txt in a way it has two targets all (default) and test, where test target has flags that differ from all target’s flags. The problem is that when I build libraries for tests I need to link some stuff that shouldn’t be in release build.
How can I write CMakeLists.txt in a way it has two targets all (default)
Share
1 Answer