QFluentWidgets.pro 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. QT += widgets svg xml
  2. TEMPLATE = lib
  3. CONFIG += staticlib
  4. CONFIG += c++11
  5. # You can make your code fail to compile if it uses deprecated APIs.
  6. # In order to do so, uncomment the following line.
  7. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  8. #-------------------------------------------------------------------------------
  9. # Compiler options
  10. #-------------------------------------------------------------------------------
  11. *g++*: {
  12. QMAKE_CXXFLAGS_RELEASE -= -O
  13. QMAKE_CXXFLAGS_RELEASE *= -O3
  14. }
  15. *msvc*: {
  16. QMAKE_CFLAGS += /utf-8
  17. QMAKE_CXXFLAGS += /utf-8
  18. QMAKE_CXXFLAGS_RELEASE -= /O
  19. QMAKE_CXXFLAGS_RELEASE *= /O2
  20. }
  21. CONFIG(debug, release|debug){
  22. win32:TARGET = qfluentwidgetsd
  23. else:TARGET = qfluentwidgets
  24. } else {
  25. TARGET = qfluentwidgets
  26. }
  27. SOURCES += \
  28. Common/Config.cpp \
  29. Common/Icon.cpp \
  30. Common/SmoothScroll.cpp \
  31. DateTime/DatePicker.cpp \
  32. DateTime/PickerBase.cpp \
  33. DateTime/TimePicker.cpp \
  34. DialogBox/ColorDialog.cpp \
  35. DialogBox/Dialog.cpp \
  36. DialogBox/FolderListDialog.cpp \
  37. DialogBox/HuePanel.cpp \
  38. DialogBox/MaskDialogBase.cpp \
  39. DialogBox/MessageDialog.cpp \
  40. Layout/ExpandLayout.cpp \
  41. Layout/FlowLayout.cpp \
  42. Layout/VBoxLayout.cpp \
  43. Navigation/NavigationInterface.cpp \
  44. Navigation/NavigationPanel.cpp \
  45. Navigation/NavigationWidget.cpp \
  46. QFluentWidgets.cpp \
  47. Common/AutoWrap.cpp \
  48. Common/ImageUtils.cpp \
  49. Common/StyleSheet.cpp \
  50. Settings/CustomColorSettingCard.cpp \
  51. Settings/ExpandGroupSettingCard.cpp \
  52. Settings/FolderListSettingCard.cpp \
  53. Settings/OptionsSettingCard.cpp \
  54. Settings/SettingCard.cpp \
  55. Settings/SettingCardGroup.cpp \
  56. Widgets/AcrylicLabel.cpp \
  57. Widgets/Button.cpp \
  58. Widgets/CheckBox.cpp \
  59. Widgets/ComboBox.cpp \
  60. Widgets/CycleListWidget.cpp \
  61. Widgets/IconWidget.cpp \
  62. Widgets/InfoBar.cpp \
  63. Widgets/Label.cpp \
  64. Widgets/LineEdit.cpp \
  65. Widgets/Menu.cpp \
  66. Widgets/MultiSelectComboBox.cpp \
  67. Widgets/ScrollArea.cpp \
  68. Widgets/Slider.cpp \
  69. Widgets/SpinBox.cpp \
  70. Widgets/StackedWidget.cpp \
  71. Widgets/StateToolTip.cpp \
  72. Widgets/SwitchButton.cpp \
  73. Widgets/ThreeStateButton.cpp \
  74. Widgets/ToolTip.cpp \
  75. Widgets/TreeView.cpp
  76. HEADERS += \
  77. Common/Config.h \
  78. Common/Icon.h \
  79. Common/SmoothScroll.h \
  80. Common/Theme.h \
  81. Common/enum.h \
  82. DateTime/DatePicker.h \
  83. DateTime/PickerBase.h \
  84. DateTime/TimePicker.h \
  85. DialogBox/ColorDialog.h \
  86. DialogBox/Dialog.h \
  87. DialogBox/FolderListDialog.h \
  88. DialogBox/HuePanel.h \
  89. DialogBox/MaskDialogBase.h \
  90. DialogBox/MessageDialog.h \
  91. Layout/ExpandLayout.h \
  92. Layout/FlowLayout.h \
  93. Layout/VBoxLayout.h \
  94. Navigation/NavigationInterface.h \
  95. Navigation/NavigationPanel.h \
  96. Navigation/NavigationWidget.h \
  97. QFluentWidgets.h \
  98. Common/AutoWrap.h \
  99. Common/ImageUtils.h \
  100. Common/StyleSheet.h \
  101. Settings/CustomColorSettingCard.h \
  102. Settings/ExpandGroupSettingCard.h \
  103. Settings/FolderListSettingCard.h \
  104. Settings/OptionsSettingCard.h \
  105. Settings/SettingCard.h \
  106. Settings/SettingCardGroup.h \
  107. Widgets/AcrylicLabel.h \
  108. Widgets/Button.h \
  109. Widgets/CheckBox.h \
  110. Widgets/ComboBox.h \
  111. Widgets/CycleListWidget.h \
  112. Widgets/IconWidget.h \
  113. Widgets/InfoBar.h \
  114. Widgets/Label.h \
  115. Widgets/LineEdit.h \
  116. Widgets/Menu.h \
  117. Widgets/MultiSelectComboBox.h \
  118. Widgets/ScrollArea.h \
  119. Widgets/Slider.h \
  120. Widgets/SpinBox.h \
  121. Widgets/StackedWidget.h \
  122. Widgets/StateToolTip.h \
  123. Widgets/SwitchButton.h \
  124. Widgets/ThreeStateButton.h \
  125. Widgets/ToolTip.h \
  126. Widgets/TreeView.h
  127. #-------------------------------------------------------------------------------
  128. # Build options
  129. #-------------------------------------------------------------------------------
  130. DESTDIR = $$PWD/../bin #指定生成的应用程序放置的路径
  131. LIBS += -L$$PWD/../bin #指定生成的库文件放置的路径,与应用程序放在一起
  132. # Default rules for deployment.
  133. unix {
  134. target.path = /usr/lib
  135. }
  136. !isEmpty(target.path): INSTALLS += target
  137. RESOURCES += \
  138. qfluentwidgets.qrc