Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
↓hovergroup
  ↓code
    ↓marine
      →core
        →bin
        →lib
        →src
        build_proto.sh
        CMakeLists.txt

Here's what you should know:

bin - Where built executables are placed.

lib - Where built libraries are placed.

src - The source code itself.

build_proto.sh and CMakeLists.txt are both part of the build process, which we'll also come back to.

...

We'll take the marine/core directory as an example.  The first step to building the code in a directory is compiling any protobufs by running the build_proto.sh script.  Next, run cmake within the directory: 

Highlight
color#a0a0a0
cmake .
or or 
Highlight
color#a0a0a0
ccmake .
if  if you need a user interface. It drills down through the source tree looking at every CMakeLists.txt file on the way. The CMake files at different levels do different things:

...