CMakeLists.txt 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. cmake_minimum_required(VERSION 3.5)
  2. project(rs_driver_test)
  3. find_package(GTest REQUIRED)
  4. include_directories(${GTEST_INCLUDE_DIRS})
  5. include_directories(${DRIVER_INCLUDE_DIRS})
  6. add_definitions("-DUNIT_TEST")
  7. add_executable(rs_driver_test
  8. rs_driver_test.cpp
  9. buffer_test.cpp
  10. sync_queue_test.cpp
  11. trigon_test.cpp
  12. basic_attr_test.cpp
  13. section_test.cpp
  14. chan_angles_test.cpp
  15. split_strategy_test.cpp
  16. single_return_block_iterator_test.cpp
  17. dual_return_block_iterator_test.cpp
  18. ab_dual_return_block_iterator_test.cpp
  19. rs16_single_return_block_iterator_test.cpp
  20. rs16_dual_return_block_iterator_test.cpp
  21. decoder_test.cpp
  22. decoder_rsbp_test.cpp
  23. decoder_rs32_test.cpp
  24. decoder_rs16_test.cpp)
  25. target_link_libraries(rs_driver_test
  26. ${GTEST_LIBRARIES}
  27. ${EXTERNAL_LIBS})