mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-14 19:05:26 +00:00
31 lines
658 B
CMake
31 lines
658 B
CMake
|
# Copyright 2019, Collabora, Ltd.
|
||
|
# SPDX-License-Identifier: BSL-1.0
|
||
|
|
||
|
include_directories(
|
||
|
${CMAKE_CURRENT_SOURCE_DIR}/../../include
|
||
|
${CMAKE_CURRENT_SOURCE_DIR}/../../auxiliary
|
||
|
${CMAKE_CURRENT_SOURCE_DIR}/../../../external
|
||
|
)
|
||
|
|
||
|
set(PROBER_SOURCE_FILES
|
||
|
p_auto_wrap.c
|
||
|
p_documentation.h
|
||
|
p_dump.c
|
||
|
p_prober.c
|
||
|
p_prober.h
|
||
|
p_udev.c
|
||
|
)
|
||
|
|
||
|
# Use OBJECT to not create a archive, since it just gets in the way.
|
||
|
add_library(st_prober OBJECT ${PROBER_SOURCE_FILES})
|
||
|
|
||
|
target_include_directories(st_prober
|
||
|
PRIVATE
|
||
|
${LIBUSB_INCLUDES}
|
||
|
${LIBUVC_INCLUDES}
|
||
|
${FFMPEG_INCLUDES}
|
||
|
${OPENCV_INCLUDES}
|
||
|
)
|
||
|
|
||
|
set_property(TARGET st_prober PROPERTY POSITION_INDEPENDENT_CODE ON)
|