C

Qt Quick Ultralite freertos_multitask Example

cmake_minimum_required (VERSION 3.17.3)

project(board_utils)

string(TOLOWER ${QUL_PLATFORM} QUL_PLATFORM_LOWERCASE)
set(BOARD_UTILS_CMAKE_PATH ${CMAKE_CURRENT_LIST_DIR}/src/${QUL_PLATFORM_LOWERCASE}/board.cmake)

if(NOT EXISTS ${BOARD_UTILS_CMAKE_PATH})
    message(FATAL_ERROR "Board Utils are not supported for this platform!")
endif()

add_library(board_utils STATIC)
include(${BOARD_UTILS_CMAKE_PATH})
target_include_directories(board_utils PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include)