| 1234567891011121314151617181920212223242526272829 |
- -- Views 模块配置
- -- 此文件被主项目通过 includes("views") 引入
- -- Views 库
- target("views_lib")
- add_rules("qt.static")
- if is_plat("windows") then
- add_defines("UNICODE", "_UNICODE")
- end
-
- -- 所有源文件
- add_files("*.cpp")
- add_headerfiles("*.h")
-
- -- 包含目录
- add_includedirs("..", {public = true})
- add_includedirs(".", {public = true})
-
-
- -- Qt MOC 处理
- add_files("*.h", {rules = "qt.moc"})
-
- -- Windows 特定链接库
- if is_plat("windows") then
- add_syslinks("user32", "gdi32", "ole32", "shell32")
- add_syslinks("OpenGL32")
- end
- add_frameworks("QtCore", "QtGui", "QtWidgets", "QtNetwork", "QtMultimedia")
- target_end()
|