# Generated Cmake Pico project file

cmake_minimum_required(VERSION 3.13)

set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

# Pull in Raspberry Pi Pico SDK (must be before project)
include($ENV{PICO_SDK_PATH}/external/pico_sdk_import.cmake)

project(bit_counter C CXX ASM)

# force picotool executable path
add_executable(picotool IMPORTED GLOBAL)
set_target_properties(picotool PROPERTIES 
	IMPORTED_LOCATION "$(PICOTOOL_PATH)/picotool"
)

# Initialise the Raspberry Pi Pico SDK
pico_sdk_init()

# Add executable. Default name is the project name, version 0.1

add_executable(bit_counter main.c )

pico_set_program_name(bit_counter "bit_counter")
pico_set_program_version(bit_counter "0.1")

# Modify the below lines to enable/disable output over UART/USB
pico_enable_stdio_uart(bit_counter 0)
pico_enable_stdio_usb(bit_counter 1)

# Add the standard library to the build
target_link_libraries(bit_counter
        pico_stdlib)

# Add the standard include files to the build
target_include_directories(bit_counter PRIVATE
        ${CMAKE_CURRENT_LIST_DIR}
)

pico_add_extra_outputs(bit_counter)

