From ec712007d9e1da6a60d850060212855d9248c8ff Mon Sep 17 00:00:00 2001 From: Uwe Risse Date: Sun, 23 Jun 2024 19:21:35 +0200 Subject: [PATCH] A better way to address the SuperFox executables for the Raspberry Pi. --- CMakeLists.txt | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7e7ab0d8e..070593d26 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1704,7 +1704,14 @@ if (APPLE) ) endif (APPLE) -if (NOT (WIN32 OR UNIX OR APPLE)) +execute_process(COMMAND + dpkg-architecture + -qDEB_HOST_ARCH + OUTPUT_VARIABLE + CMAKE_DEB_HOST_ARCH + OUTPUT_STRIP_TRAILING_WHITESPACE) + +if(${CMAKE_DEB_HOST_ARCH} MATCHES "arm64") install (FILES lib/superfox/arm/sfrx lib/superfox/arm/sftx @@ -1717,6 +1724,19 @@ if (NOT (WIN32 OR UNIX OR APPLE)) ) endif() +if(${CMAKE_DEB_HOST_ARCH} MATCHES "armhf") + install (FILES + lib/superfox/arm32/sfrx + lib/superfox/arm32/sftx + lib/superfox/arm32/foxchk + DESTINATION ${CMAKE_INSTALL_BINDIR} + PERMISSIONS GROUP_READ GROUP_EXECUTE + PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE + PERMISSIONS WORLD_READ WORLD_EXECUTE + #COMPONENT runtime + ) +endif() + # # Mac installer files #