锘??xml version="1.0" encoding="utf-8" standalone="yes"?> 棣栧厛錛屼笅杞絚make-mode.el鏂囦歡 锘匡豢http://www.cmake.org/CMakeDocs/cmake-mode.el 鏀懼埌鑷繁鐨別macs plugin鐩綍涓嬶細(xì) /opt/emacs_plugins/cmake-mode.el 鐒跺悗鍦?emacs鏂囦歡涓緗涓嬶細(xì) 閲嶆柊鍚姩Emacs鍚庯紝鎵撳紑鎴戠殑CMake宸ョ▼鐨凜MakeLists.txt鏂囦歡,閲岄潰command鍏抽敭瀛楅兘宸茬粡鍙樻垚楂樹(shù)寒銆?/p> M-x 鎵ц cmake-help-list-commands 鍚庯紝鍙互鐪嬪埌鎵鏈夊綋鍓岰Make鐗堟湰鏀寔鐨勫懡浠ゃ?/p> 灝嗗厜鏍囧仠鍦ㄦ煇涓猚ommand錛堟瘮濡侫UX_SOURCE_DIRECTORY)涔嬩笂錛岃繍琛宑make-help-command 浼?xì)鐪嬪埌鍏充簬AUX_SOURCE_DIRECTORY command鐨勮緇嗕粙緇嶃?/p> 鍏朵粬鍔熻兘鍚庨潰鎱㈡參浣撲細(xì)鍚с?/p>
1.CMAKE涓殑緋葷粺鐜鍙橀噺
1)鎬庝箞寮曠敤緋葷粺鐜鍙橀噺錛?ENV{PATH}
2)鎬庝箞鍙慨鏀規(guī)湰嬈onfigure浼?xì)璇濈殑鐜鍙橀噺SET(ENV{PATH} "1" PATH)
2.CMAKE涓庝箞瀹氫箟鍙互鍦℅UI銆佸懡浠よconfigure鐨勬椂鍊欒緗殑鍙橀噺
SET(var1 13 CACHE STRING "")
]]>