CLion supports Google Test, Boost.Test, Catch2, and Doctest, but I cannot get unit testing working with a cross-compiling project (compile tests for host & the project for target): I could create several CMake targets, but CLion only seems to detect one and even when I only create a one-target-CMakeLists.txt and switch it completely out by the other (e.g. ARM<->GCC) and reload the CMake config, the compiler stays selected until I invalidate CMake caches completely.
As CLion claims to be well-suited for embedded development, I wonder how this is normally achievable.