-
Notifications
You must be signed in to change notification settings - Fork 975
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(G4): update cmake after variants update
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
- Loading branch information
Showing
16 changed files
with
829 additions
and
34 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# v3.21 implemented semantic changes regarding $<TARGET_OBJECTS:...> | ||
# See https://cmake.org/cmake/help/v3.21/command/target_link_libraries.html#linking-object-libraries-via-target-objects | ||
cmake_minimum_required(VERSION 3.21) | ||
|
||
add_library(variant INTERFACE) | ||
add_library(variant_usage INTERFACE) | ||
|
||
target_include_directories(variant_usage INTERFACE | ||
. | ||
) | ||
|
||
|
||
target_link_libraries(variant_usage INTERFACE | ||
base_config | ||
) | ||
|
||
target_link_libraries(variant INTERFACE variant_usage) | ||
|
||
|
||
|
||
add_library(variant_bin STATIC EXCLUDE_FROM_ALL | ||
generic_clock.c | ||
PeripheralPins.c | ||
variant_generic.cpp | ||
) | ||
target_link_libraries(variant_bin PUBLIC variant_usage) | ||
|
||
target_link_libraries(variant INTERFACE | ||
variant_bin | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# v3.21 implemented semantic changes regarding $<TARGET_OBJECTS:...> | ||
# See https://cmake.org/cmake/help/v3.21/command/target_link_libraries.html#linking-object-libraries-via-target-objects | ||
cmake_minimum_required(VERSION 3.21) | ||
|
||
add_library(variant INTERFACE) | ||
add_library(variant_usage INTERFACE) | ||
|
||
target_include_directories(variant_usage INTERFACE | ||
. | ||
) | ||
|
||
|
||
target_link_libraries(variant_usage INTERFACE | ||
base_config | ||
) | ||
|
||
target_link_libraries(variant INTERFACE variant_usage) | ||
|
||
|
||
|
||
add_library(variant_bin STATIC EXCLUDE_FROM_ALL | ||
generic_clock.c | ||
PeripheralPins.c | ||
variant_generic.cpp | ||
) | ||
target_link_libraries(variant_bin PUBLIC variant_usage) | ||
|
||
target_link_libraries(variant INTERFACE | ||
variant_bin | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# v3.21 implemented semantic changes regarding $<TARGET_OBJECTS:...> | ||
# See https://cmake.org/cmake/help/v3.21/command/target_link_libraries.html#linking-object-libraries-via-target-objects | ||
cmake_minimum_required(VERSION 3.21) | ||
|
||
add_library(variant INTERFACE) | ||
add_library(variant_usage INTERFACE) | ||
|
||
target_include_directories(variant_usage INTERFACE | ||
. | ||
) | ||
|
||
|
||
target_link_libraries(variant_usage INTERFACE | ||
base_config | ||
) | ||
|
||
target_link_libraries(variant INTERFACE variant_usage) | ||
|
||
|
||
|
||
add_library(variant_bin STATIC EXCLUDE_FROM_ALL | ||
generic_clock.c | ||
PeripheralPins.c | ||
variant_generic.cpp | ||
) | ||
target_link_libraries(variant_bin PUBLIC variant_usage) | ||
|
||
target_link_libraries(variant INTERFACE | ||
variant_bin | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# v3.21 implemented semantic changes regarding $<TARGET_OBJECTS:...> | ||
# See https://cmake.org/cmake/help/v3.21/command/target_link_libraries.html#linking-object-libraries-via-target-objects | ||
cmake_minimum_required(VERSION 3.21) | ||
|
||
add_library(variant INTERFACE) | ||
add_library(variant_usage INTERFACE) | ||
|
||
target_include_directories(variant_usage INTERFACE | ||
. | ||
) | ||
|
||
|
||
target_link_libraries(variant_usage INTERFACE | ||
base_config | ||
) | ||
|
||
target_link_libraries(variant INTERFACE variant_usage) | ||
|
||
|
||
|
||
add_library(variant_bin STATIC EXCLUDE_FROM_ALL | ||
generic_clock.c | ||
PeripheralPins.c | ||
variant_generic.cpp | ||
) | ||
target_link_libraries(variant_bin PUBLIC variant_usage) | ||
|
||
target_link_libraries(variant INTERFACE | ||
variant_bin | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# v3.21 implemented semantic changes regarding $<TARGET_OBJECTS:...> | ||
# See https://cmake.org/cmake/help/v3.21/command/target_link_libraries.html#linking-object-libraries-via-target-objects | ||
cmake_minimum_required(VERSION 3.21) | ||
|
||
add_library(variant INTERFACE) | ||
add_library(variant_usage INTERFACE) | ||
|
||
target_include_directories(variant_usage INTERFACE | ||
. | ||
) | ||
|
||
|
||
target_link_libraries(variant_usage INTERFACE | ||
base_config | ||
) | ||
|
||
target_link_libraries(variant INTERFACE variant_usage) | ||
|
||
|
||
|
||
add_library(variant_bin STATIC EXCLUDE_FROM_ALL | ||
generic_clock.c | ||
PeripheralPins.c | ||
variant_generic.cpp | ||
) | ||
target_link_libraries(variant_bin PUBLIC variant_usage) | ||
|
||
target_link_libraries(variant INTERFACE | ||
variant_bin | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# v3.21 implemented semantic changes regarding $<TARGET_OBJECTS:...> | ||
# See https://cmake.org/cmake/help/v3.21/command/target_link_libraries.html#linking-object-libraries-via-target-objects | ||
cmake_minimum_required(VERSION 3.21) | ||
|
||
add_library(variant INTERFACE) | ||
add_library(variant_usage INTERFACE) | ||
|
||
target_include_directories(variant_usage INTERFACE | ||
. | ||
) | ||
|
||
|
||
target_link_libraries(variant_usage INTERFACE | ||
base_config | ||
) | ||
|
||
target_link_libraries(variant INTERFACE variant_usage) | ||
|
||
|
||
|
||
add_library(variant_bin STATIC EXCLUDE_FROM_ALL | ||
generic_clock.c | ||
PeripheralPins.c | ||
variant_generic.cpp | ||
) | ||
target_link_libraries(variant_bin PUBLIC variant_usage) | ||
|
||
target_link_libraries(variant INTERFACE | ||
variant_bin | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# v3.21 implemented semantic changes regarding $<TARGET_OBJECTS:...> | ||
# See https://cmake.org/cmake/help/v3.21/command/target_link_libraries.html#linking-object-libraries-via-target-objects | ||
cmake_minimum_required(VERSION 3.21) | ||
|
||
add_library(variant INTERFACE) | ||
add_library(variant_usage INTERFACE) | ||
|
||
target_include_directories(variant_usage INTERFACE | ||
. | ||
) | ||
|
||
|
||
target_link_libraries(variant_usage INTERFACE | ||
base_config | ||
) | ||
|
||
target_link_libraries(variant INTERFACE variant_usage) | ||
|
||
|
||
|
||
add_library(variant_bin STATIC EXCLUDE_FROM_ALL | ||
generic_clock.c | ||
PeripheralPins.c | ||
variant_generic.cpp | ||
) | ||
target_link_libraries(variant_bin PUBLIC variant_usage) | ||
|
||
target_link_libraries(variant INTERFACE | ||
variant_bin | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# v3.21 implemented semantic changes regarding $<TARGET_OBJECTS:...> | ||
# See https://cmake.org/cmake/help/v3.21/command/target_link_libraries.html#linking-object-libraries-via-target-objects | ||
cmake_minimum_required(VERSION 3.21) | ||
|
||
add_library(variant INTERFACE) | ||
add_library(variant_usage INTERFACE) | ||
|
||
target_include_directories(variant_usage INTERFACE | ||
. | ||
) | ||
|
||
|
||
target_link_libraries(variant_usage INTERFACE | ||
base_config | ||
) | ||
|
||
target_link_libraries(variant INTERFACE variant_usage) | ||
|
||
|
||
|
||
add_library(variant_bin STATIC EXCLUDE_FROM_ALL | ||
generic_clock.c | ||
PeripheralPins.c | ||
variant_generic.cpp | ||
) | ||
target_link_libraries(variant_bin PUBLIC variant_usage) | ||
|
||
target_link_libraries(variant INTERFACE | ||
variant_bin | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# v3.21 implemented semantic changes regarding $<TARGET_OBJECTS:...> | ||
# See https://cmake.org/cmake/help/v3.21/command/target_link_libraries.html#linking-object-libraries-via-target-objects | ||
cmake_minimum_required(VERSION 3.21) | ||
|
||
add_library(variant INTERFACE) | ||
add_library(variant_usage INTERFACE) | ||
|
||
target_include_directories(variant_usage INTERFACE | ||
. | ||
) | ||
|
||
|
||
target_link_libraries(variant_usage INTERFACE | ||
base_config | ||
) | ||
|
||
target_link_libraries(variant INTERFACE variant_usage) | ||
|
||
|
||
|
||
add_library(variant_bin STATIC EXCLUDE_FROM_ALL | ||
generic_clock.c | ||
PeripheralPins.c | ||
variant_generic.cpp | ||
) | ||
target_link_libraries(variant_bin PUBLIC variant_usage) | ||
|
||
target_link_libraries(variant INTERFACE | ||
variant_bin | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# v3.21 implemented semantic changes regarding $<TARGET_OBJECTS:...> | ||
# See https://cmake.org/cmake/help/v3.21/command/target_link_libraries.html#linking-object-libraries-via-target-objects | ||
cmake_minimum_required(VERSION 3.21) | ||
|
||
add_library(variant INTERFACE) | ||
add_library(variant_usage INTERFACE) | ||
|
||
target_include_directories(variant_usage INTERFACE | ||
. | ||
) | ||
|
||
|
||
target_link_libraries(variant_usage INTERFACE | ||
base_config | ||
) | ||
|
||
target_link_libraries(variant INTERFACE variant_usage) | ||
|
||
|
||
|
||
add_library(variant_bin STATIC EXCLUDE_FROM_ALL | ||
generic_clock.c | ||
PeripheralPins.c | ||
variant_generic.cpp | ||
) | ||
target_link_libraries(variant_bin PUBLIC variant_usage) | ||
|
||
target_link_libraries(variant INTERFACE | ||
variant_bin | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# v3.21 implemented semantic changes regarding $<TARGET_OBJECTS:...> | ||
# See https://cmake.org/cmake/help/v3.21/command/target_link_libraries.html#linking-object-libraries-via-target-objects | ||
cmake_minimum_required(VERSION 3.21) | ||
|
||
add_library(variant INTERFACE) | ||
add_library(variant_usage INTERFACE) | ||
|
||
target_include_directories(variant_usage INTERFACE | ||
. | ||
) | ||
|
||
|
||
target_link_libraries(variant_usage INTERFACE | ||
base_config | ||
) | ||
|
||
target_link_libraries(variant INTERFACE variant_usage) | ||
|
||
|
||
|
||
add_library(variant_bin STATIC EXCLUDE_FROM_ALL | ||
generic_clock.c | ||
PeripheralPins.c | ||
variant_generic.cpp | ||
) | ||
target_link_libraries(variant_bin PUBLIC variant_usage) | ||
|
||
target_link_libraries(variant INTERFACE | ||
variant_bin | ||
) | ||
|
32 changes: 32 additions & 0 deletions
32
variants/STM32G4xx/G431R(6-8)(I-T)_G431RB(I-T)x(Z)_G441RB(I-T)/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# v3.21 implemented semantic changes regarding $<TARGET_OBJECTS:...> | ||
# See https://cmake.org/cmake/help/v3.21/command/target_link_libraries.html#linking-object-libraries-via-target-objects | ||
cmake_minimum_required(VERSION 3.21) | ||
|
||
add_library(variant INTERFACE) | ||
add_library(variant_usage INTERFACE) | ||
|
||
target_include_directories(variant_usage INTERFACE | ||
. | ||
) | ||
|
||
|
||
target_link_libraries(variant_usage INTERFACE | ||
base_config | ||
) | ||
|
||
target_link_libraries(variant INTERFACE variant_usage) | ||
|
||
|
||
|
||
add_library(variant_bin STATIC EXCLUDE_FROM_ALL | ||
generic_clock.c | ||
PeripheralPins.c | ||
variant_generic.cpp | ||
variant_NUCLEO_G431RB.cpp | ||
) | ||
target_link_libraries(variant_bin PUBLIC variant_usage) | ||
|
||
target_link_libraries(variant INTERFACE | ||
variant_bin | ||
) | ||
|
Oops, something went wrong.