Cmake的使用

./configure、make、make install 命令
./configure –prefix=/usr 意思是将该软件安装在 /usr 下面
同时一些软件的配置文件你可以通过指定 –sys-config= 参数进行设定。有一些软件还可以加上–with、–enable、–without、–disable等等参数对编译加以控制,你可以通过允许 ./configure –help 察看详细的说明帮助。

学习CGAL:配置QT支持

MAC 设置环境变量PATH 和 查看PATH

CMake 基本使用方法
CMake进阶之初识CMake
CMake常见指令含义总结
cmake之生成动态库
Cmake 其他命令

cmake -H. -Bbuild -G "Unix Makefiles"
cmake --build build
cmake --build build --target test
cmake --build build --target install
cmake_minimum_required (VERSION 3.0.2)
project (myproj VERSION 1.0
find_package (glog 0.4.0 REQUIRED)
add_executable (myapp main.cpp)
target_link_libraries (myapp glog::glog)

在cmake脚本中,add_compile_options命令添加的编译选项是针对所有编译器设置编译选项(包括c和c++编译器),而set命令通过设置CMAKE_C_FLAGS或CMAKE_CXX_FLAGS变量设置编译选项是分别只针对c和c++编译器的。

[C++]std::sort()函数使用总结

latex type chinese输入中文

posted @ 2021-01-02 12:51  阿龙233  阅读(113)  评论(0编辑  收藏  举报