action is depends on Project Mode. If you opened CMake project it will always running make clean
, but you can create your own External tool and put it in Run | Clean
menu.
cmake --build <dir> --target clean -- -j 4
Create a tool in Run | Clean
Preferences
add_custom_target(make-clean ALL COMMAND make -C ${mytest_SOURCE_DIR} clean)
Run | Clean
有没有办法让 cmake --build <dir> --target clean -- -j 4
而不是运行一个自定义目标?例如,一个被定义为。Run