diff options
author | h.udo <hudokkow@gmail.com> | 2016-09-08 18:15:54 +0100 |
---|---|---|
committer | h.udo <hudokkow@gmail.com> | 2016-12-21 10:04:18 +0000 |
commit | a18701e7b2fe03780f90502d5d51e09cdc3ad718 (patch) | |
tree | a9d2c2cca8599a18a78c6b1345f42e48e76ddb27 /cmake/scripts/rbpi/ArchSetup.cmake | |
parent | f2b31fda391d3364b7307ab9f9216fa0ee7164c7 (diff) |
[cmake] Move to root folder: Move files
Diffstat (limited to 'cmake/scripts/rbpi/ArchSetup.cmake')
-rw-r--r-- | cmake/scripts/rbpi/ArchSetup.cmake | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/cmake/scripts/rbpi/ArchSetup.cmake b/cmake/scripts/rbpi/ArchSetup.cmake new file mode 100644 index 0000000000..d955dd5363 --- /dev/null +++ b/cmake/scripts/rbpi/ArchSetup.cmake @@ -0,0 +1,28 @@ +set(ARCH_DEFINES -DTARGET_POSIX -DTARGET_LINUX -D_LINUX -D_ARMEL -DTARGET_RASPBERRY_PI + -DHAS_OMXPLAYER -DHAVE_OMXLIB) +set(SYSTEM_DEFINES -D__STDC_CONSTANT_MACROS -D_FILE_DEFINED + -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64) +set(PLATFORM_DIR linux) + +string(REGEX REPLACE "[ ]+" ";" SYSTEM_LDFLAGS "$ENV{LDFLAGS}") +set(CMAKE_SYSTEM_NAME Linux) + +if(WITH_ARCH) + set(ARCH ${WITH_ARCH}) +else() + if(CPU STREQUAL arm1176jzf-s) + set(ARCH arm-linux-gnueabihf) + set(NEON False) + elseif(CPU MATCHES "cortex-a7" OR CPU MATCHES "cortex-a53") + set(ARCH arm-linux-gnueabihf) + set(NEON True) + else() + message(SEND_ERROR "Unknown CPU: ${CPU}") + endif() +endif() + +find_package(CXX11 REQUIRED) + +set(MMAL_FOUND 1 CACHE INTERNAL "MMAL") +set(OMX_FOUND 1 CACHE INTERNAL "OMX") +set(OMXLIB_FOUND 1 CACHE INTERNAL "OMX") |