Skip to content

Commit c7565d2

Browse files
committed
omg more cmake lists
1 parent d3b2307 commit c7565d2

6 files changed

Lines changed: 30 additions & 0 deletions

File tree

deviceadvisor/tests/mqtt_connect/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ cmake_minimum_required(VERSION 3.9...3.31)
22
# note: cxx-17 requires cmake 3.8, cxx-20 requires cmake 3.12
33
project(mqtt_connect CXX)
44

5+
option(AWS_CRT_DISABLE_DEPRECATION_WARNINGS "Set this to silence [[deprecated]] warnings coming from aws-crt-cpp headers" OFF)
6+
if(AWS_CRT_DISABLE_DEPRECATION_WARNINGS)
7+
add_compile_definitions(AWS_CRT_DISABLE_DEPRECATION_WARNINGS)
8+
endif()
9+
510
file(GLOB SRC_FILES
611
"*.cpp"
712
"../utils/*.cpp"

deviceadvisor/tests/mqtt_publish/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ cmake_minimum_required(VERSION 3.9...3.31)
22
# note: cxx-17 requires cmake 3.8, cxx-20 requires cmake 3.12
33
project(mqtt_publish CXX)
44

5+
option(AWS_CRT_DISABLE_DEPRECATION_WARNINGS "Set this to silence [[deprecated]] warnings coming from aws-crt-cpp headers" OFF)
6+
if(AWS_CRT_DISABLE_DEPRECATION_WARNINGS)
7+
add_compile_definitions(AWS_CRT_DISABLE_DEPRECATION_WARNINGS)
8+
endif()
9+
510
file(GLOB SRC_FILES
611
"*.cpp"
712
"../utils/*.cpp"

deviceadvisor/tests/mqtt_subscribe/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ cmake_minimum_required(VERSION 3.9...3.31)
22
# note: cxx-17 requires cmake 3.8, cxx-20 requires cmake 3.12
33
project(mqtt_subscribe CXX)
44

5+
option(AWS_CRT_DISABLE_DEPRECATION_WARNINGS "Set this to silence [[deprecated]] warnings coming from aws-crt-cpp headers" OFF)
6+
if(AWS_CRT_DISABLE_DEPRECATION_WARNINGS)
7+
add_compile_definitions(AWS_CRT_DISABLE_DEPRECATION_WARNINGS)
8+
endif()
9+
510
file(GLOB SRC_FILES
611
"*.cpp"
712
"../utils/*.cpp"

deviceadvisor/tests/shadow_update/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ cmake_minimum_required(VERSION 3.9...3.31)
22
# note: cxx-17 requires cmake 3.8, cxx-20 requires cmake 3.12
33
project(shadow_update CXX)
44

5+
option(AWS_CRT_DISABLE_DEPRECATION_WARNINGS "Set this to silence [[deprecated]] warnings coming from aws-crt-cpp headers" OFF)
6+
if(AWS_CRT_DISABLE_DEPRECATION_WARNINGS)
7+
add_compile_definitions(AWS_CRT_DISABLE_DEPRECATION_WARNINGS)
8+
endif()
9+
510
file(GLOB SRC_FILES
611
"*.cpp"
712
"../utils/*.cpp"

devicedefender/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ set(GENERATED_INCLUDE_DIR "${GENERATED_ROOT_DIR}/include")
77
set(GENERATED_CONFIG_HEADER "${GENERATED_INCLUDE_DIR}/aws/iotdevicedefender/Config.h")
88
configure_file(include/aws/iotdevicedefender/Config.h.in ${GENERATED_CONFIG_HEADER} @ONLY)
99

10+
option(AWS_CRT_DISABLE_DEPRECATION_WARNINGS "Set this to silence [[deprecated]] warnings coming from aws-crt-cpp headers" OFF)
11+
if(AWS_CRT_DISABLE_DEPRECATION_WARNINGS)
12+
add_compile_definitions(AWS_CRT_DISABLE_DEPRECATION_WARNINGS)
13+
endif()
14+
1015
if (NOT CMAKE_CXX_STANDARD)
1116
set(CMAKE_CXX_STANDARD 11)
1217
endif()

devicedefender/tests/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ include(AwsTestHarness)
22
enable_testing()
33
include(CTest)
44

5+
option(AWS_CRT_DISABLE_DEPRECATION_WARNINGS "Set this to silence [[deprecated]] warnings coming from aws-crt-cpp headers" OFF)
6+
if(AWS_CRT_DISABLE_DEPRECATION_WARNINGS)
7+
add_compile_definitions(AWS_CRT_DISABLE_DEPRECATION_WARNINGS)
8+
endif()
9+
510
file(GLOB TEST_SRC "*.cpp")
611
file(GLOB TEST_HDRS "*.h")
712
file(GLOB TESTS ${TEST_HDRS} ${TEST_SRC})

0 commit comments

Comments
 (0)