etl/CMakeLists.txt
Adam Boseley 47102c7a0e
Export headers as system includes (#340)
Gcc doesn't apply warning to system includes paths. This change
allows a project to use high warning levels without getting swamped by ETL
issues.
2021-02-28 10:53:02 +00:00

20 lines
525 B
CMake

#######################################################################
# The Embedded Template Library (https://www.etlcpp.com/)
#######################################################################
cmake_minimum_required(VERSION 3.5.0)
project(etl)
option(BUILD_TESTS "Build unit tests" OFF)
option(NO_STL "No STL" OFF)
add_library(etl INTERFACE)
target_include_directories(etl SYSTEM INTERFACE include)
target_compile_definitions(etl INTERFACE)
if (BUILD_TESTS)
enable_testing()
add_subdirectory(test)
endif()