Skip to content

Commit ce6cc28

Browse files
add CMakeLists.txt
1 parent d35ca7a commit ce6cc28

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

models/bert/CMakeLists.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)
2+
project(bert)
3+
4+
set(DIR_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/)
5+
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/../../")
6+
7+
set(SOURCES
8+
bert.hpp
9+
bert_impl.hpp
10+
bert_tokenizer.hpp
11+
)
12+
13+
foreach(file ${SOURCES})
14+
set(DIR_SRCS ${DIR_SRCS} ${CMAKE_CURRENT_SOURCE_DIR}/${file})
15+
endforeach()
16+
17+
set(DIRS ${DIRS} ${DIR_SRCS} PARENT_SCOPE)

0 commit comments

Comments
 (0)