
CMakeLists.txt
文章平均质量分 87
Suffering-
你说你喜欢雨,但是下雨的时候你却撑开了伞;你说你喜欢阳光,但当阳光播撒的时候,你却躲在阴凉之地;你说你喜欢风,但清风扑面的时候,你却关上了窗户,我害怕你对我的爱也是如此。
展开
-
CMakeLists.txt编写
一、新建一个src文件夹,里面放入hello.c,hello.h,,main.c,CMakeLists.txt这四个文件,这四个文件夹里面的内容分别如下:1.hello.c#include "hello.h"void hello_func(void) { printf("Hello World!\n"); return;}2.hello.h#ifndef HELLO_H_#defin...原创 2018-06-19 11:15:17 · 987 阅读 · 0 评论 -
cmake+CMakeLists的学习
一、我们想来看一个最简单的例子:1.新建一个src文件夹,在src文件夹下新建一个main.cpp以及一个CMakeLists.txt,然后分别添加如下内容:main.cpp#include <QtCore/QCoreApplication>#include <QtCore/QDebug>int main(int argc, char** argv){ QCo...原创 2018-06-27 12:23:22 · 796 阅读 · 0 评论