Skip to content

Commit

Permalink
修改cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
zjhellofss committed Jun 22, 2024
1 parent 0d36f12 commit 8b3f144
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ aux_source_directory(kuiper/source/sampler DIR_SAMPLE)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/lib)

add_library(llama SHARED ${DIR_TENSOR} ${DIR_BASE} ${DIR_OP} ${DIR_MODEL} ${DIR_KERNEL} ${DIR_SAMPLE})
target_link_libraries(llama sentencepiece glog::glog)
target_link_libraries(llama sentencepiece glog::glog gtest gtest_main pthread)
target_link_libraries(llama ${ARMADILLO_LIBRARIES})
target_include_directories(llama PUBLIC ${glog_INCLUDE_DIR})
target_include_directories(llama PUBLIC ${PROJECT_SOURCE_DIR}/kuiper/include)
Expand All @@ -24,5 +24,4 @@ target_include_directories(llama PUBLIC ${Armadillo_INCLUDE_DIR})
add_executable(llama_infer main.cpp)
target_link_directories(llama_infer PUBLIC ${PROJECT_SOURCE_DIR}/lib)
target_link_libraries(llama_infer llama)

add_subdirectory(test)

0 comments on commit 8b3f144

Please sign in to comment.