From 31b73c0926069b3d19cc524fa8e721774d14f91b Mon Sep 17 00:00:00 2001 From: "ithink.chan" Date: Tue, 31 Dec 2019 09:21:29 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E8=A1=A5=E5=85=85=E5=85=B3=E9=97=AD=20SSL?= =?UTF-8?q?=20=E8=AE=A4=E8=AF=81=E6=96=B9=E6=B3=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ithink.chan --- Software/Applications/Git/Git_使用说明.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Software/Applications/Git/Git_使用说明.md b/Software/Applications/Git/Git_使用说明.md index 9047bb8..9ac3798 100644 --- a/Software/Applications/Git/Git_使用说明.md +++ b/Software/Applications/Git/Git_使用说明.md @@ -14,6 +14,10 @@ git config --global user.name git config --global user.email +git 访问某些 https 连接会出现 SSL 认证错误,此时可通过全局配置关闭 SSL 认证: + + git config --global http.sslVerify "false" + ### Git 与 SSH 如果想访问远程 Git 服务器,则最好通过 SSH 方式。这需要先生成 RSA 密钥,然后将公钥部署到远程服务器上即可。生成 RSA 密钥可使用 OpenSSH,命令如下(Windows 下该命令位于 /\/usr/bin/ 下,可使用 Git Bash 直接访问): From 0d369f4aa667b7f066d39e60a8c515085ec378f6 Mon Sep 17 00:00:00 2001 From: "ithink.chan" Date: Tue, 31 Dec 2019 11:55:45 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20CMake=20=E5=9F=BA?= =?UTF-8?q?=E6=9C=AC=E8=AF=AD=E6=B3=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ithink.chan --- .../Development/Tools/CMake/CMake_基本语法.md | 107 ++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 Software/Development/Tools/CMake/CMake_基本语法.md diff --git a/Software/Development/Tools/CMake/CMake_基本语法.md b/Software/Development/Tools/CMake/CMake_基本语法.md new file mode 100644 index 0000000..aa72cbf --- /dev/null +++ b/Software/Development/Tools/CMake/CMake_基本语法.md @@ -0,0 +1,107 @@ +# CMake 基本语法 + +CMake 支持大写、小写、混合大小写的命令。 + +## 最小版本号 + +```sh +cmake_minimum_required(VERSION 2.8) +``` + +## 工程名 + +```sh +project() +``` + +## Include 路径 + +*需要出现在 add_executable 和 add_library 等之前。* + +```sh +include_directories( + + + ... + +) +``` + +## 添加库路径 + +*需要出现在 add_executable 和 add_library 等之前。* + +```sh +link_directories( + + + ... + +) +``` + +## 添加库文件 + +*已经被废弃了,需要出现在 add_executable 和 add_library 等之前。* + +```sh +link_libraries( + + + ... + +) +``` + +支持直接全路径的写法。 + +## 可执行文件目标和源码 + +```sh +add_executable( + + + + ... + +) +``` + +## 库文件目标和源码 + +```sh +add_library( + + + + + ... + +) +``` + +## 为目标添加库文件 + +*可添加的动态库或静态库,可以在 add_executable 和 add_library 等之后。* + +```sh +target_link_libraries( + + + + ... + +) +``` + +## 添加依赖工程 + +```sh +add_dependencies( + + + + ... + +) +``` From a04ff11355f32dba43a72412ad3a7e9d0227bcc4 Mon Sep 17 00:00:00 2001 From: "ithink.chan" Date: Tue, 31 Dec 2019 12:04:15 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E8=A1=A5=E5=85=85=E5=8F=82=E8=80=83?= =?UTF-8?q?=E8=B5=84=E6=96=99.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ithink.chan --- Software/Development/Tools/CMake/CMake_基本语法.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Software/Development/Tools/CMake/CMake_基本语法.md b/Software/Development/Tools/CMake/CMake_基本语法.md index aa72cbf..26694d0 100644 --- a/Software/Development/Tools/CMake/CMake_基本语法.md +++ b/Software/Development/Tools/CMake/CMake_基本语法.md @@ -105,3 +105,9 @@ add_dependencies( ) ``` + +## 参考资料 + +[cmake手册详解](https://blog.csdn.net/chengde6896383/article/details/81330564) +[cmake 的link_libraries和target_link_libraries](https://blog.csdn.net/harryhare/article/details/89143410) +[【学习cmake】cmake如何使用链接库 (link_directories, LINK_LIBRARIES, target_link_libraries,FIND_PACKAGE)实践篇2](https://blog.csdn.net/KYJL888/article/details/85109782)