cmake_minimum_required(VERSION 3.12)

project(Tasks C)

add_library(${PROJECT_NAME} STATIC "")

target_sources(${PROJECT_NAME} 
    PRIVATE
    ${CMAKE_CURRENT_LIST_DIR}/UsbDataHandler.c
    ${CMAKE_CURRENT_LIST_DIR}/CanDataTask.c
    ${CMAKE_CURRENT_LIST_DIR}/FirmwareHandler.c
    ${CMAKE_CURRENT_LIST_DIR}/FirmwareUpdate.c
    INTERFACE
    ${CMAKE_CURRENT_LIST_DIR}/UsbDataHandler.h
    ${CMAKE_CURRENT_LIST_DIR}/CanDataTask.h
    ${CMAKE_CURRENT_LIST_DIR}/FirmwareUpdate.h

    )

target_include_directories(${PROJECT_NAME} INTERFACE ${CMAKE_CURRENT_LIST_DIR})
target_link_libraries(${PROJECT_NAME} PUBLIC PROTOS CLS)
target_link_libraries(${PROJECT_NAME} PRIVATE CLS_BSP)