# Set the minimum required CMake version cmake_minimum_required(VERSION 3.12) # Set the project name project(Vehicle) # Add the source files for the library set(SOURCES Vehicle.c Vehicle_can.c ) # Add the header files for the library set(HEADERS Vehicle.h ) # Create the library target add_library(Vehicle ${SOURCES} ${HEADERS}) # Set the include directories for the library target_include_directories(Vehicle PUBLIC ./) # Set any additional compiler flags or options # target_compile_options(Vehicle PRIVATE ...) # Set any additional linker flags or options # target_link_options(Vehicle PRIVATE ...) # Specify any dependencies for the library target_link_libraries(Vehicle BSP CLS CLS_BSP)