roboticslab-uc3m / developer-manual

Developer Manual @ roboticslab-uc3m
https://robots.uc3m.es/developer-manual/
1 stars 1 forks source link

Add CMake guidelines #5

Closed PeterBowman closed 6 years ago

PeterBowman commented 7 years ago

As a start, such written rules and procedures would prevent from introducing unwanted naming patterns and help to delimit the current ones. Let's expand on d5438ee:

PeterBowman commented 7 years ago

OT do we really need a master branch here and at installation-guides? (by the way, such considerations actually belong to best-practices should we want to enforce the GitFlow workflow everywhere)

jgvictores commented 7 years ago

OT do we really need a master branch here and at installation-guides? (by the way, such considerations actually belong to best-practices should we want to enforce the GitFlow workflow everywhere)

Moved to https://github.com/roboticslab-uc3m/best-practices/issues/6

As a start, such written rules and procedures would prevent from introducing unwanted naming patterns and help to delimit the current ones. Let's expand on d5438ee:

SCREAMING_SNAKE_CASE for the project name and configuration variables: TEO_MAIN, TEO_MAIN_LINK_DIRS.
kebab-case for installed YARP context directories as set by yarp_configure_external_installation(): teo-main, asibot-openrave-models.
Use the ROBOTICSLAB_ (or roboticslab-) prefix whenever the uniqueness of the chosen name for the project could be easily compromised (keep in mind you'll want to invoke find_package()): ROBOTICSLAB_YARP_DEVICES, ROBOTICSLAB_KINEMATICS_DYNAMICS_INCLUDE_DIRS, roboticslab-vision.

I've found yet another convention: https://github.com/roboticslab-uc3m/installation-guides ...so I've put an issue: https://github.com/roboticslab-uc3m/installation-guides/issues/7

PeterBowman commented 7 years ago

SCREAMING_SNAKE_CASE convention has been proposed to cover *.cmake configuration files like PROJECT_NAMEConfig.cmake.in, PROJECT_NAMEDescribe.cmake, etc. See 62c1382.

jgvictores commented 6 years ago

This currently exists at: