36 lines
819 B
CMake
36 lines
819 B
CMake
cmake_minimum_required(VERSION 3.10)
|
|
project(CameraDemoTest)
|
|
|
|
# Set C++ standard
|
|
set(CMAKE_CXX_STANDARD 14)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
set(CMAKE_C_COMPILER aarch64-linux-gnu-gcc)
|
|
set(CMAKE_CXX_COMPILER aarch64-linux-gnu-g++)
|
|
|
|
# Include directories
|
|
include_directories(
|
|
${CMAKE_SOURCE_DIR}/../../VrCommon/Inc
|
|
${CMAKE_SOURCE_DIR}/../../SDK/VzNLSDK/Inc
|
|
${CMAKE_SOURCE_DIR}/../../SDK/VzNLSDK/_Inc
|
|
)
|
|
LINK_DIRECTORIES(
|
|
${CMAKE_SOURCE_DIR}/../../SDK/VzNLSDK/Arm/aarch64
|
|
)
|
|
|
|
|
|
# Add source files
|
|
set(SOURCES
|
|
test.cpp
|
|
)
|
|
|
|
# Create executable
|
|
add_executable(CameraDemoTest ${SOURCES} )
|
|
|
|
# Link libraries (you may need to adjust these paths based on your actual library locations)
|
|
target_link_libraries(CameraDemoTest
|
|
VzKernel
|
|
VzNLDetect
|
|
VzNLGraphics
|
|
)
|