I'm using CMake and CTest in CLion. Annoyingly, CTest generates a load of targets that I don't care about:
- Continuous
- ContinuousBuild
- ContinuousConfigure
- ContinuousCoverage
- ContinuousMemCheck
- ContinuousStart
- ContinuousSubmit
- ContinuousTest
- ContinuousUpdate
- Experimental
- ExperimentalBuild
- ExperimentalConfigure
- ExperimentalCoverage
- ExperimentalMemCheck
- ExperimentalStart
- ExperimentalSubmit
- ExperimentalTest
- ExperimentalUpdate
- Nightly
- NightlyBuild
- NightlyConfigure
- NightlyCoverage
- NightlyMemCheck
- NightlyStart
- NightlySubmit
- NightlyTest
- NightlyUpdate
These all show up in CLion. Quite annoying as I'm sure you'll agree. Is there solution to remove them? I'm open to any solution:
- Get CTest to not generate them in the first place.
- Delete the targets after CTest has created them.
- A setting in CLion to hide them.
A possible solution that I'm not sure works 100% is to go to Run->Edit Configurations... in CLion and simply delete all the targets you don't want.
This seems to survive reloading the CMake configuration, and
make clean
.Unless you are using CDash, the solution is very simple.
In your CMakefile replace
with