[client,common] fixed fuse linking

This commit is contained in:
Armin Novak 2023-03-01 09:18:08 +01:00 committed by akallabeth
parent 7722961fcc
commit a5fb3ad40a

View File

@ -37,7 +37,7 @@ set(SRCS
foreach(FREERDP_CHANNELS_CLIENT_SRC ${FREERDP_CHANNELS_CLIENT_SRCS})
get_filename_component(NINC ${FREERDP_CHANNELS_CLIENT_SRC} PATH)
include_directories(${NINC})
list(APPEND SRCS "${FREERDP_CHANNELS_CLIENT_SRC}")
list(APPEND SRCS "${FREERDP_CHANNELS_CLIENT_SRC}")
endforeach()
if (NOT APPLE AND NOT WIN32 AND NOT ANDROID)
@ -57,14 +57,14 @@ if(WITH_FUSE)
include_directories(${FUSE3_INCLUDE_DIRS})
add_definitions(-DWITH_FUSE3)
list(APPEND ${MODULE_PREFIX}_LIBS ${FUSE3_LIBRARIES})
list(APPEND LIBS ${FUSE3_LIBRARIES})
else()
pkg_check_modules(FUSE2 REQUIRED fuse)
message("[FUSE2] using ${FUSE2_LIBRARIES}")
add_definitions(-DWITH_FUSE2)
include_directories(${FUSE2_INCLUDE_DIRS})
list(APPEND ${MODULE_PREFIX}_LIBS ${FUSE2_LIBRARIES})
list(APPEND LIBS ${FUSE2_LIBRARIES})
endif()
add_definitions(-D_FILE_OFFSET_BITS=64)
@ -79,9 +79,9 @@ if (WIN32 AND BUILD_SHARED_LIBS)
set (RC_VERSION_FILE "${CMAKE_SHARED_LIBRARY_PREFIX}${MODULE_NAME}${FREERDP_API_VERSION}${CMAKE_SHARED_LIBRARY_SUFFIX}" )
configure_file(
${PROJECT_SOURCE_DIR}/cmake/WindowsDLLVersion.rc.in
${CMAKE_CURRENT_BINARY_DIR}/version.rc
@ONLY)
${PROJECT_SOURCE_DIR}/cmake/WindowsDLLVersion.rc.in
${CMAKE_CURRENT_BINARY_DIR}/version.rc
@ONLY)
list (APPEND SRCS ${CMAKE_CURRENT_BINARY_DIR}/version.rc)
endif()
@ -101,9 +101,9 @@ target_link_libraries(${MODULE_NAME} PRIVATE ${FREERDP_CHANNELS_CLIENT_LIBS})
target_link_libraries(${MODULE_NAME} PUBLIC ${LIBS})
install(TARGETS ${MODULE_NAME} COMPONENT libraries EXPORT FreeRDP-ClientTargets
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
if (WITH_DEBUG_SYMBOLS AND MSVC AND BUILD_SHARED_LIBS)
get_target_property(OUTPUT_FILENAME ${MODULE_NAME} OUTPUT_NAME)