-
Notifications
You must be signed in to change notification settings - Fork 114
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
35 lines (27 loc) · 1.1 KB
/
CMakeLists.txt
File metadata and controls
35 lines (27 loc) · 1.1 KB
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
include(AwsTestHarness)
enable_testing()
include(CTest)
option(AWS_CRT_DISABLE_DEPRECATION_WARNINGS "Set this to silence [[deprecated]] warnings coming from aws-crt-cpp headers" OFF)
if(AWS_CRT_DISABLE_DEPRECATION_WARNINGS)
add_compile_definitions(AWS_CRT_DISABLE_DEPRECATION_WARNINGS)
endif()
file(GLOB TEST_SRC "*.cpp")
file(GLOB TEST_HDRS "*.h")
file(GLOB TESTS ${TEST_HDRS} ${TEST_SRC})
set(TEST_BINARY_NAME ${PROJECT_NAME}-tests)
add_net_test_case(IdentityV2ClientCreateDestroy5)
add_net_test_case(IdentityV2ClientCreateDestroy311)
add_net_test_case(IdentityV2ClientProvisionWithCertAndKey5)
add_net_test_case(IdentityV2ClientProvisionWithCertAndKey311)
add_net_test_case(IdentityV2ClientProvisionWithCSR5)
add_net_test_case(IdentityV2ClientProvisionWithCSR311)
generate_cpp_test_driver(${TEST_BINARY_NAME})
aws_add_sanitizers(${TEST_BINARY_NAME})
# set extra warning flags
if(AWS_WARNINGS_ARE_ERRORS)
if(MSVC)
target_compile_options(${TEST_BINARY_NAME} PRIVATE /W4 /WX /wd4068)
else()
target_compile_options(${TEST_BINARY_NAME} PRIVATE -Wall -Wno-long-long -Werror)
endif()
endif()