summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt5
-rw-r--r--src/CMakeLists.txt3
-rw-r--r--src/main.c (renamed from main.c)0
3 files changed, 4 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2cb8c20..5291256 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -7,11 +7,8 @@ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-unused-parameter -Werror"
include_directories(${CMAKE_BINARY_DIR}/generated)
add_subdirectory(lib)
+add_subdirectory(src)
# 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)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
new file mode 100644
index 0000000..9f94788
--- /dev/null
+++ b/src/CMakeLists.txt
@@ -0,0 +1,3 @@
+add_executable(uvc-gadget main.c)
+target_link_libraries(uvc-gadget uvcgadget)
+install(TARGETS uvc-gadget DESTINATION bin)
diff --git a/main.c b/src/main.c
index f0f71ba..f0f71ba 100644
--- a/main.c
+++ b/src/main.c