picoproj: move it to an example/ directory
[libam7xxx.git] / examples / CMakeLists.txt
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
new file mode 100644 (file)
index 0000000..0450e26
--- /dev/null
@@ -0,0 +1,9 @@
+add_definitions("-D_POSIX_C_SOURCE=2") # for getopt()
+
+include_directories(${CMAKE_SOURCE_DIR}/src/)
+
+# Build a test app that sends a single picture
+add_executable(picoproj picoproj.c)
+target_link_libraries(picoproj am7xxx)
+install(TARGETS picoproj
+  DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")