add_project(aws-cpp-sdk-core-integration-tests "Integration tests for core components" testing-resources aws_test_main aws-cpp-sdk-core aws-cpp-sdk-cognito-identity aws-cpp-sdk-sts aws-cpp-sdk-iam) add_definitions(-DRESOURCES_DIR="${CMAKE_CURRENT_SOURCE_DIR}/resources") if(MSVC AND BUILD_SHARED_LIBS) add_definitions(-DGTEST_LINKED_AS_SHARED_LIBRARY=1) endif() enable_testing() if(PLATFORM_ANDROID AND BUILD_SHARED_LIBS) add_library(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/STSWebIdentityProviderIntegrationTest.cpp) else() add_executable(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/STSWebIdentityProviderIntegrationTest.cpp) endif() set_compiler_flags(${PROJECT_NAME}) set_compiler_warnings(${PROJECT_NAME}) target_link_libraries(${PROJECT_NAME} ${PROJECT_LIBS}) if(MSVC AND BUILD_SHARED_LIBS) set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS "/DELAYLOAD:aws-cpp-sdk-cognito-identity.dll /DELAYLOAD:aws-cpp-sdk-sts.dll /DELAYLOAD:aws-cpp-sdk-iam.dll /DELAYLOAD:aws-cpp-sdk-core.dll") target_link_libraries(${PROJECT_NAME} delayimp.lib) endif() include(GoogleTest) gtest_add_tests(TARGET ${PROJECT_NAME})