mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2024-11-26 19:33:34 +08:00
[cmake] mark dependency includes SYSTEM
Mark all dependency include paths SYSTEM so warnings from system headers are excluded from ci warning statistics
This commit is contained in:
parent
36686ba348
commit
56d660f258
@ -547,7 +547,7 @@ find_feature(Wayland ${WAYLAND_FEATURE_TYPE} ${WAYLAND_FEATURE_PURPOSE} ${WAYLAN
|
||||
option(WITH_LIBRESSL "build with LibreSSL" OFF)
|
||||
if (WITH_LIBRESSL)
|
||||
find_package(LibreSSL REQUIRED)
|
||||
include_directories(${LibreSSL_INCLUDE_DIRS})
|
||||
include_directories(SYSTEM ${LibreSSL_INCLUDE_DIRS})
|
||||
set(OPENSSL_INCLUDE_DIR ${LIBRESSL_INCLUDE_DIR})
|
||||
set(OPENSSL_LIBRARIES ${LIBRESSL_LIBRARIES})
|
||||
set(OPENSSL_CRYPTO_LIBRARIES ${LIBRESSL_LIBRARIES})
|
||||
@ -620,7 +620,7 @@ set(WITH_OPENH264 ${OPENH264_FOUND})
|
||||
if(OPENSSL_FOUND)
|
||||
add_definitions("-DWITH_OPENSSL")
|
||||
message(STATUS "Using OpenSSL Version: ${OPENSSL_VERSION}")
|
||||
include_directories(${OPENSSL_INCLUDE_DIR})
|
||||
include_directories(SYSTEM ${OPENSSL_INCLUDE_DIR})
|
||||
endif()
|
||||
|
||||
if(MBEDTLS_FOUND)
|
||||
@ -682,7 +682,7 @@ if(ANDROID)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pg")
|
||||
set(PROFILER_LIBRARIES
|
||||
"${FREERDP_EXTERNAL_PROFILER_PATH}/obj/local/${ANDROID_ABI}/libandroid-ndk-profiler.a")
|
||||
include_directories("${FREERDP_EXTERNAL_PROFILER_PATH}")
|
||||
include_directories(SYSTEM "${FREERDP_EXTERNAL_PROFILER_PATH}")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
@ -725,7 +725,7 @@ if (FREERDP_UNIFIED_BUILD)
|
||||
include_directories(${PROJECT_BINARY_DIR}/winpr/include)
|
||||
else()
|
||||
find_package(WinPR 3 REQUIRED)
|
||||
include_directories(${WinPR_INCLUDE_DIR})
|
||||
include_directories(SYSTEM ${WinPR_INCLUDE_DIR})
|
||||
endif()
|
||||
|
||||
option(WITH_AAD "Compile with support for Azure AD authentication" ${WITH_WINPR_JSON})
|
||||
@ -740,7 +740,7 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
|
||||
if(WITH_THIRD_PARTY)
|
||||
add_subdirectory(third-party)
|
||||
if (NOT "${THIRD_PARTY_INCLUDES}" STREQUAL "")
|
||||
include_directories(${THIRD_PARTY_INCLUDES})
|
||||
include_directories(SYSTEM ${THIRD_PARTY_INCLUDES})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
@ -30,6 +30,6 @@ set(${MODULE_PREFIX}_LIBS
|
||||
)
|
||||
|
||||
include_directories(..)
|
||||
include_directories(${ALSA_INCLUDE_DIRS})
|
||||
include_directories(SYSTEM ${ALSA_INCLUDE_DIRS})
|
||||
|
||||
add_channel_client_subsystem_library(${MODULE_PREFIX} ${MODULE_NAME} ${CHANNEL_NAME} "" TRUE "")
|
||||
|
@ -34,6 +34,6 @@ set(${MODULE_PREFIX}_LIBS
|
||||
)
|
||||
|
||||
include_directories(..)
|
||||
include_directories(${MAC_INCLUDE_DIRS})
|
||||
include_directories(SYSTEM ${MAC_INCLUDE_DIRS})
|
||||
|
||||
add_channel_client_subsystem_library(${MODULE_PREFIX} ${MODULE_NAME} ${CHANNEL_NAME} "" TRUE "")
|
||||
|
@ -36,6 +36,6 @@ set(${MODULE_PREFIX}_LIBS
|
||||
)
|
||||
|
||||
include_directories(..)
|
||||
include_directories(${MAC_INCLUDE_DIRS})
|
||||
include_directories(SYSTEM ${MAC_INCLUDE_DIRS})
|
||||
|
||||
add_channel_client_subsystem_library(${MODULE_PREFIX} ${MODULE_NAME} ${CHANNEL_NAME} "" TRUE "")
|
||||
|
@ -31,6 +31,6 @@ set(${MODULE_PREFIX}_LIBS
|
||||
)
|
||||
|
||||
include_directories(..)
|
||||
include_directories(${OpenSLES_INCLUDE_DIRS})
|
||||
include_directories(SYSTEM ${OpenSLES_INCLUDE_DIRS})
|
||||
|
||||
add_channel_client_subsystem_library(${MODULE_PREFIX} ${MODULE_NAME} ${CHANNEL_NAME} "" TRUE "")
|
||||
|
@ -31,7 +31,7 @@ set(${MODULE_PREFIX}_LIBS
|
||||
|
||||
include_directories(..)
|
||||
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||||
include_directories(${OSS_INCLUDE_DIRS})
|
||||
include_directories(SYSTEM ${OSS_INCLUDE_DIRS})
|
||||
configure_file(
|
||||
${CMAKE_SOURCE_DIR}/cmake/oss-includes.h.in
|
||||
${CMAKE_CURRENT_BINARY_DIR}/oss-includes.h
|
||||
|
@ -30,6 +30,6 @@ set(${MODULE_PREFIX}_LIBS
|
||||
)
|
||||
|
||||
include_directories(..)
|
||||
include_directories(${PULSEAUDIO_INCLUDE_DIR})
|
||||
include_directories(SYSTEM ${PULSEAUDIO_INCLUDE_DIR})
|
||||
|
||||
add_channel_client_subsystem_library(${MODULE_PREFIX} ${MODULE_NAME} ${CHANNEL_NAME} "" TRUE "")
|
||||
|
@ -30,7 +30,7 @@ set(${MODULE_PREFIX}_LIBS
|
||||
)
|
||||
|
||||
include_directories(..)
|
||||
include_directories(${SNDIO_INCLUDE_DIRS})
|
||||
include_directories(SYSTEM ${SNDIO_INCLUDE_DIRS})
|
||||
|
||||
add_channel_client_subsystem_library(${MODULE_PREFIX} ${MODULE_NAME} ${CHANNEL_NAME} "" TRUE "")
|
||||
|
||||
|
@ -28,6 +28,6 @@ set(${MODULE_PREFIX}_LIBS
|
||||
)
|
||||
|
||||
include_directories(..)
|
||||
include_directories(${CUPS_INCLUDE_DIRS})
|
||||
include_directories(SYSTEM ${CUPS_INCLUDE_DIRS})
|
||||
|
||||
add_channel_client_subsystem_library(${MODULE_PREFIX} ${MODULE_NAME} ${CHANNEL_NAME} "" TRUE "")
|
||||
|
@ -31,7 +31,7 @@ else()
|
||||
message(FATAL_ERROR "libv4l-dev required for CHANNEL_RDPECAM_CLIENT")
|
||||
endif()
|
||||
|
||||
include_directories(${SWScale_INCLUDE_DIR})
|
||||
include_directories(SYSTEM ${SWScale_INCLUDE_DIR})
|
||||
|
||||
set(${MODULE_PREFIX}_SRCS
|
||||
camera_device_enum_main.c
|
||||
|
@ -29,6 +29,6 @@ set(${MODULE_PREFIX}_LIBS
|
||||
)
|
||||
|
||||
include_directories(..)
|
||||
include_directories(${ALSA_INCLUDE_DIRS})
|
||||
include_directories(SYSTEM ${ALSA_INCLUDE_DIRS})
|
||||
|
||||
add_channel_client_subsystem_library(${MODULE_PREFIX} ${MODULE_NAME} ${CHANNEL_NAME} "" TRUE "")
|
||||
|
@ -39,6 +39,6 @@ set(${MODULE_PREFIX}_LIBS
|
||||
)
|
||||
|
||||
include_directories(..)
|
||||
include_directories(${MACAUDIO_INCLUDE_DIRS})
|
||||
include_directories(SYSTEM ${MACAUDIO_INCLUDE_DIRS})
|
||||
|
||||
add_channel_client_subsystem_library(${MODULE_PREFIX} ${MODULE_NAME} ${CHANNEL_NAME} "" TRUE "")
|
||||
|
@ -30,6 +30,6 @@ set(${MODULE_PREFIX}_LIBS
|
||||
)
|
||||
|
||||
include_directories(..)
|
||||
include_directories(${OpenSLES_INCLUDE_DIRS})
|
||||
include_directories(SYSTEM ${OpenSLES_INCLUDE_DIRS})
|
||||
|
||||
add_channel_client_subsystem_library(${MODULE_PREFIX} ${MODULE_NAME} ${CHANNEL_NAME} "" TRUE "")
|
||||
|
@ -31,7 +31,7 @@ set(${MODULE_PREFIX}_LIBS
|
||||
|
||||
include_directories(..)
|
||||
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||||
include_directories(${OSS_INCLUDE_DIRS})
|
||||
include_directories(SYSTEM ${OSS_INCLUDE_DIRS})
|
||||
configure_file(
|
||||
${CMAKE_SOURCE_DIR}/cmake/oss-includes.h.in
|
||||
${CMAKE_CURRENT_BINARY_DIR}/oss-includes.h
|
||||
|
@ -31,6 +31,6 @@ set(${MODULE_PREFIX}_LIBS
|
||||
)
|
||||
|
||||
include_directories(..)
|
||||
include_directories(${PULSEAUDIO_INCLUDE_DIR})
|
||||
include_directories(SYSTEM ${PULSEAUDIO_INCLUDE_DIR})
|
||||
|
||||
add_channel_client_subsystem_library(${MODULE_PREFIX} ${MODULE_NAME} ${CHANNEL_NAME} "" TRUE "")
|
||||
|
@ -31,6 +31,6 @@ set(${MODULE_PREFIX}_LIBS
|
||||
)
|
||||
|
||||
include_directories(..)
|
||||
include_directories(${SNDIO_INCLUDE_DIRS})
|
||||
include_directories(SYSTEM ${SNDIO_INCLUDE_DIRS})
|
||||
|
||||
add_channel_client_subsystem_library(${MODULE_PREFIX} ${MODULE_NAME} ${CHANNEL_NAME} "" TRUE "")
|
||||
|
@ -30,6 +30,6 @@ set(${MODULE_PREFIX}_LIBS
|
||||
)
|
||||
|
||||
include_directories(..)
|
||||
include_directories(${ALSA_INCLUDE_DIRS})
|
||||
include_directories(SYSTEM ${ALSA_INCLUDE_DIRS})
|
||||
|
||||
add_channel_client_subsystem_library(${MODULE_PREFIX} ${MODULE_NAME} ${CHANNEL_NAME} "" TRUE "")
|
||||
|
@ -35,7 +35,7 @@ if(APPLE)
|
||||
endif()
|
||||
|
||||
include_directories(..)
|
||||
include_directories(${FFMPEG_INCLUDE_DIRS})
|
||||
include_directories(SYSTEM ${FFMPEG_INCLUDE_DIRS})
|
||||
|
||||
add_channel_client_subsystem_library(${MODULE_PREFIX} ${MODULE_NAME} ${CHANNEL_NAME} "" TRUE "")
|
||||
|
||||
|
@ -33,7 +33,7 @@ set(LIBS
|
||||
${gstreamervideo_LIBRARIES}
|
||||
${gstreamerapp_LIBRARIES}
|
||||
)
|
||||
include_directories(
|
||||
include_directories(SYSTEM
|
||||
${gstreamer_INCLUDE_DIRS}
|
||||
${gstreamerbase_INCLUDE_DIRS}
|
||||
${gstreamervideo_INCLUDE_DIRS}
|
||||
|
@ -29,7 +29,7 @@ set(${MODULE_PREFIX}_LIBS
|
||||
)
|
||||
|
||||
include_directories(..)
|
||||
include_directories(${OSS_INCLUDE_DIRS})
|
||||
include_directories(SYSTEM ${OSS_INCLUDE_DIRS})
|
||||
|
||||
add_channel_client_subsystem_library(${MODULE_PREFIX} ${MODULE_NAME} ${CHANNEL_NAME} "" TRUE "")
|
||||
|
||||
|
@ -30,6 +30,6 @@ set(${MODULE_PREFIX}_LIBS
|
||||
)
|
||||
|
||||
include_directories(..)
|
||||
include_directories(${PULSEAUDIO_INCLUDE_DIR})
|
||||
include_directories(SYSTEM ${PULSEAUDIO_INCLUDE_DIR})
|
||||
|
||||
add_channel_client_subsystem_library(${MODULE_PREFIX} ${MODULE_NAME} ${CHANNEL_NAME} "" TRUE "")
|
||||
|
@ -24,7 +24,7 @@ if(WITH_CLIENT_CHANNELS)
|
||||
option(WITH_DEBUG_URBDRC "Dump data send/received in URBDRC channel" ${DEFAULT_DEBUG_OPTION})
|
||||
|
||||
find_package(libusb-1.0 REQUIRED)
|
||||
include_directories(${LIBUSB_1_INCLUDE_DIRS})
|
||||
include_directories(SYSTEM ${LIBUSB_1_INCLUDE_DIRS})
|
||||
|
||||
add_channel_client(${MODULE_PREFIX} ${CHANNEL_NAME})
|
||||
endif()
|
||||
|
@ -17,8 +17,8 @@
|
||||
set(MODULE_NAME "sdl2-freerdp")
|
||||
|
||||
find_package(SDL2 REQUIRED COMPONENTS)
|
||||
include_directories(${SDL2_INCLUDE_DIR})
|
||||
include_directories(${SDL2_INCLUDE_DIRS})
|
||||
include_directories(SYSTEM ${SDL2_INCLUDE_DIR})
|
||||
include_directories(SYSTEM ${SDL2_INCLUDE_DIRS})
|
||||
|
||||
find_package(Threads REQUIRED)
|
||||
|
||||
|
@ -39,11 +39,11 @@ macro(find_sdl_component name)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
list(APPEND LIBS ${${name}_LIBRARIES})
|
||||
link_directories(${${name}_LIBRARY_DIRS})
|
||||
include_directories(${${name}_INCLUDE_DIRS})
|
||||
include_directories(SYSTEM ${${name}_INCLUDE_DIRS})
|
||||
else()
|
||||
list(APPEND LIBS ${${name}_STATIC_LIBRARIES})
|
||||
link_directories(${${name}_STATIC_LIBRARY_DIRS})
|
||||
include_directories(${${name}_STATIC_INCLUDE_DIRS})
|
||||
include_directories(SYSTEM ${${name}_STATIC_INCLUDE_DIRS})
|
||||
endif()
|
||||
else()
|
||||
if (WITH_SDL_LINK_SHARED)
|
||||
|
@ -60,7 +60,7 @@ if (WITH_WEBVIEW)
|
||||
if (NOT WEBVIEW_GTK_FOUND)
|
||||
pkg_check_modules(WEBVIEW_GTK webkit2gtk-4.0 REQUIRED)
|
||||
endif()
|
||||
include_directories(${WEBVIEW_GTK_INCLUDE_DIRS})
|
||||
include_directories(SYSTEM ${WEBVIEW_GTK_INCLUDE_DIRS})
|
||||
list(APPEND LIBS
|
||||
${WEBVIEW_GTK_LIBRARIES}
|
||||
)
|
||||
|
@ -19,7 +19,7 @@
|
||||
set(MODULE_NAME "wlfreerdp")
|
||||
set(MODULE_PREFIX "FREERDP_CLIENT_WAYLAND")
|
||||
|
||||
include_directories(${WAYLAND_INCLUDE_DIR})
|
||||
include_directories(SYSTEM ${WAYLAND_INCLUDE_DIR})
|
||||
|
||||
set(${MODULE_PREFIX}_SRCS
|
||||
wlfreerdp.c
|
||||
@ -41,7 +41,7 @@ if (FREERDP_UNIFIED_BUILD)
|
||||
include_directories(${PROJECT_BINARY_DIR}/uwac/include)
|
||||
else()
|
||||
find_package(uwac 0 REQUIRED)
|
||||
include_directories(${UWAC_INCLUDE_DIR})
|
||||
include_directories(SYSTEM ${UWAC_INCLUDE_DIR})
|
||||
endif()
|
||||
|
||||
list (APPEND ${MODULE_PREFIX}_LIBS freerdp-client freerdp uwac)
|
||||
|
@ -42,8 +42,8 @@ include(ConfigureFreeRDP)
|
||||
find_package(X11 REQUIRED)
|
||||
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../resources)
|
||||
include_directories(${X11_INCLUDE_DIRS})
|
||||
include_directories(${OPENSSL_INCLUDE_DIR})
|
||||
include_directories(SYSTEM ${X11_INCLUDE_DIRS})
|
||||
include_directories(SYSTEM ${OPENSSL_INCLUDE_DIR})
|
||||
|
||||
set(SRCS
|
||||
xf_utils.h
|
||||
@ -100,7 +100,7 @@ set(PRIV_LIBS
|
||||
find_package(X11 REQUIRED)
|
||||
if(X11_XShm_FOUND)
|
||||
add_definitions(-DWITH_XSHM)
|
||||
include_directories(${X11_XShm_INCLUDE_PATH})
|
||||
include_directories(SYSTEM ${X11_XShm_INCLUDE_PATH})
|
||||
list(APPEND PRIV_LIBS
|
||||
${X11_Xext_LIB}
|
||||
)
|
||||
@ -112,7 +112,7 @@ if (WITH_XINERAMA)
|
||||
find_package(X11 REQUIRED)
|
||||
if(X11_Xinerama_FOUND)
|
||||
add_definitions(-DWITH_XINERAMA)
|
||||
include_directories(${X11_Xinerama_INCLUDE_PATH})
|
||||
include_directories(SYSTEM ${X11_Xinerama_INCLUDE_PATH})
|
||||
list(APPEND PRIV_LIBS
|
||||
${X11_Xinerama_LIB}
|
||||
)
|
||||
@ -135,7 +135,7 @@ if (WITH_XCURSOR)
|
||||
find_package(X11 REQUIRED)
|
||||
if(X11_Xcursor_FOUND)
|
||||
add_definitions(-DWITH_XCURSOR)
|
||||
include_directories(${X11_Xcursor_INCLUDE_PATH})
|
||||
include_directories(SYSTEM ${X11_Xcursor_INCLUDE_PATH})
|
||||
list(APPEND PRIV_LIBS
|
||||
${X11_Xcursor_LIB}
|
||||
)
|
||||
@ -147,7 +147,7 @@ if (WITH_XV)
|
||||
find_package(X11 REQUIRED)
|
||||
if(X11_Xv_FOUND)
|
||||
add_definitions(-DWITH_XV)
|
||||
include_directories(${X11_Xv_INCLUDE_PATH})
|
||||
include_directories(SYSTEM ${X11_Xv_INCLUDE_PATH})
|
||||
list(APPEND PRIV_LIBS
|
||||
${X11_Xv_LIB}
|
||||
)
|
||||
@ -159,7 +159,7 @@ if (WITH_XI)
|
||||
find_package(X11 REQUIRED)
|
||||
if(X11_Xi_FOUND)
|
||||
add_definitions(-DWITH_XI)
|
||||
include_directories(${X11_Xi_INCLUDE_PATH})
|
||||
include_directories(SYSTEM ${X11_Xi_INCLUDE_PATH})
|
||||
list(APPEND PRIV_LIBS
|
||||
${X11_Xi_LIB}
|
||||
)
|
||||
@ -171,7 +171,7 @@ if(WITH_XRENDER)
|
||||
find_package(X11 REQUIRED)
|
||||
if(X11_Xrender_FOUND)
|
||||
add_definitions(-DWITH_XRENDER)
|
||||
include_directories(${X11_Xrender_INCLUDE_PATH})
|
||||
include_directories(SYSTEM ${X11_Xrender_INCLUDE_PATH})
|
||||
list(APPEND PRIV_LIBS
|
||||
${X11_Xrender_LIB}
|
||||
)
|
||||
@ -183,7 +183,7 @@ if (WITH_XRANDR)
|
||||
find_package(X11 REQUIRED)
|
||||
if(X11_Xrandr_FOUND)
|
||||
add_definitions(-DWITH_XRANDR)
|
||||
include_directories(${X11_Xrandr_INCLUDE_PATH})
|
||||
include_directories(SYSTEM ${X11_Xrandr_INCLUDE_PATH})
|
||||
list(APPEND PRIV_LIBS
|
||||
${X11_Xrandr_LIB}
|
||||
)
|
||||
@ -195,7 +195,7 @@ if (WITH_XFIXES)
|
||||
find_package(X11 REQUIRED)
|
||||
if(X11_Xfixes_FOUND)
|
||||
add_definitions(-DWITH_XFIXES)
|
||||
include_directories(${X11_Xfixes_INCLUDE_PATH})
|
||||
include_directories(SYSTEM ${X11_Xfixes_INCLUDE_PATH})
|
||||
list(APPEND PRIV_LIBS
|
||||
${X11_Xfixes_LIB}
|
||||
)
|
||||
|
@ -51,14 +51,14 @@ if(WITH_FUSE)
|
||||
find_package(PkgConfig REQUIRED)
|
||||
|
||||
pkg_check_modules(FUSE3 REQUIRED fuse3)
|
||||
include_directories(${FUSE3_INCLUDE_DIRS})
|
||||
include_directories(SYSTEM ${FUSE3_INCLUDE_DIRS})
|
||||
add_definitions(-DWITH_FUSE)
|
||||
list(APPEND LIBS ${FUSE3_LIBRARIES})
|
||||
|
||||
add_definitions(-D_FILE_OFFSET_BITS=64)
|
||||
endif()
|
||||
|
||||
include_directories(${OPENSSL_INCLUDE_DIR})
|
||||
include_directories(SYSTEM ${OPENSSL_INCLUDE_DIR})
|
||||
|
||||
AddTargetWithResourceFile(${MODULE_NAME} FALSE "${FREERDP_VERSION}" SRCS)
|
||||
|
||||
|
@ -43,14 +43,14 @@ set(IOS_CLIENT_MODELS_DIR ${IOS_CLIENT_DIR}/Models)
|
||||
set(IOS_CLIENT_VIEWS_DIR ${IOS_CLIENT_DIR}/Views)
|
||||
set(IOS_CLIENT_RESOURCES_DIR ${IOS_CLIENT_DIR}/Resources)
|
||||
|
||||
include_directories(${IOS_CLIENT_DIR})
|
||||
include_directories(${IOS_CLIENT_ADDITIONS_DIR})
|
||||
include_directories(${IOS_CLIENT_CONTROLLERS_DIR})
|
||||
include_directories(${IOS_CLIENT_FREERDP_DIR})
|
||||
include_directories(${IOS_CLIENT_MISC_DIR})
|
||||
include_directories(${IOS_CLIENT_MODELS_DIR})
|
||||
include_directories(${IOS_CLIENT_VIEWS_DIR})
|
||||
include_directories(${OPENSSL_INCLUDE_DIR})
|
||||
include_directories(SYSTEM ${IOS_CLIENT_DIR})
|
||||
include_directories(SYSTEM ${IOS_CLIENT_ADDITIONS_DIR})
|
||||
include_directories(SYSTEM ${IOS_CLIENT_CONTROLLERS_DIR})
|
||||
include_directories(SYSTEM ${IOS_CLIENT_FREERDP_DIR})
|
||||
include_directories(SYSTEM ${IOS_CLIENT_MISC_DIR})
|
||||
include_directories(SYSTEM ${IOS_CLIENT_MODELS_DIR})
|
||||
include_directories(SYSTEM ${IOS_CLIENT_VIEWS_DIR})
|
||||
include_directories(SYSTEM ${OPENSSL_INCLUDE_DIR})
|
||||
|
||||
# Add sources
|
||||
set(${MODULE_PREFIX}_SRCS
|
||||
|
@ -1,10 +1,10 @@
|
||||
if (NOT FREERDP_UNIFIED_BUILD)
|
||||
find_package(WinPR 3 REQUIRED)
|
||||
include_directories(${WinPR_INCLUDE_DIR})
|
||||
include_directories(SYSTEM ${WinPR_INCLUDE_DIR})
|
||||
|
||||
find_package(FreeRDP 3 REQUIRED)
|
||||
include_directories(${FreeRDP_INCLUDE_DIR})
|
||||
include_directories(SYSTEM ${FreeRDP_INCLUDE_DIR})
|
||||
|
||||
find_package(FreeRDP-Client 3 REQUIRED)
|
||||
include_directories(${FreeRDP-Client_INCLUDE_DIR})
|
||||
include_directories(SYSTEM ${FreeRDP-Client_INCLUDE_DIR})
|
||||
endif()
|
||||
|
@ -84,12 +84,12 @@ if (USE_PLATFORM_DEFAULT)
|
||||
|
||||
if(BSD)
|
||||
if(IS_DIRECTORY /usr/local/include)
|
||||
include_directories(/usr/local/include)
|
||||
include_directories(SYSTEM /usr/local/include)
|
||||
link_directories(/usr/local/lib)
|
||||
endif()
|
||||
if(OPENBSD)
|
||||
if(IS_DIRECTORY /usr/X11R6/include)
|
||||
include_directories(/usr/X11R6/include)
|
||||
include_directories(SYSTEM /usr/X11R6/include)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
@ -102,7 +102,7 @@ if (WITH_FDK_AAC)
|
||||
pkg_check_modules(FDK_AAC REQUIRED fdk-aac)
|
||||
|
||||
add_definitions(-DWITH_FDK_AAC)
|
||||
include_directories(${FDK_AAC_INCLUDE_DIRS})
|
||||
include_directories(SYSTEM ${FDK_AAC_INCLUDE_DIRS})
|
||||
|
||||
link_directories(${FDK_AAC_LIBRARY_DIRS})
|
||||
freerdp_library_add(${FDK_AAC_LIBRARIES})
|
||||
@ -147,11 +147,11 @@ endif(WITH_CAIRO)
|
||||
|
||||
# Prefer SWScale over Cairo, both at the same time are not possible.
|
||||
if (WITH_SWSCALE)
|
||||
include_directories(${SWScale_INCLUDE_DIR})
|
||||
include_directories(SYSTEM ${SWScale_INCLUDE_DIR})
|
||||
freerdp_library_add(${SWScale_LIBRARY})
|
||||
endif()
|
||||
if (WITH_CAIRO)
|
||||
include_directories(${CAIRO_INCLUDE_DIR})
|
||||
include_directories(SYSTEM ${CAIRO_INCLUDE_DIR})
|
||||
freerdp_library_add(${CAIRO_LIBRARY})
|
||||
endif()
|
||||
if (NOT WITH_SWSCALE AND NOT WITH_CAIRO)
|
||||
@ -189,7 +189,7 @@ list(APPEND LIBFREERDP_PUB_LIBS winpr)
|
||||
|
||||
list(REMOVE_DUPLICATES LIBFREERDP_DEFINITIONS)
|
||||
list(REMOVE_DUPLICATES LIBFREERDP_INCLUDES)
|
||||
include_directories(${LIBFREERDP_INCLUDES})
|
||||
include_directories(SYSTEM ${LIBFREERDP_INCLUDES})
|
||||
|
||||
if (LIBFREERDP_OBJECT_LIBS)
|
||||
list(REMOVE_DUPLICATES LIBFREERDP_OBJECT_LIBS)
|
||||
|
@ -92,23 +92,23 @@ if (WITH_DSP_FFMPEG)
|
||||
${CODEC_SRCS}
|
||||
dsp_ffmpeg.c
|
||||
dsp_ffmpeg.h)
|
||||
include_directories(${FFMPEG_INCLUDE_DIRS})
|
||||
include_directories(SYSTEM ${FFMPEG_INCLUDE_DIRS})
|
||||
list(APPEND CODEC_LIBS ${FFMPEG_LIBRARIES})
|
||||
endif (WITH_DSP_FFMPEG)
|
||||
|
||||
if (WITH_SOXR)
|
||||
list(APPEND CODEC_LIBS ${SOXR_LIBRARIES})
|
||||
include_directories(${SOXR_INCLUDE_DIR})
|
||||
include_directories(SYSTEM ${SOXR_INCLUDE_DIR})
|
||||
endif(WITH_SOXR)
|
||||
|
||||
if(GSM_FOUND)
|
||||
list(APPEND CODEC_LIBS ${GSM_LIBRARIES})
|
||||
include_directories(${GSM_INCLUDE_DIRS})
|
||||
include_directories(SYSTEM ${GSM_INCLUDE_DIRS})
|
||||
endif()
|
||||
|
||||
if(LAME_FOUND)
|
||||
list(APPEND CODEC_LIBS ${LAME_LIBRARIES})
|
||||
include_directories(${LAME_INCLUDE_DIRS})
|
||||
include_directories(SYSTEM ${LAME_INCLUDE_DIRS})
|
||||
endif()
|
||||
|
||||
if (WITH_FDK_AAC)
|
||||
@ -121,17 +121,17 @@ endif()
|
||||
|
||||
if(FAAD2_FOUND)
|
||||
list(APPEND CODEC_LIBS ${FAAD2_LIBRARIES})
|
||||
include_directories(${FAAD2_INCLUDE_DIRS})
|
||||
include_directories(SYSTEM ${FAAD2_INCLUDE_DIRS})
|
||||
endif()
|
||||
|
||||
if(FAAC_FOUND)
|
||||
list(APPEND CODEC_LIBS ${FAAC_LIBRARIES})
|
||||
include_directories(${FAAC_INCLUDE_DIRS})
|
||||
include_directories(SYSTEM ${FAAC_INCLUDE_DIRS})
|
||||
endif()
|
||||
|
||||
if(WITH_OPENH264)
|
||||
set(CODEC_SRCS ${CODEC_SRCS} h264_openh264.c)
|
||||
include_directories(${OPENH264_INCLUDE_DIR})
|
||||
include_directories(SYSTEM ${OPENH264_INCLUDE_DIR})
|
||||
if (NOT WITH_OPENH264_LOADING)
|
||||
list(APPEND CODEC_LIBS ${OPENH264_LIBRARIES})
|
||||
endif (NOT WITH_OPENH264_LOADING)
|
||||
@ -139,7 +139,7 @@ endif()
|
||||
|
||||
if(WITH_VIDEO_FFMPEG)
|
||||
set(CODEC_SRCS ${CODEC_SRCS} h264_ffmpeg.c)
|
||||
include_directories(${FFMPEG_INCLUDE_DIRS})
|
||||
include_directories(SYSTEM ${FFMPEG_INCLUDE_DIRS})
|
||||
list(APPEND CODEC_LIBS ${FFMPEG_LIBRARIES})
|
||||
endif()
|
||||
|
||||
|
@ -13,7 +13,7 @@ create_test_sourcelist(${MODULE_PREFIX}_SRCS
|
||||
${${MODULE_PREFIX}_DRIVER}
|
||||
${${MODULE_PREFIX}_TESTS})
|
||||
|
||||
include_directories(${OPENSSL_INCLUDE_DIR})
|
||||
include_directories(SYSTEM ${OPENSSL_INCLUDE_DIR})
|
||||
|
||||
add_executable(${MODULE_NAME} ${${MODULE_PREFIX}_SRCS})
|
||||
|
||||
|
@ -20,7 +20,7 @@ set(MODULE_PREFIX "RDTK_SAMPLE")
|
||||
|
||||
find_package(X11 REQUIRED)
|
||||
|
||||
include_directories(${X11_INCLUDE_DIR})
|
||||
include_directories(SYSTEM ${X11_INCLUDE_DIR})
|
||||
|
||||
set(SRCS
|
||||
rdtk_x11.c)
|
||||
|
@ -55,7 +55,7 @@ set(SRCS
|
||||
|
||||
if (NOT FREERDP_UNIFIED_BUILD)
|
||||
find_package(rdtk 0 REQUIRED)
|
||||
include_directories(${RDTK_INCLUDE_DIR})
|
||||
include_directories(SYSTEM ${RDTK_INCLUDE_DIR})
|
||||
else()
|
||||
if (NOT WITH_RDTK)
|
||||
message(FATAL_ERROR "-DWITH_RDTK=ON is required for unified FreeRDP build with shadow server")
|
||||
|
@ -15,7 +15,7 @@ set(LIBS
|
||||
|
||||
if(PAM_FOUND)
|
||||
add_definitions(-DWITH_PAM)
|
||||
include_directories(${PAM_INCLUDE_DIR})
|
||||
include_directories(SYSTEM ${PAM_INCLUDE_DIR})
|
||||
list(APPEND LIBS ${PAM_LIBRARY})
|
||||
else()
|
||||
message("building without PAM authentication support")
|
||||
|
@ -1,13 +1,13 @@
|
||||
find_package(X11 REQUIRED)
|
||||
if(X11_FOUND)
|
||||
add_definitions(-DWITH_X11)
|
||||
include_directories(${X11_INCLUDE_DIR})
|
||||
include_directories(SYSTEM ${X11_INCLUDE_DIR})
|
||||
list(APPEND LIBS ${X11_LIBRARIES})
|
||||
endif()
|
||||
|
||||
if(X11_XShm_FOUND)
|
||||
add_definitions(-DWITH_XSHM)
|
||||
include_directories(${X11_XShm_INCLUDE_PATH})
|
||||
include_directories(SYSTEM ${X11_XShm_INCLUDE_PATH})
|
||||
list(APPEND LIBS ${X11_XShm_LIB})
|
||||
endif()
|
||||
|
||||
@ -18,45 +18,45 @@ endif()
|
||||
|
||||
if(X11_Xinerama_FOUND)
|
||||
add_definitions(-DWITH_XINERAMA)
|
||||
include_directories(${X11_Xinerama_INCLUDE_PATH})
|
||||
include_directories(SYSTEM ${X11_Xinerama_INCLUDE_PATH})
|
||||
list(APPEND LIBS ${X11_Xinerama_LIB})
|
||||
endif()
|
||||
|
||||
if(X11_Xdamage_FOUND)
|
||||
add_definitions(-DWITH_XDAMAGE)
|
||||
include_directories(${X11_Xdamage_INCLUDE_PATH})
|
||||
include_directories(SYSTEM ${X11_Xdamage_INCLUDE_PATH})
|
||||
list(APPEND LIBS ${X11_Xdamage_LIB})
|
||||
endif()
|
||||
|
||||
if(X11_Xfixes_FOUND)
|
||||
add_definitions(-DWITH_XFIXES)
|
||||
include_directories(${X11_Xfixes_INCLUDE_PATH})
|
||||
include_directories(SYSTEM ${X11_Xfixes_INCLUDE_PATH})
|
||||
list(APPEND LIBS ${X11_Xfixes_LIB})
|
||||
endif()
|
||||
|
||||
if(X11_XTest_FOUND)
|
||||
add_definitions(-DWITH_XTEST)
|
||||
include_directories(${X11_XTest_INCLUDE_PATH})
|
||||
include_directories(SYSTEM ${X11_XTest_INCLUDE_PATH})
|
||||
list(APPEND LIBS ${X11_XTest_LIB})
|
||||
endif()
|
||||
|
||||
# XCursor and XRandr are currently not used so don't link them
|
||||
#if(X11_Xcursor_FOUND)
|
||||
# add_definitions(-DWITH_XCURSOR)
|
||||
# include_directories(${X11_Xcursor_INCLUDE_PATH})
|
||||
# include_directories(SYSTEM ${X11_Xcursor_INCLUDE_PATH})
|
||||
# list(APPEND LIBS ${X11_Xcursor_LIB})
|
||||
#endif()
|
||||
|
||||
#if(X11_Xrandr_FOUND)
|
||||
# add_definitions(-DWITH_XRANDR)
|
||||
# include_directories(${X11_Xrandr_INCLUDE_PATH})
|
||||
# include_directories(SYSTEM ${X11_Xrandr_INCLUDE_PATH})
|
||||
# list(APPEND LIBS ${X11_Xrandr_LIB})
|
||||
#endif()
|
||||
|
||||
find_package(PAM)
|
||||
if(PAM_FOUND)
|
||||
add_definitions(-DWITH_PAM)
|
||||
include_directories(${PAM_INCLUDE_DIR})
|
||||
include_directories(SYSTEM ${PAM_INCLUDE_DIR})
|
||||
list(APPEND LIBS ${PAM_LIBRARY})
|
||||
else()
|
||||
message("building without PAM authentication support")
|
||||
|
@ -71,7 +71,7 @@ endif()
|
||||
if (UWAC_HAVE_PIXMAN_REGION)
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_check_modules(pixman REQUIRED pixman-1)
|
||||
include_directories(${pixman_INCLUDE_DIRS})
|
||||
include_directories(SYSTEM ${pixman_INCLUDE_DIRS})
|
||||
elseif (FREERDP_UNIFIED_BUILD)
|
||||
include_directories(${PROJECT_SOURCE_DIR}/winpr/include)
|
||||
include_directories(${PROJECT_BINARY_DIR}/winpr/include)
|
||||
@ -80,8 +80,8 @@ elseif (FREERDP_UNIFIED_BUILD)
|
||||
else()
|
||||
find_package(WinPR 3 REQUIRED)
|
||||
find_package(FreeRDP 3 REQUIRED)
|
||||
include_directories(${WinPR_INCLUDE_DIR})
|
||||
include_directories(${FreeRDP_INCLUDE_DIR})
|
||||
include_directories(SYSTEM ${WinPR_INCLUDE_DIR})
|
||||
include_directories(SYSTEM ${FreeRDP_INCLUDE_DIR})
|
||||
endif()
|
||||
|
||||
set(WAYLAND_FEATURE_PURPOSE "Wayland")
|
||||
|
@ -46,10 +46,10 @@ generate_protocol_file(fullscreen-shell-unstable-v1)
|
||||
generate_protocol_file(keyboard-shortcuts-inhibit-unstable-v1)
|
||||
|
||||
if(FREEBSD)
|
||||
include_directories(${EPOLLSHIM_INCLUDE_DIR})
|
||||
include_directories(SYSTEM ${EPOLLSHIM_INCLUDE_DIR})
|
||||
endif()
|
||||
include_directories(${WAYLAND_INCLUDE_DIR})
|
||||
include_directories(${XKBCOMMON_INCLUDE_DIR})
|
||||
include_directories(SYSTEM ${WAYLAND_INCLUDE_DIR})
|
||||
include_directories(SYSTEM ${XKBCOMMON_INCLUDE_DIR})
|
||||
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/../include")
|
||||
include_directories("${CMAKE_CURRENT_BINARY_DIR}/../include")
|
||||
include_directories("${CMAKE_CURRENT_BINARY_DIR}/protocols")
|
||||
|
@ -17,7 +17,7 @@ create_test_sourcelist(${MODULE_PREFIX}_SRCS
|
||||
${${MODULE_PREFIX}_DRIVER}
|
||||
${${MODULE_PREFIX}_TESTS})
|
||||
|
||||
include_directories(${OPENSSL_INCLUDE_DIR})
|
||||
include_directories(SYSTEM ${OPENSSL_INCLUDE_DIR})
|
||||
|
||||
add_executable(${MODULE_NAME} ${${MODULE_PREFIX}_SRCS})
|
||||
|
||||
|
@ -23,7 +23,7 @@ create_test_sourcelist(${MODULE_PREFIX}_SRCS
|
||||
${${MODULE_PREFIX}_TESTS})
|
||||
|
||||
if(FREEBSD)
|
||||
include_directories(${EPOLLSHIM_INCLUDE_DIR})
|
||||
include_directories(SYSTEM ${EPOLLSHIM_INCLUDE_DIR})
|
||||
endif()
|
||||
|
||||
add_executable(${MODULE_NAME} ${${MODULE_PREFIX}_SRCS})
|
||||
|
Loading…
Reference in New Issue
Block a user