Add special define to identify raspberry build

This commit is contained in:
michal.szwaj 2018-02-12 17:12:23 +01:00
parent f057b57fad
commit 6e6609581b
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ find_package(Qt5 COMPONENTS Multimedia MultimediaWidgets Bluetooth)
find_package(Protobuf REQUIRED)
if(RPI3_BUILD)
add_definitions(-DUSE_OMX -DOMX_SKIP64BIT)
add_definitions(-DUSE_OMX -DOMX_SKIP64BIT -DRASPBERRYPI3)
set(BCM_HOST_LIBRARIES "/opt/vc/lib/libbcm_host.so")
set(BCM_HOST_INCLUDE_DIRS "/opt/vc/include")
set(ILCLIENT_INCLUDE_DIRS "/opt/vc/src/hello_pi/libs/ilclient")

View File

@ -49,7 +49,7 @@ USBMain::USBMain(libusb_context* context)
int USBMain::exec(int argc, char* argv[])
{
QApplication qApplication(argc, argv);
#ifdef RPI3_BUILD
#ifdef RASPBERRYPI3
qApplication.setOverrideCursor(Qt::BlankCursor);
#endif