summaryrefslogtreecommitdiff
path: root/lib/CMakeLists.txt
blob: eacfb9c8e919bf0ad14d5411ed73c1d252318d0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
file(GLOB SOURCES "*.c" "*.h")
file(GLOB HEADERS "../include/uvcgadget/*.h")

add_subdirectory(compat)

add_library(uvcgadget ${SOURCES})

set_target_properties(uvcgadget PROPERTIES PUBLIC_HEADER "${HEADERS}")
target_include_directories(uvcgadget
	PUBLIC
	$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/include>
	$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/include/uvcgadget>
	$<INSTALL_INTERFACE:include>)

install(TARGETS uvcgadget
	LIBRARY DESTINATION lib
	ARCHIVE DESTINATION lib
	PUBLIC_HEADER DESTINATION include/uvcgadget)