Skip to content
Snippets Groups Projects
Commit 382119f5 authored by shanheng jiu's avatar shanheng jiu
Browse files

support cross compile

parent 8f5db6dc
Branches main
No related tags found
No related merge requests found
......@@ -8,8 +8,11 @@ find_package(Qt6 REQUIRED COMPONENTS Quick Qml QuickControls2 QuickControls2Impl
function(qt_add_qml_module_qmltc TARGET STYLE)
# message(STATUS ${ARGN})
get_filename_component(QML_DIR "${Qt6Qml_DIR}../../../../qml" REALPATH)
if(CMAKE_CROSSCOMPILING)
get_filename_component(QML_DIR "${Qt6Qml_DIR}../../../qml" REALPATH)
else()
get_filename_component(QML_DIR "${Qt6Qml_DIR}../../../../qml" REALPATH)
endif()
set(QtQuickControls_DIR "${QML_DIR}/QtQuick/Controls/${STYLE}")
message(STATUS "QtQuickControls_DIR: " ${QtQuickControls_DIR})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment