-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathCMakeLists.txt
40 lines (36 loc) · 1.04 KB
/
CMakeLists.txt
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
35
36
37
38
39
40
cmake_minimum_required(VERSION 3.15)
project(reusable_and_testable_code_for_arduino)
set(CMAKE_CXX_STANDARD 14)
if(NOT MSVC)
add_compile_options(
-Wcast-align
-Wpedantic
-Wcast-qual
-Wconversion
-Wctor-dtor-privacy
-Wnon-virtual-dtor
-Wmissing-include-dirs
-Wdisabled-optimization
-Winit-self
-Wnon-virtual-dtor
-Wold-style-cast
-Woverloaded-virtual
-Wparentheses
-Wredundant-decls
-Wshadow
-Wsign-promo
-Wstrict-aliasing
-Wall
-Wextra
-Werror
)
else()
add_compile_options(
/W4
/WX
)
endif()
set(calculator_dir ${CMAKE_CURRENT_SOURCE_DIR}/sketches/calculator)
set(magiccar_dir ${CMAKE_CURRENT_SOURCE_DIR}/sketches/MagicCarControllerTestable)
enable_testing()
add_subdirectory(test)