Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
pskiran1 committed Jul 2, 2024
1 parent 19c3054 commit 6e5328d
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,13 @@ if("$ENV{TRT_VERSION}" VERSION_LESS 10)
${SOURCE_DIR}/io_binding_info.cc
${SOURCE_DIR}/io_binding_info.h
)
# Shared library implementing the Triton Backend API
configure_file(${SOURCE_DIR}/libtriton_tensorrt.ldscript libtriton_tensorrt.ldscript COPYONLY)

target_include_directories(
triton-tensorrt-backend
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/${SOURCE_DIR}
)
else()
set(SOURCE_DIR "src")
add_library(
Expand Down Expand Up @@ -176,22 +183,19 @@ else()
${SOURCE_DIR}/io_binding_info.cc
${SOURCE_DIR}/io_binding_info.h
)
endif()
# Shared library implementing the Triton Backend API
configure_file(${SOURCE_DIR}/libtriton_tensorrt.ldscript libtriton_tensorrt.ldscript COPYONLY)

#
# Shared library implementing the Triton Backend API
#
configure_file(${SOURCE_DIR}/libtriton_tensorrt.ldscript libtriton_tensorrt.ldscript COPYONLY)
target_include_directories(
triton-tensorrt-backend
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/${SOURCE_DIR}
)
endif()

add_library(
TritonTensorRTBackend::triton-tensorrt-backend ALIAS triton-tensorrt-backend
)

target_include_directories(
triton-tensorrt-backend
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/${SOURCE_DIR}
)

target_include_directories(
triton-tensorrt-backend
PRIVATE ${TRITON_TENSORRT_INCLUDE_PATHS}
Expand Down

0 comments on commit 6e5328d

Please sign in to comment.