examples : do not use common library in simple example (#9803)

* examples : do not use common library in simple example

* add command line parser, simplify code
This commit is contained in:
Diego Devesa
2024-10-10 19:50:49 +02:00
committed by GitHub
parent c81f3bbb05
commit c7499c557c
2 changed files with 128 additions and 96 deletions

View File

@ -1,5 +1,5 @@
set(TARGET llama-simple)
add_executable(${TARGET} simple.cpp)
install(TARGETS ${TARGET} RUNTIME)
target_link_libraries(${TARGET} PRIVATE common llama ${CMAKE_THREAD_LIBS_INIT})
target_link_libraries(${TARGET} PRIVATE llama ${CMAKE_THREAD_LIBS_INIT})
target_compile_features(${TARGET} PRIVATE cxx_std_11)