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"
|
2026-01-01 01:39:19 +08:00
|
|
|
"${SOLUTION_ROOT}/Robot_V2/sys/aes128.cpp"
|
2025-12-25 12:07:06 +08:00
|
|
|
)
|
|
|
|
|
target_include_directories(Group_Source_Files PUBLIC
|
|
|
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_INCLUDE_DIRECTORIES>
|
|
|
|
|
"${SOLUTION_ROOT}/Robot_V2"
|
2026-01-01 01:39:19 +08:00
|
|
|
"${SOLUTION_ROOT}/Robot_V2/sys"
|
2025-12-25 12:07:06 +08:00
|
|
|
)
|
|
|
|
|
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/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
|
|
|
|
|
)
|