Felipe97/llama-cpp-compiled
01.1k
1# llama-perplexity-impl: perplexity logic, reusable by app2 3set(TARGET llama-perplexity-impl)4 5add_library(${TARGET} perplexity.cpp)6set_target_properties(${TARGET} PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON)7 8target_include_directories(${TARGET} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})9target_link_libraries(${TARGET} PUBLIC llama-common llama ${CMAKE_THREAD_LIBS_INIT})10 11if(LLAMA_TOOLS_INSTALL)12 install(TARGETS ${TARGET} LIBRARY)13endif()14 15# llama-perplexity executable16 17set(TARGET llama-perplexity)18 19add_executable(${TARGET} main.cpp)20target_link_libraries(${TARGET} PRIVATE llama-perplexity-impl)21target_compile_features(${TARGET} PRIVATE cxx_std_17)22 23if(LLAMA_TOOLS_INSTALL)24 install(TARGETS ${TARGET} RUNTIME)25endif()26 