# SPDX-License-Identifier: BSD-3-Clause # Copyright Contributors to the OpenEXR Project. add_executable(IlmImfTest compareB44.cpp compareDwa.cpp compareFloat.cpp main.cpp testAttributes.cpp testBackwardCompatibility.cpp testBadTypeAttributes.cpp testChannels.cpp testCompositeDeepScanLine.cpp testCompression.cpp testConversion.cpp testCopyDeepScanLine.cpp testCopyDeepTiled.cpp testCopyMultiPartFile.cpp testCopyPixels.cpp testCustomAttributes.cpp testDeepScanLineBasic.cpp testDeepScanLineHuge.cpp testDeepScanLineMultipleRead.cpp testDeepTiledBasic.cpp testDwaCompressorSimd.cpp testExistingStreams.cpp testFutureProofing.cpp testHuf.cpp testInputPart.cpp testIsComplete.cpp testLineOrder.cpp testLut.cpp testMagic.cpp testMalformedImages.cpp testMultiPartApi.cpp testMultiPartFileMixingBasic.cpp testMultiPartSharedAttributes.cpp testMultiPartThreading.cpp testMultiScanlinePartThreading.cpp testMultiTiledPartThreading.cpp testMultiView.cpp testNativeFormat.cpp testOptimized.cpp testOptimizedInterleavePatterns.cpp testPartHelper.cpp testPreviewImage.cpp testRgba.cpp testRgbaThreading.cpp testRle.cpp testSampleImages.cpp testScanLineApi.cpp testSharedFrameBuffer.cpp testStandardAttributes.cpp testTiledCompression.cpp testTiledCopyPixels.cpp testTiledLineOrder.cpp testTiledRgba.cpp testTiledYa.cpp testWav.cpp testXdr.cpp testYca.cpp testLargeDataWindowOffsets.cpp testB44ExpLogTable.cpp testDwaLookups.cpp random.cpp ) target_compile_definitions(IlmImfTest PRIVATE ILM_IMF_TEST_IMAGEDIR="${CMAKE_CURRENT_SOURCE_DIR}/") target_link_libraries(IlmImfTest OpenEXR::IlmImf) set_target_properties(IlmImfTest PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" ) if(WIN32 AND (BUILD_SHARED_LIBS OR OPENEXR_BUILD_BOTH_STATIC_SHARED)) target_compile_definitions(IlmImfTest PRIVATE OPENEXR_DLL) endif() add_test(NAME OpenEXR.IlmImf COMMAND $)