Skip to content

Commit

Permalink
Fix OPENEXR_DLL on test applications
Browse files Browse the repository at this point in the history
Signed-off-by: Transporter <[email protected]>
  • Loading branch information
OgreTransporter authored and cary-ilm committed Jun 10, 2020
1 parent 2ba5d79 commit 197aad0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions IlmBase/HalfTest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@ target_link_libraries(HalfTest IlmBase::Half)
set_target_properties(HalfTest PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
)
if(WIN32 AND (BUILD_SHARED_LIBS OR OPENEXR_BUILD_BOTH_STATIC_SHARED))
target_compile_definitions(HalfTest PRIVATE OPENEXR_DLL)
endif()
add_test(NAME IlmBase.Half COMMAND $<TARGET_FILE:HalfTest>)
3 changes: 3 additions & 0 deletions IlmBase/ImathTest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,7 @@ 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 $<TARGET_FILE:ImathTest>)

0 comments on commit 197aad0

Please sign in to comment.