forked from aws/aws-sdk-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
39 lines (30 loc) · 1.42 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
cmake_minimum_required(VERSION 2.6)
project(aws-cpp-sdk-sqs-integration-tests)
# Headers are included in the source so that they show up in Visual Studio.
# They are included elsewhere for consistency.
file(GLOB AWS_SQS_SRC
"${CMAKE_CURRENT_SOURCE_DIR}/*.cpp"
)
file(GLOB AWS_SQS_INTEGRATION_TESTS_SRC
${AWS_SQS_SRC}
)
set(AWS_SQS_INTEGRATION_TEST_APPLICATION_INCLUDES
"${AWS_NATIVE_SDK_ROOT}/aws-cpp-sdk-core/include/"
"${AWS_NATIVE_SDK_ROOT}/aws-cpp-sdk-sqs/include/"
"${AWS_NATIVE_SDK_ROOT}/aws-cpp-sdk-cognito-identity/include/"
"${AWS_NATIVE_SDK_ROOT}/aws-cpp-sdk-access-management/include/"
"${AWS_NATIVE_SDK_ROOT}/aws-cpp-sdk-iam/include/"
"${AWS_NATIVE_SDK_ROOT}/testing-resources/include/"
)
include_directories(${AWS_SQS_INTEGRATION_TEST_APPLICATION_INCLUDES})
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(runSqsIntegrationTests ${LIBTYPE} ${AWS_SQS_INTEGRATION_TESTS_SRC})
else()
add_executable(runSqsIntegrationTests ${AWS_SQS_INTEGRATION_TESTS_SRC})
endif()
target_link_libraries(runSqsIntegrationTests aws-cpp-sdk-sqs aws-cpp-sdk-access-management aws-cpp-sdk-iam aws-cpp-sdk-cognito-identity testing-resources)
copyDlls(runSqsIntegrationTests aws-cpp-sdk-core aws-cpp-sdk-sqs aws-cpp-sdk-access-management aws-cpp-sdk-iam aws-cpp-sdk-cognito-identity testing-resources)