Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
添加 CMakeLists.txt
CLion 使用 CMake 作为项目管理器, CMake 使用 CMakeLists.txt 编译输出 Makefile 文件,
没有 CMakeLists.txt ,CLion 就无法正常打开对应的项目
CMakeLists.txt 在原有 Makefile 基础上进行修改
编译之后,使用
make install
进行二进制文件的安装.由于 CMake 没有对应的
make clean
指令,因此使用 CMake 中的add_custom_target
新建指令make install
安装之后,使用make clean-all
进行二进制文件的卸载