本文介紹了在 Qt Creator 中,我在哪里將參數(shù)傳遞給編譯器?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!
問題描述
在 Qt Creator 中,我在哪里將參數(shù)傳遞給編譯器?
這不是那么明顯.
Where in Qt Creator do I pass arguments to a compiler?
It isn't really that obvious.
推薦答案
根據(jù)您的構(gòu)建系統(tǒng),它位于您的 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")
這篇關(guān)于在 Qt Creator 中,我在哪里將參數(shù)傳遞給編譯器?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!
【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!