gbmanager/src/CMakeLists.txt
Martin Brodbeck a81c7bac77 implement relais and lcd as modules
Does NOT compile!
Problem might be on the side of the ARM compiler.
2022-06-03 10:03:48 +02:00

36 lines
996 B
CMake

set(CMAKE_INCLUDE_CURRENT_DIR ON)
configure_file(${CMAKE_CURRENT_LIST_DIR}/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h)
#add_compile_options(-fmodules-ts)
set(SOURCES
lcd.cpp
relais.cpp
gbmanager.cpp
)
# Add executable. Default name is the project name, version 0.1
add_executable(${CMAKE_PROJECT_NAME} ${SOURCES})
pico_set_program_name(${CMAKE_PROJECT_NAME} "gbmanager")
pico_set_program_version(${CMAKE_PROJECT_NAME} ${PROJECT_VERSION})
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
pico_enable_stdio_uart(${CMAKE_PROJECT_NAME} 1)
pico_enable_stdio_usb(${CMAKE_PROJECT_NAME} 0)
else()
pico_enable_stdio_uart(${CMAKE_PROJECT_NAME} 0)
pico_enable_stdio_usb(${CMAKE_PROJECT_NAME} 0)
endif()
# Add the standard library to the build
target_link_libraries(${CMAKE_PROJECT_NAME} pico_stdlib pico_one_wire)
# Add any user requested libraries
target_link_libraries(${CMAKE_PROJECT_NAME}
hardware_i2c
hardware_gpio
)
pico_add_extra_outputs(${CMAKE_PROJECT_NAME})