mirror of
https://github.com/google/sentencepiece.git
synced 2024-09-11 10:55:42 +03:00
added third_party as a subdir of cmake
This commit is contained in:
parent
69a0046b33
commit
b4c185f7d0
4
.gitignore
vendored
4
.gitignore
vendored
@ -65,3 +65,7 @@ dist/
|
||||
|
||||
m.model
|
||||
m.vocab
|
||||
|
||||
cmake_install.cmake
|
||||
libsentencepiece.so*
|
||||
libsentencepiece_train.so*
|
||||
|
@ -29,7 +29,6 @@ option(SPM_NO_THREADLOCAL "Disable thread_local operator" OFF)
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
|
||||
set(prefix ${CMAKE_INSTALL_PREFIX})
|
||||
set(exec_prefix "\${prefix}")
|
||||
set(libdir "\${exec_prefix}/lib")
|
||||
@ -86,6 +85,7 @@ if (SPM_BUILD_TEST)
|
||||
endif()
|
||||
|
||||
add_subdirectory(src)
|
||||
add_subdirectory(third_party)
|
||||
|
||||
set(CPACK_SOURCE_GENERATOR "TXZ")
|
||||
set(CPACK_GENERATOR "7Z")
|
||||
|
@ -51,7 +51,7 @@ set(SPM_SRCS
|
||||
unigram_model.cc
|
||||
util.cc
|
||||
word_model.cc
|
||||
../third_party/absl/strings/string_view.cc)
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../third_party/absl/strings/string_view.cc)
|
||||
|
||||
set(SPM_TRAIN_SRCS
|
||||
${SPM_PROTO_HDRS}
|
||||
|
1
third_party/CMakeLists.txt
vendored
Normal file
1
third_party/CMakeLists.txt
vendored
Normal file
@ -0,0 +1 @@
|
||||
include_directories(absl/strings darts_clone esaxx)
|
Loading…
Reference in New Issue
Block a user