init
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
# 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
|
||||
)
|
||||
Reference in New Issue
Block a user