diff --git a/libsearch/index/construct-document.cpp b/libsearch/index/construct-document.cpp index 5fc6bbb..3b9b780 100644 --- a/libsearch/index/construct-document.cpp +++ b/libsearch/index/construct-document.cpp @@ -19,7 +19,7 @@ */ #include "construct-document.h" #include "file-utils.h" -#include "chinese-seg/chinese-segmentation.h" +#include "chinese-segmentation.h" #include #include #include diff --git a/libsearch/index/index-generator.cpp b/libsearch/index/index-generator.cpp index 4b4d2b9..3847cb3 100644 --- a/libsearch/index/index-generator.cpp +++ b/libsearch/index/index-generator.cpp @@ -28,7 +28,7 @@ #include "file-utils.h" #include "index-generator.h" #include "global-settings.h" -#include "chinese-seg/chinese-segmentation.h" +#include "chinese-segmentation.h" #include "construct-document.h" #include diff --git a/libsearch/index/search-manager.h b/libsearch/index/search-manager.h index 4e34b71..e359125 100644 --- a/libsearch/index/search-manager.h +++ b/libsearch/index/search-manager.h @@ -39,9 +39,9 @@ #include #include -#include "../file-utils.h" -#include "../global-settings.h" -#include "chinese-seg/chinese-segmentation.h" +#include "file-utils.h" +#include "global-settings.h" +#include "chinese-segmentation.h" #define INDEX_PATH (QStandardPaths::writableLocation(QStandardPaths::HomeLocation)+"/.config/org.ukui/ukui-search/index_data").toStdString() diff --git a/libsearch/libsearch.pro b/libsearch/libsearch.pro index 4de2e65..42dd0cb 100644 --- a/libsearch/libsearch.pro +++ b/libsearch/libsearch.pro @@ -59,22 +59,13 @@ unix { target.path = $$[QT_INSTALL_LIBS] INSTALLS += target - header.path = /usr/include/ukui-search/ - header.files += *.h - header_appsearch.path = /usr/include/ukui-search/appsearch/ - header_appsearch.files = appsearch/*.h - header_index.path = /usr/include/ukui-search/index/ - header_index.files = index/*.h - header_settingsearch.path = /usr/include/ukui-search/settingsearch/ - header_settingsearch.files = settingsearch/*.h - - INSTALLS += header header_appsearch header_index header_settingsearch + header.path = /usr/include/ukui-search + header.files += *.h index/*.h appsearch/*.h settingsearch/*.h + INSTALLS += header } - - -#INCLUDEPATH += $$PWD/../libchinese-segmentation -#DEPENDPATH += $$PWD/../libchinese-segmentation +INCLUDEPATH += $$PWD/../libchinese-segmentation +DEPENDPATH += $$PWD/../libchinese-segmentation #DISTFILES += \ # ../translations/libsearch/libukui-search_zh_CN.ts