cmake_minimum_required(VERSION 3.16) project(rs485_boot C) add_library(rs485_boot src/rs485_boot.c) target_include_directories(rs485_boot PUBLIC include) if(BUILD_TESTING) add_executable(test_rs485_boot tests/test_rs485_boot.c) target_link_libraries(test_rs485_boot PRIVATE rs485_boot) add_test(NAME rs485_boot COMMAND test_rs485_boot) endif()