-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
47 lines (36 loc) · 1.17 KB
/
CMakeLists.txt
File metadata and controls
47 lines (36 loc) · 1.17 KB
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
41
42
43
44
45
46
47
# Preamble
cmake_minimum_required(VERSION 3.14)
project(EmbeddedControl LANGUAGES C CXX)
enable_testing()
# Project wide setup
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/cmake)
# set(CMAKE_CXX_STANDARD 11)
# set(CMAKE_CXX_STANDARD_REQUIRED YES)
# set(CMAKE_CXX_EXTENSIONS NO)
add_library(freertos_config INTERFACE)
target_include_directories(freertos_config SYSTEM
INTERFACE
.) # The config file directory
target_compile_definitions(freertos_config
INTERFACE
projCOVERAGE_TEST=0)
# Externally provided content
add_subdirectory(dependencies)
# Main targets built by this project
add_subdirectory(src)
# Testing and packaging
# Typically needed only if we are the top level project
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
add_subdirectory(tests)
# add_subdirectory(packaging)
endif()
# # Add differentiation between unittest build and application build
# option(BUILD_UNITTEST "Build unit tests" OFF)
# if(BUILD_UNITTEST)
# # Add unit test executable
# add_executable(unit_tests test_main.c)
# target_link_libraries(unit_tests PRIVATE unity)
# else()
# # Add the application executable
# add_executable(main_app main_app.c)
# endif()