|
|
|
@ -50,6 +50,8 @@ message(STATUS "Qt 6 root directory: ${Qt6_ROOT_DIR}")
|
|
|
|
|
|
|
|
|
|
set(LLAMA_BUILD_EXAMPLES ON CACHE BOOL "llama: build examples" FORCE)
|
|
|
|
|
set(BUILD_SHARED_LIBS ON FORCE)
|
|
|
|
|
#set(LLAMA_AVX2 OFF "llama: enable AVX2" FORCE)
|
|
|
|
|
|
|
|
|
|
add_subdirectory(llama.cpp)
|
|
|
|
|
|
|
|
|
|
qt_add_executable(chat
|
|
|
|
@ -119,6 +121,7 @@ if(NOT (CMAKE_HOST_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_HOST_SYSTEM_PROCESSOR
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
install(TARGETS chat DESTINATION bin COMPONENT ${COMPONENT_NAME_MAIN})
|
|
|
|
|
install(TARGETS llama DESTINATION lib COMPONENT ${COMPONENT_NAME_MAIN})
|
|
|
|
|
|
|
|
|
|
set(CPACK_GENERATOR "IFW")
|
|
|
|
|
set(CPACK_VERBATIM_VARIABLES YES)
|
|
|
|
@ -150,6 +153,8 @@ elseif(${CMAKE_SYSTEM_NAME} MATCHES Darwin)
|
|
|
|
|
set(CPACK_IFW_PACKAGE_ICON "${CMAKE_CURRENT_SOURCE_DIR}/icons/favicon.icns")
|
|
|
|
|
set(CPACK_PACKAGE_FILE_NAME "${COMPONENT_NAME_MAIN}-installer-darwin")
|
|
|
|
|
set(CPACK_IFW_TARGET_DIRECTORY "@HomeDir@/Applications/${COMPONENT_NAME_MAIN}")
|
|
|
|
|
set(CPACK_BUNDLE_NAME ${COMPONENT_NAME_MAIN})
|
|
|
|
|
set(CPACK_BUNDLE_ICON "${CMAKE_CURRENT_SOURCE_DIR}/icons/favicon.icns")
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
set(CPACK_PACKAGE_INSTALL_DIRECTORY ${COMPONENT_NAME_MAIN})
|
|
|
|
|