Files
GD32_BOOT/tmp/Robot_V2.Release+GD32C103CB/groups.cmake
T

71 lines
2.1 KiB
CMake
Raw Normal View History

2025-12-25 12:07:06 +08:00
# groups.cmake
# group Source Files
add_library(Group_Source_Files OBJECT
"${SOLUTION_ROOT}/Robot_V2/main.cpp"
)
target_include_directories(Group_Source_Files PUBLIC
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_INCLUDE_DIRECTORIES>
"${SOLUTION_ROOT}/Robot_V2"
)
target_compile_definitions(Group_Source_Files PUBLIC
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_DEFINITIONS>
)
add_library(Group_Source_Files_ABSTRACTIONS INTERFACE)
target_link_libraries(Group_Source_Files_ABSTRACTIONS INTERFACE
${CONTEXT}_ABSTRACTIONS
)
target_compile_options(Group_Source_Files PUBLIC
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_OPTIONS>
)
target_link_libraries(Group_Source_Files PUBLIC
Group_Source_Files_ABSTRACTIONS
)
# group sys
add_library(Group_sys OBJECT
"${SOLUTION_ROOT}/Robot_V2/sys/systick.cpp"
"${SOLUTION_ROOT}/Robot_V2/sys/initial.cpp"
"${SOLUTION_ROOT}/Robot_V2/sys/flash.cpp"
"${SOLUTION_ROOT}/Robot_V2/sys/OTA.cpp"
)
target_include_directories(Group_sys PUBLIC
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_INCLUDE_DIRECTORIES>
"${SOLUTION_ROOT}/Robot_V2/sys"
)
target_compile_definitions(Group_sys PUBLIC
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_DEFINITIONS>
)
add_library(Group_sys_ABSTRACTIONS INTERFACE)
target_link_libraries(Group_sys_ABSTRACTIONS INTERFACE
${CONTEXT}_ABSTRACTIONS
)
target_compile_options(Group_sys PUBLIC
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_OPTIONS>
)
target_link_libraries(Group_sys PUBLIC
Group_sys_ABSTRACTIONS
)
# group device
add_library(Group_device OBJECT
"${SOLUTION_ROOT}/Robot_V2/device/Can.cpp"
)
target_include_directories(Group_device PUBLIC
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_INCLUDE_DIRECTORIES>
"${SOLUTION_ROOT}/Robot_V2/device"
)
target_compile_definitions(Group_device PUBLIC
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_DEFINITIONS>
)
add_library(Group_device_ABSTRACTIONS INTERFACE)
target_link_libraries(Group_device_ABSTRACTIONS INTERFACE
${CONTEXT}_ABSTRACTIONS
)
target_compile_options(Group_device PUBLIC
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_OPTIONS>
)
target_link_libraries(Group_device PUBLIC
Group_device_ABSTRACTIONS
)