forked from NVIDIA/TensorRT-LLM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
31 lines (26 loc) · 1.45 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# 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)