Answer the question
In order to leave comments, you need to log in
How to connect cxxtest to a project using Clion IDE?
I can't connect cxxtest to my clion project. How can this be made to work? My project has a directory with unit tests. I want to get testrunner.cpp and runner executable. How can I edit CmakeLists.txt to make this possible?
Answer the question
In order to leave comments, you need to log in
I'm not very familiar with Clion and cxxtest, but CMake has CTest, which allows you to add an arbitrary executable file as a test (i.e. CMakeLists indicates that the result of compiling such and such cpp files is a test), and allows you to specify command line arguments when starting the test. After the configuration, the tests are run by a command make test
or similar for other build systems, which can most likely be set already in the Clion settings: either in the project launch settings, or as an external tool.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question