cmake
来源:互联网 发布:编写网站的软件 编辑:程序博客网 时间:2024/05/09 17:01
1
2
3
cmake_minimum_required(VERSION 2.8.9)
project (hello)
add_executable(hello helloworld.cpp)
The CMakeLists.txt file in Listing 2 consists of only three lines:
- The first line sets the minimum version of CMake for this project, which is major version 2, minor version 8, and patch version 9 in this example. This version is somewhat arbitrary in this example, but providing a version number allows for future support for your build environment. Therefore, you should use the current version of CMake on your system, which for this example is determined just below.
- The second line is the
project()
command that sets the project name. - The third line is the
add_executable()
command, which requests that an executable is to be built using thehelloworld.cpp
source file. The first argument to theadd_executable()
function is the name of the executable to be built, and the second argument is the source file from which to build the executable.
http://hahack.com/codes/cmake/
Are CMAKE_SOURCE_DIR and PROJECT_SOURCE_DIR the same in CMake?
http://stackoverflow.com/questions/32028667/are-cmake-source-dir-and-project-source-dir-the-same-in-cmake
http://stackoverflow.com/questions/7091385/how-to-organise-my-files-using-cmake
http://blog.csdn.net/cheng_tian/article/details/7271647
https://cmake.org/cmake-tutorial/
http://blog.sina.com.cn/s/blog_62715e790100grnk.html
0 0
- cmake
- cMAKE
- cmake
- CMake
- Cmake
- cmake
- cmake
- CMake
- cmake
- CMake
- CMake
- CMake
- cmake
- CMAKE
- cmake
- CMake
- CMake
- CMake
- 在Eclipse中提交作业至远程的Hadoop集群上执行
- Redis使用系列:配置文件篇
- 生孩子记录
- php使用openssl来实现非对称加密
- MVP模式从入门到精通
- cmake
- 实现短信验证码有效时间
- 自定义BaseRecyclerAdapter适配器
- mybatis 配置-简单记录一下,免得忘记了
- 【职场经历】-找工作
- zabbix 添加jvm监控
- spark笔记
- 为什么通过AIDL方式使用binder机制的时候如果Bn端函数比较耗时Bp端会ANR
- vfork函数