-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
41 lines (29 loc) · 1 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
41
cmake_minimum_required(VERSION 3.13)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
set(PICO_SDK_PATH "~/pico/pico-sdk")
set(PICO_BOARD pico CACHE STRING "Board type")
include(pico_sdk_import.cmake)
if (PICO_SDK_VERSION_STRING VERSION_LESS "1.4.0")
message(FATAL_ERROR "Raspberry Pi Pico SDK version 1.4.0 (or later) required. Your version is ${PICO_SDK_VERSION_STRING}")
endif()
project(NeoCAN-project C CXX ASM)
pico_sdk_init()
pico_add_subdirectory(lib)
pico_add_subdirectory(deps)
add_executable(NeoCAN-project
NeoCAN.cpp
)
pico_set_program_name(NeoCAN-project "NeoCAN-project")
pico_set_program_version(NeoCAN-project "0.1")
pico_enable_stdio_uart(NeoCAN-project 1)
pico_enable_stdio_usb(NeoCAN-project 0)
target_link_libraries(NeoCAN-project
pico_stdlib
neotje_NeoCAN)
target_include_directories(NeoCAN-project PRIVATE
${CMAKE_CURRENT_LIST_DIR}
${CMAKE_CURRENT_LIST_DIR}/..)
pico_add_extra_outputs(NeoCAN-project)
add_subdirectory(examples)
add_subdirectory(tools)