Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create CMakeLists.txt #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

geniusjoe
Copy link

添加 CMakeLists.txt

  • 利于 CLion 用户的使用
    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进行二进制文件的卸载

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants