This PR simplifies running examples on Windows, because the DLL must reside either in the same folder where the executable is or somewhere in PATH.
It is an alternative to #1233.
ENVIRONMENT
property for examples on Windows
#1290
17+ $<$<PLATFORM_ID:Windows>:bcrypt>
18+ )
19+ set(test_name ${name}_example)
20+ add_test(NAME ${test_name} COMMAND ${target_name})
21+ if(BUILD_SHARED_LIBS AND MSVC)
22+ # The DLL must resides either in the same folder where the executable is
0 # The DLL must reside either in the same folder where the executable is
This change aims to simplify the following commit.
This change simplifies running examples on Windows, because the DLL
must reside either in the same folder where the executable is or
somewhere in PATH.
Labels
build