cmake_minimum_required(VERSION 3.10)
#set the project name and version
project(render)
find_package(OpenCV REQUIRED)
find_package(CUDA 10.2 REQUIRED)
set(WITH_CUDA ON)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -pthread")
include_directories(${OpenCV_INCLUDE_DIRS})
add_executable(main main_nvgstcamera_capture.cpp)
target_include_directories(main PUBLIC
-I/usr/local/cuda-10.2/targets/aarch64-linux/include
/usr/share/visionworks/sources/nvxio/include
/usr/share/visionworks/sources/nvxio/src/
/usr/share/visionworks/sources/nvxio/src/NVX/
/usr/share/visionworks/sources/3rdparty/opengl
/usr/share/visionworks/sources/3rdparty/glfw3/include
/usr/share/visionworks/sources/3rdparty/freetype/include
/usr/share/visionworks/sources/3rdparty/eigen
)
target_link_libraries(main
-L$(PKG_CONFIG_SYSROOT_DIR)/usr/lib
/usr/share/visionworks/sources/libs/aarch64/linux/release/libovx.a
/usr/share/visionworks/sources/3rdparty/freetype/libs/libfreetype.a
/usr/share/visionworks/sources/3rdparty/glfw3/libs/libglfw3.a
/usr/lib/aarch64-linux-gnu/tegra-egl/libGLESv2_nvidia.so.2
-L/usr/lib/aarch64-linux-gnu
-lEGL
-lXrandr
-lXi
-lXxf86vm
-lX11
-lgstpbutils-1.0
-lgstaudio-1.0
-lgstvideo-1.0
-lgstapp-1.0
-lgstbase-1.0
-lgstreamer-1.0
-lgobject-2.0
-lglib-2.0
/usr/lib/aarch64-linux-gnu/tegra/libcuda.so
-L/usr/local/cuda-10.2/targets/aarch64-linux/lib
-lcudart
-lvisionworks
${OpenCV_LIBS}
)
Tuesday, 4 January 2022
cmake of VisionWorks
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment