2
0

CMakeLists.txt 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. link_libraries(IrrlichtMt::IrrlichtMt)
  2. add_executable(image_loader_test image_loader_test.cpp)
  3. function(test_image_loader format expected input)
  4. string(TOLOWER ${format} suffix)
  5. add_test(NAME ImageLoader${format}-${input} COMMAND image_loader_test ${expected} data/sample_${input}.${suffix} WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
  6. endfunction()
  7. test_image_loader(BMP 16color-16bpp 4bpp_v3)
  8. # test_image_loader(BMP 16color-16bpp 4bpp_v7)
  9. # test_image_loader(BMP 16color-16bpp 4bpp_v3_rle)
  10. # test_image_loader(BMP 16color-16bpp 4bpp_v7_rle)
  11. test_image_loader(BMP 30color-16bpp 8bpp_v3)
  12. # test_image_loader(BMP 30color-16bpp 8bpp_v7)
  13. test_image_loader(BMP 30color-16bpp 8bpp_v3_rle)
  14. # test_image_loader(BMP 30color-16bpp 8bpp_v7_rle)
  15. # test_image_loader(BMP 30color-16bpp 16bpp_v3)
  16. # test_image_loader(BMP 30color-16bpp 16bpp_v7)
  17. test_image_loader(BMP 30color-24bpp 24bpp_v3)
  18. test_image_loader(BMP 30color-24bpp 24bpp_v7)
  19. test_image_loader(PNG 30color-24bpp 8bpp)
  20. test_image_loader(PNG 30color-24bpp 24bpp)
  21. test_image_loader(TGA 30color-32bpp 8bpp_up)
  22. test_image_loader(TGA 30color-32bpp 8bpp_down)
  23. # test_image_loader(TGA 30color-16bpp 8bpp_rle_up)
  24. # test_image_loader(TGA 30color-16bpp 8bpp_rle_down)
  25. test_image_loader(TGA 30color-24bpp 24bpp_up)
  26. test_image_loader(TGA 30color-24bpp 24bpp_down)
  27. test_image_loader(TGA 30color-24bpp 24bpp_rle_up)
  28. test_image_loader(TGA 30color-24bpp 24bpp_rle_down)