mirror of
https://github.com/NVIDIA/TensorRT-LLM.git
synced 2026-01-14 06:27:45 +08:00
32 lines
1.5 KiB
CMake
32 lines
1.5 KiB
CMake
# SPDX-FileCopyrightText: Copyright (c) 2023-2024 NVIDIA CORPORATION &
|
|
# AFFILIATES. All rights reserved. SPDX-License-Identifier: NVIDIA TensorRT
|
|
# Source Code License Agreement
|
|
#
|
|
# NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
|
|
# property and proprietary rights in and to this material, related documentation
|
|
# and any modifications thereto. Any use, reproduction, disclosure or
|
|
# distribution of this material and related documentation without an express
|
|
# license agreement from NVIDIA CORPORATION or its affiliates is strictly
|
|
# prohibited.
|
|
|
|
add_library(modelSpec SHARED modelSpec.cpp modelSpecBinding.cpp)
|
|
set_target_properties(modelSpec PROPERTIES PREFIX "")
|
|
set_target_properties(modelSpec PROPERTIES OUTPUT_NAME "model_spec")
|
|
target_link_libraries(modelSpec PRIVATE tensorrt_llm)
|
|
|
|
# Static lib for other test to link
|
|
add_library(modelSpecStatic STATIC modelSpec.cpp)
|
|
|
|
add_gtest(cacheTransceiverTest cacheTransceiverTest.cpp)
|
|
|
|
add_gtest(trtGptModelTest trtGptModelTest.cpp)
|
|
target_link_libraries(trtGptModelTest PRIVATE modelSpecStatic)
|
|
add_gtest(trtGptModelRealDecoderTest trtGptModelRealDecoderTest.cpp)
|
|
target_link_libraries(trtGptModelRealDecoderTest PRIVATE modelSpecStatic
|
|
testingUtils)
|
|
|
|
add_gtest(peftCacheManagerTest peftCacheManagerTest.cpp)
|
|
add_gtest(trtEncoderModelTest trtEncoderModelTest.cpp)
|
|
add_gtest(guidedDecoderTest guidedDecoderTest.cpp)
|
|
add_gtest(blockKeyTest blockKeyTest.cpp)
|