-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable building of this project as libraries are missing for aarch64
Signed-off-by: Alex J Lennon <[email protected]>
- Loading branch information
Alex J Lennon
committed
Jan 30, 2025
1 parent
80ef9fe
commit add1349
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
51 changes: 51 additions & 0 deletions
51
examples/c/BGT60ATR24C/motion_angle/CMakeLists.txt.disabled
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,51 @@ | ||
include(TargetPlatform) | ||
|
||
# detect target platform | ||
detect_target_platform(TARGET_PLATFORM) | ||
|
||
if(TARGET_PLATFORM STREQUAL "linux_x64" OR | ||
TARGET_PLATFORM STREQUAL "linux_aarch64" OR | ||
TARGET_PLATFORM STREQUAL "linux_raspi" OR | ||
TARGET_PLATFORM STREQUAL "win32_x64") | ||
set(MOTIONANGLE_SUPPORTED TRUE) | ||
else() | ||
set(MOTIONANGLE_SUPPORTED FALSE) | ||
endif() | ||
|
||
if(${MOTIONANGLE_SUPPORTED}) | ||
link_directories("${RDK_LIB_DIR}/${TARGET_PLATFORM}") | ||
|
||
add_executable(BGT60ATR24C_motion_angle motion_angle.c) | ||
target_link_libraries(BGT60ATR24C_motion_angle BGT60ATR24C_common sdk_avian) | ||
|
||
if(MINGW OR MSYS OR WIN32) | ||
if(MINGW OR MSYS) | ||
# for msys give the exact path to the library to avoid linking again | ||
# radar_sdk.lib | ||
target_link_libraries(BGT60ATR24C_motion_angle "${CMAKE_SOURCE_DIR}/libs/${TARGET_PLATFORM}/sdk_motionangle.dll") | ||
else() | ||
target_link_libraries(BGT60ATR24C_motion_angle "${CMAKE_SOURCE_DIR}/libs/${TARGET_PLATFORM}/sdk_motionangle.lib") | ||
endif() | ||
|
||
add_custom_command( | ||
TARGET BGT60ATR24C_motion_angle | ||
PRE_BUILD | ||
COMMAND ${CMAKE_COMMAND} -E copy | ||
"${CMAKE_SOURCE_DIR}/libs/${TARGET_PLATFORM}/sdk_motionangle.dll" | ||
"$<TARGET_FILE_DIR:BGT60ATR24C_motion_angle>" | ||
) | ||
else() | ||
link_directories("${RDK_LIB_DIR}/${TARGET_PLATFORM}") | ||
target_link_libraries(BGT60ATR24C_motion_angle "${CMAKE_SOURCE_DIR}/libs/${TARGET_PLATFORM}/libsdk_motionangle.so") | ||
|
||
add_custom_command( | ||
TARGET BGT60ATR24C_motion_angle | ||
PRE_BUILD | ||
COMMAND ${CMAKE_COMMAND} -E copy | ||
"${CMAKE_SOURCE_DIR}/libs/${TARGET_PLATFORM}/libsdk_motionangle.so" | ||
"$<TARGET_FILE_DIR:BGT60ATR24C_motion_angle>" | ||
) | ||
endif() | ||
else() | ||
message("-- unknown platform '${TARGET_PLATFORM}' - motion-angle will not be available") | ||
endif() |