include_directories( ${CMAKE_SOURCE_DIR} ${PCILIB_INCLUDE_DIRS} ) link_directories( ${CMAKE_BINARY_DIR} ${PCILIB_LIBRARY_DIRS} ) add_executable(stream-dma stream-dma.c) target_link_libraries(stream-dma ${PCILIB_LIBRARIES}) add_executable(stream-events stream-events.c) target_link_libraries(stream-events ${PCILIB_LIBRARIES}) add_executable(grab-frame grab-frame.c) target_link_libraries(grab-frame ${PCILIB_LIBRARIES}) #add_executable(ipecam ipecam.c) #target_link_libraries(ipecam ${PCILIB_LIBRARIES} ipecamera)