Skip to content

Commit

Permalink
vstrt/trtexec/CMakeLists.txt: remove unused trt library links
Browse files Browse the repository at this point in the history
  • Loading branch information
WolframRhodium committed Apr 30, 2024
1 parent b1893df commit 56bc2b4
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions vstrt/trtexec/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ cmake_minimum_required(VERSION 3.20)

project(trtexec LANGUAGES CXX)

set(TENSORRT_HOME "" CACHE PATH "Path to TensorRT")
set(TENSORRT_LIBRARY_SUFFIX "" CACHE STRING "TensorRT library suffix")

find_package(CUDAToolkit REQUIRED)

add_executable(trtexec
Expand All @@ -26,20 +23,8 @@ add_executable(trtexec
target_include_directories(trtexec PRIVATE
../common
..
${CUDAToolkit_INCLUDE_DIRS}
${TENSORRT_HOME}/include
)

target_link_directories(trtexec PRIVATE
${CUDAToolkit_LIBRARY_DIR}
${TENSORRT_HOME}/lib
)

target_link_libraries(trtexec PRIVATE
CUDA::cudart_static
"nvinfer${TENSORRT_LIBRARY_SUFFIX}"
"nvinfer_plugin${TENSORRT_LIBRARY_SUFFIX}"
"nvonnxparser${TENSORRT_LIBRARY_SUFFIX}"
)
target_link_libraries(trtexec PRIVATE CUDA::cudart_static)

install(TARGETS trtexec RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})

0 comments on commit 56bc2b4

Please sign in to comment.