refactor Functions to group everything connected to the vehicle to a central location
This commit is contained in:
32
Application/Vehicle/CMakeLists.txt
Normal file
32
Application/Vehicle/CMakeLists.txt
Normal file
@@ -0,0 +1,32 @@
|
||||
# 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)
|
||||
|
||||
Reference in New Issue
Block a user