fix: cmake install will install extra header files

fix #755
This commit is contained in:
YiFang Xiao 2023-05-28 08:32:36 +08:00 committed by xiaoyifang
parent 2cbcab16ba
commit ba24e57913
3 changed files with 4 additions and 4 deletions

View file

@ -74,7 +74,7 @@ set(QSINGLEAPP_SOURCE_FILES
qt_add_executable(${GOLDENDICT} MANUAL_FINALIZATION)
target_sources(${GOLDENDICT} PUBLIC
target_sources(${GOLDENDICT} PRIVATE
icons/flags.qrc
resources.qrc
src/scripts/scripts.qrc
@ -101,7 +101,7 @@ target_link_libraries(${GOLDENDICT} PRIVATE
)
target_include_directories(${GOLDENDICT} PUBLIC
target_include_directories(${GOLDENDICT} PRIVATE
${PROJECT_SOURCE_DIR}/thirdparty/qtsingleapplication/src
${PROJECT_SOURCE_DIR}/src/
${PROJECT_SOURCE_DIR}/src/common

View file

@ -67,7 +67,7 @@ if (WITH_XAPIAN)
endif ()
if (WITH_EPWING_SUPPORT)
add_subdirectory(thirdparty/eb)
add_subdirectory(thirdparty/eb EXCLUDE_FROM_ALL)
target_link_libraries(${GOLDENDICT} PRIVATE eb)
endif ()

View file

@ -47,7 +47,7 @@ foreach (A_DLL_FILE ${DLL_FILES})
endforeach ()
if (WITH_EPWING_SUPPORT)
add_subdirectory(thirdparty/eb)
add_subdirectory(thirdparty/eb EXCLUDE_FROM_ALL)
target_include_directories(${GOLDENDICT} PRIVATE
thirdparty
)