C
Monitor: Verifying the Rendering Output
# Generated from monitor.pro. cmake_minimum_required(VERSION 3.16) project(monitor LANGUAGES C CXX) set(CMAKE_INCLUDE_CURRENT_DIR ON) find_package(Qt6 REQUIRED COMPONENTS Core SafeRendererTools SafeMonitor SafeEventSender) if(NOT DEFINED INSTALL_EXAMPLESDIR) set(INSTALL_EXAMPLESDIR "examples") endif() set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}") add_definitions(-DDEBUG) set(sources controller.c controller.h itemstatedata.h indicators.c qsrMonitor.cpp ) # Resource files are passed to qtsafelayouttool set(resource_files "${CMAKE_CURRENT_LIST_DIR}/../indicators/iso-icons.qrc" "${CMAKE_CURRENT_LIST_DIR}/../indicators/qml.qrc" ) set (safeqmls "${CMAKE_CURRENT_LIST_DIR}/../indicators/MainForm.ui.qml" ) qt6_add_binary_resources(resources_monitor ${resource_files} DESTINATION resource.bin) qsr_add_safelayout(generatelayout_monitor SAFE_QMLS ${safeqmls} OUTPUT_PATH ${CMAKE_CURRENT_LIST_DIR}/layoutData SAFE_LAYOUT_FONTS "${CMAKE_CURRENT_LIST_DIR}/../qtcluster/fonts" INPUT_RESOURCES resource.bin OUTPUT_FILES output_srl_files DEBUG) qsr_monitorconfig(generatedata_monitor sources XML LAYOUT_FILES ${output_srl_files} OUTPUTDIR "${CMAKE_CURRENT_LIST_DIR}/data") add_executable(monitor WIN32 MACOSX_BUNDLE ${sources} ) add_dependencies(generatedata_monitor generatelayout_monitor) add_dependencies(monitor generatedata_monitor) target_include_directories(monitor PUBLIC data inc ) target_link_libraries(monitor PUBLIC Qt::SafeMonitor Qt::Core Qt::SafeEventSender ) install(TARGETS monitor RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" )