cmake_minimum_required(VERSION 3.10)
project(kazeia_engine)
set(CMAKE_CXX_STANDARD 17)
add_library(kazeia_engine SHARED jni/kazeia_engine_jni.cpp)
target_include_directories(kazeia_engine PRIVATE include)
add_library(llama SHARED IMPORTED)
set_target_properties(llama PROPERTIES IMPORTED_LOCATION ${CMAKE_SOURCE_DIR}/lib/libllama.so)
add_library(ggml SHARED IMPORTED)
set_target_properties(ggml PROPERTIES IMPORTED_LOCATION ${CMAKE_SOURCE_DIR}/lib/libggml.so)
add_library(ggml-base SHARED IMPORTED)
set_target_properties(ggml-base PROPERTIES IMPORTED_LOCATION ${CMAKE_SOURCE_DIR}/lib/libggml-base.so)
target_link_libraries(kazeia_engine llama ggml ggml-base log)
