2023-08-21 23:07:43 +03:00
|
|
|
# common
|
|
|
|
|
|
|
|
|
|
set(TARGET common)
|
|
|
|
|
|
|
|
|
|
add_library(${TARGET} OBJECT
|
|
|
|
|
common.h
|
|
|
|
|
common.cpp
|
2023-10-11 13:35:46 -06:00
|
|
|
sampling.h
|
|
|
|
|
sampling.cpp
|
2023-08-21 23:07:43 +03:00
|
|
|
console.h
|
|
|
|
|
console.cpp
|
|
|
|
|
grammar-parser.h
|
|
|
|
|
grammar-parser.cpp
|
2023-09-28 20:40:11 +02:00
|
|
|
train.h
|
|
|
|
|
train.cpp
|
2023-08-21 23:07:43 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
if (BUILD_SHARED_LIBS)
|
|
|
|
|
set_target_properties(${TARGET} PROPERTIES POSITION_INDEPENDENT_CODE ON)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
target_include_directories(${TARGET} PUBLIC .)
|
|
|
|
|
target_compile_features(${TARGET} PUBLIC cxx_std_11)
|
|
|
|
|
target_link_libraries(${TARGET} PRIVATE llama)
|