CMake入门

第一部分:基本例程 1. hello-cmake 文件树: 1 2 3 4 5 6 ubuntu@VM-12-11-ubuntu:~/c++/study_cmake/hell-cmake$ tree . ├── CMakeLists.txt └── main.cpp 0 directories, 2 files CMakeLists.txt 1 2 3 cmake_minimum_required(VERSION 2.6) project (hello_cmake) add_executable(${PROJECT_NAME} main.cpp) 1.1 命令作用解析 1 project (hello_cmake) #设置工程名 CMake构建包

makefile的简单例子

示例 树形结构: 1 2 3 4 5 6 7 8 9 ubuntu@VM-12-11-ubuntu:~/c++/makefile$ tree . ├── factorial.cpp ├── functions.h ├── main.cpp ├── Makefile └── printHello.cpp 0 directories, 5 files functions.h 1 2 3 4 5 6 #ifndef FUNCTIONS_H #define FUNCTIONS_H #include <iostream> void printHello(); int factorial(int n); #endif factorial.cpp 1 2 3 4 5 6 7

muduo网络库的使用

1. echo服务的实现 muduo的使用非常简单,不需要从指定的类派生,也不用覆写虚函数,只需要注册几个回调函数去处理"三个半的事件&

Linux入门学习

1. Linux基本操作 1.1 文本登录 文本方式登陆: 输入用户名和密码 /etc/passwd文件对照 /etc/shadow文件对照 启动相应的外壳程序 用

Linux常用命令

1. 路径相关 1.1 pwd 显示当前路径 在终端中输入pwd命令,显示当前我们所在的位置: 1 2 ubuntu@VM-12-11-ubuntu:~$ pwd /home/ubuntu 1.2 ls 查看当前目录 1 2 ubuntu@VM-12-11-ubuntu:~$ ls build c++ muduo my-website recipes snap 可以使用如下命令让这

Windows 10 远程桌面

远程桌面 被远程的主机 首先win键 -> 设置 -> 系统 -> 远程桌面,启动远程桌面功能。 再查看本机IP地址:win + r 组合键,输入cmd,回车确定,在cm
0%