2026-05-21 09:29:44 +02:00
|
|
|
# llama-fit-params-impl: fit-params logic, reusable by app
|
|
|
|
|
|
|
|
|
|
set(TARGET llama-fit-params-impl)
|
|
|
|
|
|
2026-05-21 21:13:59 +03:00
|
|
|
add_library(${TARGET} fit-params.cpp)
|
|
|
|
|
set_target_properties(${TARGET} PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON)
|
2026-05-21 09:29:44 +02:00
|
|
|
|
|
|
|
|
target_include_directories(${TARGET} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
|
target_link_libraries(${TARGET} PUBLIC llama-common llama ${CMAKE_THREAD_LIBS_INIT})
|
|
|
|
|
|
2026-05-22 11:46:26 +03:00
|
|
|
if(LLAMA_TOOLS_INSTALL)
|
|
|
|
|
install(TARGETS ${TARGET} LIBRARY)
|
|
|
|
|
endif()
|
|
|
|
|
|
2026-05-21 09:29:44 +02:00
|
|
|
# llama-fit-params executable
|
|
|
|
|
|
2025-12-15 09:24:59 +01:00
|
|
|
set(TARGET llama-fit-params)
|
2026-05-21 09:29:44 +02:00
|
|
|
|
|
|
|
|
add_executable(${TARGET} main.cpp)
|
|
|
|
|
target_link_libraries(${TARGET} PRIVATE llama-fit-params-impl)
|
2025-12-15 09:24:59 +01:00
|
|
|
target_compile_features(${TARGET} PRIVATE cxx_std_17)
|
|
|
|
|
|
|
|
|
|
if(LLAMA_TOOLS_INSTALL)
|
|
|
|
|
install(TARGETS ${TARGET} RUNTIME)
|
|
|
|
|
endif()
|