main
朱子楚\zhuzi 2023-05-05 21:42:16 +08:00
parent fb4ed03530
commit df5e657ad1
3 changed files with 3 additions and 9 deletions

View File

@ -93,6 +93,7 @@ set_target_properties(example PROPERTIES
# #
target_link_libraries(example PRIVATE target_link_libraries(example PRIVATE
Qt6::Quick Qt6::Quick
fluentui
) )
# #

View File

@ -4,7 +4,6 @@ import QtQuick.Controls
import QtQuick.Layouts import QtQuick.Layouts
import Qt.labs.platform import Qt.labs.platform
import FluentUI import FluentUI
import example
import "qrc:///example/qml/global/" import "qrc:///example/qml/global/"
FluWindow { FluWindow {

View File

@ -9,7 +9,7 @@ if(APPLE)
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64" CACHE STRING "" FORCE) set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64" CACHE STRING "" FORCE)
endif() endif()
# #
if(CMAKE_BUILD_TYPE STREQUAL "Debug") if(CMAKE_BUILD_TYPE STREQUAL "Debug")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin/debug) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin/debug)
else() else()
@ -50,7 +50,7 @@ endforeach()
#qml #qml
qt_add_qml_module(fluentui qt_add_qml_module(fluentui
OUTPUT_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/FluentUI OUTPUT_DIRECTORY ${CMAKE_PREFIX_PATH}/qml/FluentUI
VERSION 1.0 VERSION 1.0
URI "FluentUI" URI "FluentUI"
SOURCES ${sources_files} fluentui.rc SOURCES ${sources_files} fluentui.rc
@ -58,12 +58,6 @@ qt_add_qml_module(fluentui
RESOURCES ${resource_files} RESOURCES ${resource_files}
) )
#
set_target_properties(fluentui PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
# #
target_link_libraries(fluentui PUBLIC target_link_libraries(fluentui PUBLIC
Qt::Core Qt::Core