Skip to content
Snippets Groups Projects
Commit 0cefcac6 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Fix for windows unit tests

parent 15bd96a5
No related branches found
No related tags found
No related merge requests found
Pipeline #27106 passed
...@@ -26,6 +26,13 @@ $<TARGET_OBJECTS:CatchTest> ...@@ -26,6 +26,13 @@ $<TARGET_OBJECTS:CatchTest>
../src/depth_convert.cu ../src/depth_convert.cu
./nvpipe_codec_unit.cpp ./nvpipe_codec_unit.cpp
) )
if (WIN32)
if (CMAKE_SIZEOF_VOID_P EQUAL 8)
target_link_directories(nvpipe_codec_unit PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../src/Video_Codec_SDK_9.1.23/Lib/x64)
elseif (CMAKE_SIZEOF_VOID_P EQUAL 4)
target_link_directories(nvpipe_codec_unit PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../src/Video_Codec_SDK_9.1.23/Lib/Win32)
endif()
endif()
target_include_directories(nvpipe_codec_unit PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/../include" target_include_directories(nvpipe_codec_unit PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/../include"
${CMAKE_CURRENT_SOURCE_DIR}/../src/Video_Codec_SDK_9.1.23/include ${CMAKE_CURRENT_SOURCE_DIR}/../src/Video_Codec_SDK_9.1.23/include
${CMAKE_CURRENT_SOURCE_DIR}/../src/Video_Codec_SDK_9.1.23/Samples/NvCodec) ${CMAKE_CURRENT_SOURCE_DIR}/../src/Video_Codec_SDK_9.1.23/Samples/NvCodec)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment