File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 19
19
# Set minimum required version of CMake
20
20
cmake_minimum_required (VERSION 3.12 )
21
21
22
+ # Set Pico Board and Pico Platform
23
+ set (PICO_PLATFORM rp2350-arm-s )
24
+ set (PICO_BOARD pico2 )
25
+
22
26
# Include build functions from the Pico SDK
23
27
include ($ENV{PICO_SDK_PATH} /external/pico_sdk_import.cmake )
24
28
25
29
# Set project name and C/C++ standards
26
- project (Blink VERSION 0.1.0 LANGUAGES C CXX ASM )
30
+ string (TIMESTAMP DATEVER "%Y.%m.%d" UTC )
31
+ project (Blink VERSION ${DATEVER} LANGUAGES C ASM )
27
32
set (CMAKE_C_STANDARD 11 )
28
- set (CMAKE_CXX_STANDARD 17 )
29
-
30
- # Set Pico Board and Pico Platform
31
- set (PICO_PLATFORM rp2350-arm-s )
32
- set (PICO_BOARD pico2 )
33
33
34
34
# Initialize the Pico SDK
35
35
pico_sdk_init ()
@@ -49,5 +49,4 @@ pico_set_program_version(${PROJECT_NAME} ${PROJECT_VERSION})
49
49
pico_set_program_description (${PROJECT_NAME} "Pico Build Action - Simple blink test program" )
50
50
51
51
# CMake flags
52
- set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ffunction-sections -fdata-sections" )
53
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ffunction-sections -fdata-sections" )
52
+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ffunction-sections -fdata-sections" )
You can’t perform that action at this time.
0 commit comments