PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- option(BUILDER_ENABLE_PROFILING OFF)
-
- macro(setup_builder)
- enable_testing()
-
- set(ROOT_SOURCE_DIR ${PROJECT_SOURCE_DIR} CACHE INTERNAL "Repository root directory")
- set(ROOT_BINARY_DIR "${ROOT_SOURCE_DIR}/build")
-
- include_directories(${ROOT_SOURCE_DIR})
-
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} \
- -Wall \
- -W \
- -Wshadow \
- -Wunused-variable \
- -Wunused-parameter \
- -Wunused-function \
- -Wunused \
- -Wno-system-headers \
- -Wno-deprecated \
- -Woverloaded-virtual \
- ")
- if (BUILDER_ENABLE_PROFILING)
- set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g -O0")
- set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} --coverage")
- endif()
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
-
- endmacro()
-
- macro(increase_warning_level)
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wconversion -Wsign-conversion")
- endmacro()
|