diff options
author | Sven Gothel <[email protected]> | 2020-05-23 11:43:50 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-05-23 11:43:50 +0200 |
commit | 6291468795a915d5fc7e2ec896711c849cded452 (patch) | |
tree | 6ffeed1e994fb88a22e68fad4668bfe426c54418 /examples/CMakeLists.txt | |
parent | 92bd67617091712f7fba24f5dfd2e2ffc446b15b (diff) |
Examples: Set COMPILE_FLAGS "-Wall -Wextra -Werror"
Diffstat (limited to 'examples/CMakeLists.txt')
-rw-r--r-- | examples/CMakeLists.txt | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 6cadf26f..4f76b573 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -12,52 +12,62 @@ include_directories(${PROJECT_SOURCE_DIR}/api) add_executable (hellotinyb tinyb/hellotinyb.cpp) set_target_properties(hellotinyb PROPERTIES - CXX_STANDARD 11) + CXX_STANDARD 11 + COMPILE_FLAGS "-Wall -Wextra -Werror") add_executable (checkinit tinyb/checkinit.cpp) set_target_properties(checkinit PROPERTIES - CXX_STANDARD 11) + CXX_STANDARD 11 + COMPILE_FLAGS "-Wall -Wextra -Werror") add_executable (asynctinyb tinyb/asynctinyb.cpp) set_target_properties(asynctinyb PROPERTIES - CXX_STANDARD 11) + CXX_STANDARD 11 + COMPILE_FLAGS "-Wall -Wextra -Werror") add_executable (esstinyb tinyb/esstinyb.cpp) set_target_properties(esstinyb PROPERTIES - CXX_STANDARD 11) + CXX_STANDARD 11 + COMPILE_FLAGS "-Wall -Wextra -Werror") add_executable (notifications tinyb/notifications.cpp) set_target_properties(notifications PROPERTIES - CXX_STANDARD 11) + CXX_STANDARD 11 + COMPILE_FLAGS "-Wall -Wextra -Werror") add_executable (uuid tinyb/uuid.cpp) set_target_properties(uuid PROPERTIES - CXX_STANDARD 11) + CXX_STANDARD 11 + COMPILE_FLAGS "-Wall -Wextra -Werror") add_executable (list_mfg tinyb/list_mfg.cpp) set_target_properties(list_mfg PROPERTIES - CXX_STANDARD 11) + CXX_STANDARD 11 + COMPILE_FLAGS "-Wall -Wextra -Werror") add_executable (dbt_scanner00 direct_bt_scanner00/dbt_scanner00.cpp) set_target_properties(list_mfg PROPERTIES - CXX_STANDARD 11) + CXX_STANDARD 11 + COMPILE_FLAGS "-Wall -Wextra -Werror") add_executable (dbt_scanner01 direct_bt_scanner01/dbt_scanner01.cpp) set_target_properties(list_mfg PROPERTIES - CXX_STANDARD 11) + CXX_STANDARD 11 + COMPILE_FLAGS "-Wall -Wextra -Werror") add_executable (dbt_scanner10 direct_bt_scanner10/dbt_scanner10.cpp) set_target_properties(list_mfg PROPERTIES - CXX_STANDARD 11) + CXX_STANDARD 11 + COMPILE_FLAGS "-Wall -Wextra -Werror") target_link_libraries (hellotinyb tinyb) target_link_libraries (checkinit tinyb) |