Colcon cheatsheet · GitHub
source link: https://gist.github.com/chapulina/7400a708df655cbfba218e169fcad97f
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Colcon cheatsheet · GitHub
Instantly share code, notes, and snippets.
Only one package:
--packages-select <package>
Packages with regex:
--packages-select-regex <regex>
Verbose, print to console:
--event-handlers console_direct+
Run specific tests:
--ctest-args -R <part of test name>
Disable tests compilation:
--cmake-args -DBUILD_TESTING=false
Combine multiple CMake args:
--cmake-args ' -DBUILD_TESTING=false' ' -DENABLE_PROFILER=1'
Repeat test:
--retest-until-fail 10
Uninstall:
colcon build --packages-select <package> --cmake-target uninstall
Number of cores:
MAKEFLAGS="-j4" colcon build
Specific target, like codecheck
:
--cmake-target codecheck
List all available targets for a project:
cd build/project_name
make help
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK