博客專欄

        EEPW首頁 > 博客 > cmake 命令行參數(shù)

        cmake 命令行參數(shù)

        發(fā)布人:電子禪石 時(shí)間:2020-02-17 來源:工程師 發(fā)布文章


        https://cmake.org/cmake/help/latest/manual/cmake.1.html#manual:cmake(1)

        Generate a Project Buildsystem
         cmake [<options>] <path-to-source>
         cmake [<options>] <path-to-existing-build>
         cmake [<options>] -S <path-to-source> -B <path-to-build>
        
        Build a Project
         cmake --build <dir> [<options>] [-- <build-tool-options>]
        
        Install a Project
         cmake --install <dir> [<options>]
        
        Open a Project
         cmake --open <dir>
        
        Run a Script
         cmake [{-D <var>=<value>}...] -P <cmake-script-file>
        
        Run a Command-Line Tool
         cmake -E <command> [<options>]
        
        Run the Find-Package Tool
         cmake --find-package [<options>]
        
        View Help
         cmake --help[-<topic>]
        1. cmake 運(yùn)行指定cmake 腳本 

          cmake [{-D <var>=<value>}...] -P <cmake-script-file>


          Process the given cmake file as a script written in the CMake language.  No configure or generate step is performed and the cache is not modified.  If variables are defined using -D, this must be done before the -P argument.

        *博客內(nèi)容為網(wǎng)友個(gè)人發(fā)布,僅代表博主個(gè)人觀點(diǎn),如有侵權(quán)請(qǐng)聯(lián)系工作人員刪除。



        關(guān)鍵詞: cmake

        技術(shù)專區(qū)

        關(guān)閉
        主站蜘蛛池模板: 高邑县| 阿克陶县| 东光县| 铜鼓县| 湖南省| 衡东县| 繁峙县| 修武县| 香河县| 密山市| 莫力| 延吉市| 咸丰县| 深圳市| 桂东县| 融水| 米脂县| 长宁区| 连云港市| 康保县| 甘德县| 长寿区| 松溪县| 扎兰屯市| 满洲里市| 堆龙德庆县| 东阿县| 上犹县| 泊头市| 南漳县| 讷河市| 六盘水市| 长岛县| 班玛县| 鸡西市| 延川县| 九台市| 都匀市| 宁南县| 五台县| 广平县|