Adding libraries to detectnet.cpp

Where can I find the Cmake file that is responsible for including libraries for detectnet.cpp in the example folder?
Im trying to add servo control libraries and opencv but I am unable to find the right cmake for detectnet


Do you mean the detectnet example included in the jetson-inference?
If yes, you can find the cmake file below:


1 Like

The CMakeLists.txt for the detectnet example is found under jetson-inference/examples/detectnet/CMakeLists.txt

You can add your libraries to the target_link_libraries() commands. Then remember to re-run cmake ../ && make && sudo make install from your build directory.

1 Like