# SPDX-License-Identifier: BSD-3-Clause # Copyright Contributors to the OpenEXR Project. add_executable(ImathTest main.cpp testBox.cpp testBoxAlgo.cpp testColor.cpp testExtractEuler.cpp testExtractSHRT.cpp testFrustum.cpp testFrustumTest.cpp testFun.cpp testInvert.cpp testJacobiEigenSolver.cpp testLineAlgo.cpp testMatrix.cpp testMiscMatrixAlgo.cpp testProcrustes.cpp testQuat.cpp testQuatSetRotation.cpp testQuatSlerp.cpp testRandom.cpp testRoots.cpp testShear.cpp testTinySVD.cpp testVec.cpp ) target_link_libraries(ImathTest IlmBase::Imath) set_target_properties(ImathTest PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" ) if(WIN32 AND (BUILD_SHARED_LIBS OR OPENEXR_BUILD_BOTH_STATIC_SHARED)) target_compile_definitions(ImathTest PRIVATE OPENEXR_DLL) endif() add_test(NAME IlmBase.Imath COMMAND $)