...
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 | ||
---|---|---|
| ||
cmake . |
Highlight | ||
---|---|---|
| ||
ccmake . |
CMakeLists.txt
file on the way. The CMake files at different levels do different things:...