Is there any way to build several target (not all) using cmake in clion?

I'm using so many cmake targets including tests in my Clion CMake project.

Because some targets are frequently failed to build, I 'd like to exclude some target or include some target.

To do so, I can do using cmake --target A B C or using targets property in preset.json.

On CLion, using Build Project, There are always doing build all even though I using presets.json

I can do only one target modifying configuration but can not do several targets.

So, Is there any way to remove ALL target so that I can build several targets easily?

0

请先登录再写评论。