How could we make compile time tests (e.g. for sfinae checks, etc) with CTest?
The compile-time metaprogramming is become more and more popular. And for compile-time checks we should also write tests for checking then our program is works. CMake has built-in support for test runners, but it is unclear how to "befriend" the CTest test case (added via add_test()) and compile-time check (we could run it using e.g. try_compile() CMake command). Do you have any ideas? (It also will be awesome if this use-case will be documented in ctest() manual)
Thank you for your time.