Updated core code installation doc.
This commit is contained in:
parent
f4d36ad960
commit
6532d656de
@ -23,9 +23,13 @@ Supporting:
|
|||||||
The repository uses cmake for building. You can place it in a subfolder of your project and include it in you `CMakeLists.txt`.
|
The repository uses cmake for building. You can place it in a subfolder of your project and include it in you `CMakeLists.txt`.
|
||||||
For example if the library is placed in the subfolder `roboidcontrol`:
|
For example if the library is placed in the subfolder `roboidcontrol`:
|
||||||
```
|
```
|
||||||
|
# Add the path to Roboid Control
|
||||||
add_subdirectory(roboidcontrol)
|
add_subdirectory(roboidcontrol)
|
||||||
|
|
||||||
add_executable(my_executable main.cpp) # Your source files/executable
|
# Your source files/executable
|
||||||
|
add_executable(my_executable main.cpp)
|
||||||
|
|
||||||
|
# Link against RoboidControl
|
||||||
target_link_libraries(my_executable RoboidControl)
|
target_link_libraries(my_executable RoboidControl)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user