summaryrefslogtreecommitdiff
path: root/lib/CMakeLists.txt
blob: ca08fd720f05dc3ac790287e8d9e5016dc42cdf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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>
	$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/include/uvcgadget>
	$<INSTALL_INTERFACE:include>)

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