diff --git a/gpt4all-chat/CMakeLists.txt b/gpt4all-chat/CMakeLists.txt index 9b38610d..8b5d4e5b 100644 --- a/gpt4all-chat/CMakeLists.txt +++ b/gpt4all-chat/CMakeLists.txt @@ -86,14 +86,9 @@ get_filename_component(Qt6_ROOT_DIR "${Qt6_ROOT_DIR}/.." ABSOLUTE) message(STATUS "qmake binary: ${QMAKE_EXECUTABLE}") message(STATUS "Qt 6 root directory: ${Qt6_ROOT_DIR}") -set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) - -set(FMT_INSTALL OFF) -set(BUILD_SHARED_LIBS_SAVED "${BUILD_SHARED_LIBS}") -set(BUILD_SHARED_LIBS OFF) -add_subdirectory(deps/fmt) -set(BUILD_SHARED_LIBS "${BUILD_SHARED_LIBS_SAVED}") +set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) +add_subdirectory(deps) add_subdirectory(../gpt4all-backend llmodel) set(CHAT_EXE_RESOURCES) @@ -133,9 +128,6 @@ if (APPLE) list(APPEND CHAT_EXE_RESOURCES "${LOCAL_EMBEDDING_MODEL_PATH}") endif() -set(QAPPLICATION_CLASS QGuiApplication) -add_subdirectory(deps/SingleApplication) - if (DEFINED GGML_METALLIB) set_source_files_properties("${GGML_METALLIB}" PROPERTIES GENERATED ON) endif() diff --git a/gpt4all-chat/deps/CMakeLists.txt b/gpt4all-chat/deps/CMakeLists.txt new file mode 100644 index 00000000..a8217b46 --- /dev/null +++ b/gpt4all-chat/deps/CMakeLists.txt @@ -0,0 +1,7 @@ +set(BUILD_SHARED_LIBS OFF) + +set(FMT_INSTALL OFF) +add_subdirectory(fmt) + +set(QAPPLICATION_CLASS QGuiApplication) +add_subdirectory(SingleApplication)