Last active
April 15, 2019 15:29
-
-
Save aallan/9945105f8ae2aed47d96e23adb8dddc1 to your computer and use it in GitHub Desktop.
A CMakeList.txt file for the NVIDIA Jetson Nano object_recognition.cpp example, https://gist.github.com/aallan/4de3a74676d4ff10a476c2d6c20b9255
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# require CMake 2.8 or greater | |
cmake_minimum_required(VERSION 2.8) | |
# declare my-recognition project | |
project(object_recognition) | |
# import jetson-inference and jetson-utils packages. | |
# note that if you didn't do "sudo make install" | |
# while building jetson-inference, this will error. | |
find_package(jetson-utils) | |
find_package(jetson-inference) | |
# CUDA and Qt4 are required | |
find_package(CUDA) | |
find_package(Qt4) | |
# setup Qt4 for build | |
include(${QT_USE_FILE}) | |
add_definitions(${QT_DEFINITIONS}) | |
# compile the my-recognition program | |
cuda_add_executable(object_recognition object_recognition.cpp) | |
# link my-recognition to jetson-inference library | |
target_link_libraries(object_recognition jetson-inference) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment