cmake_minimum_required(VERSION 3.16) project(ghQmlDemo4115 VERSION 1.0 LANGUAGES CXX) set(CMAKE_INCLUDE_CURRENT_DIR ON) find_package(QT NAMES Qt5 Qt6 REQUIRED COMPONENTS Core) find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Gui Quick SerialBus) find_package(Libudev) qt_standard_project_setup() qt_add_executable(ghQmlDemo4115 WIN32 MACOSX_BUNDLE buildInfo.c disp3dxx.cpp disp3dxx.h ghcamera.cpp ghcamera.h main.cpp qquickcustomdialring.cpp qquickcustomdialring_p.h ) target_include_directories(ghQmlDemo4115 PRIVATE . /kernel-headers/include /usr/include/3Dxx-4115 ) target_compile_definitions(ghQmlDemo4115 PRIVATE QT_DEPRECATED_WARNINGS ) target_link_libraries(ghQmlDemo4115 PRIVATE Qt::Core Qt::Gui Qt::Quick Qt::SerialBus ) # Resources: set(qml_resource_files "qml/Cabin.qml" "qml/Camera.qml" "qml/Dashboard.qml" "qml/Lighting.qml" "qml/MainMenu.qml" "qml/Music.qml" "qml/RoundMouseArea.qml" "qml/ScreenFooter.qml" "qml/ScreenHeader.qml" "qml/ScreenSwipeArea.qml" "qml/Settings.qml" "qml/images/GhLogoDesktop_Grey.jpg" "qml/images/GrayhillG.png" "qml/images/HornHonkOff.png" "qml/images/HornHonkOn.png" "qml/images/Lighting_0.png" "qml/images/Lighting_10.png" "qml/images/Lighting_100.png" "qml/images/Lighting_20.png" "qml/images/Lighting_30.png" "qml/images/Lighting_40.png" "qml/images/Lighting_50.png" "qml/images/Lighting_60.png" "qml/images/Lighting_70.png" "qml/images/Lighting_80.png" "qml/images/Lighting_90.png" "qml/images/Menu.png" "qml/images/NHZ_blank.png" "qml/images/NHZ_climate.png" "qml/images/cabin.png" "qml/images/camera.png" "qml/images/carRecirc0.png" "qml/images/carRecirc1.png" "qml/images/dashboard.png" "qml/images/eject.png" "qml/images/fan.png" "qml/images/forward.png" "qml/images/frontDefrost.png" "qml/images/fuel.png" "qml/images/ghLogo.png" "qml/images/headlights64x64.png" "qml/images/heatedSeatLeft0.png" "qml/images/heatedSeatLeft1.png" "qml/images/heatedSeatLeft2.png" "qml/images/heatedSeatLeft3.png" "qml/images/iconCamera.png" "qml/images/iconClimate.png" "qml/images/iconDashboard.png" "qml/images/iconLighting.png" "qml/images/iconMusic.png" "qml/images/iconSettings.png" "qml/images/ignitionKey.png" "qml/images/leftTurnSignalFilled.png" "qml/images/leftTurnSignalOutline.png" "qml/images/lighting.png" "qml/images/menuHome.png" "qml/images/music.png" "qml/images/pause.png" "qml/images/phoneOff.png" "qml/images/phoneOn.png" "qml/images/play.png" "qml/images/rearDefrost.png" "qml/images/rearViewGuide.png" "qml/images/rearViewGuide_INV.png" "qml/images/rewind.png" "qml/images/rightTurnSignalFilled.png" "qml/images/rightTurnSignalOutline.png" "qml/images/scanLeft.png" "qml/images/scanRight.png" "qml/images/seekLeft.png" "qml/images/seekRight.png" "qml/images/settings.png" "qml/images/snowflake.png" "qml/images/stop.png" "qml/images/temperature.png" "qml/images/vent0.png" "qml/images/vent1.png" "qml/images/vent2.png" "qml/images/vent3.png" "qml/images/ventPass0.png" "qml/images/ventPass1.png" "qml/images/ventPass2.png" "qml/images/ventPass3.png" "qml/main.qml" "qml/main_org.qml" ) qt_add_resources(ghQmlDemo4115 "qml" PREFIX "/" FILES ${qml_resource_files} ) if(NOT kernel___equals___4) target_include_directories(ghQmlDemo4115 PRIVATE /usr/include ) endif() if(hw_present_ISEMPTY) target_include_directories(ghQmlDemo4115 PRIVATE /usr/include ) target_link_libraries(ghQmlDemo4115 PRIVATE # Remove: L/usr/lib/x86_64-linux-gnu/mesa ) endif() if(hw_present___contains___yes) target_compile_definitions(ghQmlDemo4115 PRIVATE ON_HARDWARE ) target_link_libraries(ghQmlDemo4115 PRIVATE # Remove: L/lib PkgConfig::Libudev ) endif() if((hw_present___contains___yes) AND (QMAKE_HOST.os___contains___Linux)) target_include_directories(ghQmlDemo4115 PRIVATE /opt/OSELAS.Toolchain-2013.12.3/arm-cortexa9-linux-gnueabi/gcc-4.8.3-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/sysroot-arm-cortexa9-linux-gnueabi/usr/include ) endif() if((hw_present___contains___yes) AND (QMAKE_HOST.os___contains___Windows)) target_include_directories(ghQmlDemo4115 PRIVATE C:\QtGhSupport\gcc-linaro-2013\arm-linux-gnueabi\libc\usr\include ) endif() if(target___equals___3D50) target_compile_definitions(ghQmlDemo4115 PRIVATE HW_3D50 ) endif() if(target___equals___3D70) target_compile_definitions(ghQmlDemo4115 PRIVATE HW_3D70 ) endif() if(target___equals___3D2104) target_compile_definitions(ghQmlDemo4115 PRIVATE HW_3D2104 ) endif() if(target___equals___3D101) target_compile_definitions(ghQmlDemo4115 PRIVATE HW_3D101 ) endif() if(hw_present___contains___yes AND kernel___equals___4) target_link_libraries(ghQmlDemo4115 PRIVATE # Remove: L/usr/lib/3Dxx-4115 g2d ghdrv ghio rt ) endif() if(hw_present___contains___yes AND NOT kernel___equals___4) target_link_libraries(ghQmlDemo4115 PRIVATE # Remove: L/usr/lib += LIBS g2d ghdrv ghio rt ) endif() if(windowsOnly___equals___ON) target_compile_definitions(ghQmlDemo4115 PRIVATE WIN_DESKTOP ) endif() install(TARGETS ghQmlDemo4115 BUNDLE DESTINATION . RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} ) qt_generate_deploy_app_script( TARGET ghQmlDemo4115 FILENAME_VARIABLE deploy_script NO_UNSUPPORTED_PLATFORM_ERROR ) install(SCRIPT ${deploy_script})