feat: add matlab.md cheatsheet (#21). 02d0a495a6

This commit is contained in:
jaywcjlove
2022-11-04 13:08:05 +00:00
parent 98127ce694
commit 3a8626d210
73 changed files with 4673 additions and 419 deletions

View File

@ -49,7 +49,7 @@
</span><span class="code-line">╰┈ main.cpp <span class="token comment"># 带有 main 的源文件</span>
</span></code></pre>
<p>在此项目上运行 <code>CMake</code> 时,系统会要求您提供二进制目录,运行 <code>CMake</code> 不会创建最终的可执行文件,而是会为 <code>Visual Studio</code><code>XCode</code><code>makefile</code> 生成项目文件。 使用这些工具构建该项目</p>
</div></div><div class="h3wrap-body"><h4 id="cmakeliststxt"><a aria-hidden="true" tabindex="-1" href="#cmakeliststxt"><span class="icon icon-link"></span></a>CMakeLists.txt</h4>
<h4 id="cmakeliststxt"><a aria-hidden="true" tabindex="-1" href="#cmakeliststxt"><span class="icon icon-link"></span></a>CMakeLists.txt</h4>
<pre class="language-cmake"><code class="language-cmake code-highlight"><span class="code-line"><span class="token comment"># 设置可以使用的最低 CMake 版本</span>
</span><span class="code-line"><span class="token keyword">cmake_minimum_required</span><span class="token punctuation">(</span><span class="token property">VERSION</span> <span class="token number">3.5</span><span class="token punctuation">)</span>
</span><span class="code-line"><span class="token comment"># 设置项目名称</span>
@ -73,7 +73,7 @@
</span><span class="code-line">$ ./hello_cmake <span class="token comment"># 运行生成的 hello_cmake</span>
</span><span class="code-line">Hello CMake<span class="token operator">!</span>
</span></code></pre>
</div></div><div class="wrap h3body-not-exist col-span-2"><div class="wrap-header h3wrap"><h3 id="cmake"><a aria-hidden="true" tabindex="-1" href="#cmake"><span class="icon icon-link"></span></a>cmake</h3><div class="wrap-body">
</div></div></div><div class="wrap h3body-not-exist col-span-2"><div class="wrap-header h3wrap"><h3 id="cmake"><a aria-hidden="true" tabindex="-1" href="#cmake"><span class="icon icon-link"></span></a>cmake</h3><div class="wrap-body">
<!--rehype:wrap-class=col-span-2-->
<p>生成项目构建系统</p>
<pre class="language-bash"><code class="language-bash code-highlight"><span class="code-line">$ cmake <span class="token punctuation">[</span><span class="token operator">&#x3C;</span>options<span class="token operator">></span><span class="token punctuation">]</span> <span class="token operator">&#x3C;</span>path-to-source <span class="token operator">|</span> path-to-existing-build<span class="token operator">></span>bash
@ -107,7 +107,7 @@
<ul>
<li><a href="http://ttroy50.github.io/cmake-examples/">CMake Examples</a> <em>(ttroy50.github.io)</em></li>
</ul>
</div></div></div></div></div><footer class="footer-wrap"><footer class="max-container">© 2022 Kenny Wang, All rights reserved.</footer></footer><script>
</div></div><div class="h2wrap-body"></div></div></div></div><footer class="footer-wrap"><footer class="max-container">© 2022 Kenny Wang, All rights reserved.</footer></footer><script>
if(('onhashchange' in window) && ((typeof document.documentMode==='undefined') || document.documentMode==8)) {
window.onhashchange = function () {
anchorPoint()