blob: 2cb8c20d9f23ce91610c9f5bb9b7057f37a32250 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
cmake_minimum_required(VERSION 3.0)
project(uvc-gadget)
set(CMAKE_BUILD_TYPE Release)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-unused-parameter -Werror")
include_directories(${CMAKE_BINARY_DIR}/generated)
add_subdirectory(lib)
# Generate config.h
configure_file(${CMAKE_SOURCE_DIR}/include/config.h.in
${CMAKE_BINARY_DIR}/generated/config.h)
add_executable(uvc-gadget main.c)
target_link_libraries(uvc-gadget uvcgadget)
install(TARGETS uvc-gadget DESTINATION bin)
|