1 add_definitions("-D_POSIX_C_SOURCE=2") # for getopt()
2 add_definitions("-D_POSIX_SOURCE") # for sigaction
3 add_definitions("-D_BSD_SOURCE") # for strdup
5 include_directories(${CMAKE_SOURCE_DIR}/src/)
7 # Build a test app that sends a single picture
8 add_executable(picoproj picoproj.c)
9 target_link_libraries(picoproj am7xxx)
10 install(TARGETS picoproj
11 DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
13 # Build a more complete example
14 find_package(FFmpeg REQUIRED)
16 include_directories(${FFMPEG_LIBAVDEVICE_INCLUDE_DIRS})
17 include_directories(${FFMPEG_LIBAVFORMAT_INCLUDE_DIRS})
18 include_directories(${FFMPEG_LIBSWSCALE_INCLUDE_DIRS})
20 # xcb is used to retrieve the full screen dimensions when using x11grab
24 add_definitions("${LIBXCB_DEFINITIONS} -DHAVE_XCB")
25 include_directories(${LIBXCB_INCLUDE_DIRS})
28 add_executable(am7xxx-play am7xxx-play.c)
30 target_link_libraries(am7xxx-play am7xxx
32 ${FFMPEG_LIBSWSCALE_LIBRARIES}
34 install(TARGETS am7xxx-play
35 DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")