We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3916cb5 commit 4fcf299Copy full SHA for 4fcf299
1 file changed
analytics/integration_test/CMakeLists.txt
@@ -211,6 +211,18 @@ else()
211
)
212
elseif(MSVC)
213
set(ADDITIONAL_LIBS advapi32 ws2_32 crypt32)
214
+ set(ANALYTICS_WINDOWS_DLL "${FIREBASE_CPP_SDK_DIR}/analytics/windows/analytics_win.dll")
215
+
216
+ # For Windows, check if the Analytics DLL exists, and copy it in if so.
217
+ if (EXISTS "${ANALYTICS_WINDOWS_DLL}")
218
+ add_custom_command(
219
+ TARGET ${integration_test_target_name} POST_BUILD
220
+ COMMAND ${CMAKE_COMMAND} -E copy
221
+ "${ANALYTICS_WINDOWS_DLL}"
222
+ $<TARGET_FILE_DIR:${integration_test_target_name}>)
223
+ else()
224
+ message(WARNING "Couldn't find ${ANALYTICS_WINDOWS_DLL}. Analytics will run in stub mode.")
225
+ endif()
226
else()
227
set(ADDITIONAL_LIBS pthread)
228
endif()
0 commit comments