CMakeLists.txt 803 B

1234567891011121314151617181920
  1. find_package(Check)
  2. include_directories(${CHECK_INCLUDE_DIRS})
  3. link_directories(${CHECK_LIBRARY_DIRS})
  4. add_executable(check_mode check_mode.c greatest.h)
  5. target_include_directories(check_mode PUBLIC include)
  6. target_link_libraries(check_mode PUBLIC libdng check)
  7. add_executable(check_dng check_dng.c greatest.h)
  8. target_include_directories(check_dng PUBLIC include)
  9. target_link_libraries(check_dng PUBLIC libdng check)
  10. add_executable(check_dcp check_dcp.c greatest.h)
  11. target_include_directories(check_dcp PUBLIC include)
  12. target_link_libraries(check_dcp PUBLIC libdng check)
  13. configure_file(fixture/pinephone.dcp ${CMAKE_CURRENT_BINARY_DIR}/fixture/pinephone.dcp COPYONLY)
  14. add_test(NAME check_mode COMMAND check_mode)
  15. add_test(NAME check_dng COMMAND check_dng)
  16. add_test(NAME check_dcp COMMAND check_dcp)