add_project(aws-cpp-sdk-transfer-tests "Tests for the AWS Transfer C++ SDK" aws-cpp-sdk-transfer aws-cpp-sdk-s3 testing-resources aws-cpp-sdk-core) # Headers are included in the source so that they show up in Visual Studio. # They are included elsewhere for consistency. file(GLOB TRANSFER_TEST_SRC "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp" ) 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} ${TRANSFER_TEST_SRC}) else() add_executable(${PROJECT_NAME} ${TRANSFER_TEST_SRC}) endif() set_compiler_flags(${PROJECT_NAME}) set_compiler_warnings(${PROJECT_NAME}) target_link_libraries(${PROJECT_NAME} ${PROJECT_LIBS})