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

add_library(uvcgadget ${SOURCES})

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

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