| 12345678910111213141516171819202122232425262728 |
- -- Views 模块配置
- -- 此文件被主项目通过 includes("views") 引入
- -- Views 库
- target("views_lib")
- set_kind("static")
-
- -- 所有源文件
- add_files("*.cpp")
- add_headerfiles("*.h")
-
- -- 包含目录
- add_includedirs("..", {public = true})
- add_includedirs(".", {public = true})
-
- -- Qt 配置
- add_rules("qt.shared")
-
- -- 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()
|