You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.4 KiB
41 lines
1.4 KiB
2 months ago
|
set(SOURCE_FILES UpscalePipeline.cpp ../../nvvfx/src/nvVideoEffectsProxy.cpp ../../nvvfx/src/nvCVImageProxy.cpp)
|
||
|
|
||
|
# Set Visual Studio source filters
|
||
|
source_group("Source Files" FILES ${SOURCE_FILES})
|
||
|
|
||
|
add_executable(UpscalePipelineApp ${SOURCE_FILES})
|
||
|
target_include_directories(UpscalePipelineApp PRIVATE
|
||
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||
|
${CMAKE_CURRENT_SOURCE_DIR}/../utils
|
||
|
)
|
||
|
target_include_directories(UpscalePipelineApp PUBLIC
|
||
|
${SDK_INCLUDES_PATH}
|
||
|
)
|
||
|
|
||
|
if(MSVC)
|
||
|
target_link_libraries(UpscalePipelineApp PUBLIC
|
||
|
opencv346
|
||
|
NVVideoEffects
|
||
|
${CMAKE_CURRENT_SOURCE_DIR}/../external/cuda/lib/x64/cudart.lib
|
||
|
)
|
||
|
|
||
|
set(OPENCV_PATH_STR ${CMAKE_CURRENT_SOURCE_DIR}/../external/opencv/bin)
|
||
|
set(VFXSDK_PATH_STR ${CMAKE_CURRENT_SOURCE_DIR}/../../bin) # Also the location for CUDA/NVTRT/libcrypto
|
||
|
set(PATH_STR "PATH=%PATH%" ${VFXSDK_PATH_STR} ${OPENCV_PATH_STR})
|
||
|
set(CMD_ARG_STR "--model_dir=\"${CMAKE_CURRENT_SOURCE_DIR}/../../bin/models\" --show --resolution=1440 --in_file=\"${CMAKE_CURRENT_SOURCE_DIR}/../input/input1.jpg\"")
|
||
|
set_target_properties(UpscalePipelineApp PROPERTIES
|
||
|
FOLDER SampleApps
|
||
|
VS_DEBUGGER_ENVIRONMENT "${PATH_STR}"
|
||
|
VS_DEBUGGER_COMMAND_ARGUMENTS "${CMD_ARG_STR}"
|
||
|
)
|
||
|
else()
|
||
|
|
||
|
target_link_libraries(UpscalePipelineApp PUBLIC
|
||
|
NVVideoEffects
|
||
|
NVCVImage
|
||
|
OpenCV
|
||
|
TensorRT
|
||
|
CUDA
|
||
|
)
|
||
|
endif()
|