Merge pull request #2875 from nextcloud/make_qtwebsockets_visible_to_windeployqt

Specify PUBLIC for the link targets to make them visible to windeployqt
This commit is contained in:
Kevin Ottens 2021-01-27 18:07:51 +01:00 committed by GitHub
commit f2ffa74a7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -119,24 +119,29 @@ ENDIF(NOT APPLE)
find_package(Qt5 REQUIRED COMPONENTS WebSockets)
add_library(${synclib_NAME} SHARED ${libsync_SRCS})
target_link_libraries(${synclib_NAME}
target_link_libraries(${synclib_NAME} PUBLIC
"${csync_NAME}"
OpenSSL::Crypto
OpenSSL::SSL
${OS_SPECIFIC_LINK_LIBRARIES}
Qt5::Core Qt5::Network
Qt5::Core
Qt5::Network
Qt5::WebSockets
${OS_SPECIFIC_LINK_LIBRARIES}
)
if (NOT TOKEN_AUTH_ONLY)
find_package(Qt5 REQUIRED COMPONENTS Widgets Svg)
target_link_libraries(${synclib_NAME} Qt5::Widgets Qt5::Svg qt5keychain)
target_link_libraries(${synclib_NAME} PUBLIC
Qt5::Widgets
Qt5::Svg
qt5keychain
)
endif()
if(INOTIFY_FOUND)
target_include_directories(${synclib_NAME} PRIVATE ${INOTIFY_INCLUDE_DIR})
link_directories(${INOTIFY_LIBRARY_DIR})
target_link_libraries(${synclib_NAME} ${INOTIFY_LIBRARY} )
target_link_libraries(${synclib_NAME} PUBLIC ${INOTIFY_LIBRARY})
endif()
GENERATE_EXPORT_HEADER( ${synclib_NAME}