本文介紹了在 Qt Creator 中,我在哪里將參數傳遞給編譯器?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
在 Qt Creator 中,我在哪里將參數傳遞給編譯器?
這不是那么明顯.
Where in Qt Creator do I pass arguments to a compiler?
It isn't really that obvious.
推薦答案
根據您的構建系統,它位于您的 qmake 項目文件(.pro,新項目的標準)或 CMake 文件(CMakeLists.txt,由 KDE 和其他幾個項目使用).
Depending on your build system it's either in your qmake project file(.pro, standard for new projects) or in one of the CMake files (CMakeLists.txt, used by KDE and several other projects).
使用 .pro:
QMAKE_CXXFLAGS += -O2
使用 CMake:
set( CMAKE_CXX_FLAGS "-g -Wall")
這篇關于在 Qt Creator 中,我在哪里將參數傳遞給編譯器?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!