Debian Codegraph @

channels/rdpecam/client/v4l/CMakeLists.txt

raw
1 # FreeRDP: A Remote Desktop Protocol Implementation
2 # FreeRDP cmake build script
3 #
4 # Copyright 2024 Oleg Turovski <[email protected]>
5 #
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
9 #
10 # http://www.apache.org/licenses/LICENSE-2.0
11 #
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17
18 if(WITH_V4L)
19
20 define_channel_client_subsystem("rdpecam" "v4l" "")
21
22 find_package(libusb-1.0 REQUIRED)
23 freerdp_client_pc_add_requires_private("libusb-1.0")
24 include_directories(SYSTEM ${LIBUSB_1_INCLUDE_DIRS})
25
26 set(${MODULE_PREFIX}_SRCS camera_v4l.c uvc_h264.c)
27
28 set(${MODULE_PREFIX}_LIBS winpr freerdp ${LIBUSB_1_LIBRARIES})
29
30 include_directories(..)
31
32 add_channel_client_subsystem_library(${MODULE_PREFIX} ${MODULE_NAME} ${CHANNEL_NAME} "" TRUE "")
33
34 endif()