This tutorial shows how to create a package in ROS. Packages sit inside workspaces, in the src directory. Each package directory must have a CMakeLists.txt and a package.xml files.
CMakeLists.txt
package.xml