# If subdirectory don't find packages
if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
  cmake_minimum_required(VERSION 3.4 FATAL_ERROR)

  project(tof_c_examples C)

  # Find packages
  find_package(tof REQUIRED)
endif()

add_executable(raw_capture raw_capture.c)
target_link_libraries(raw_capture tof::tof)
