【发布时间】:2015-12-03 21:10:09
【问题描述】:
我编写了一个 CMakeLists.txt 文件来编译一个简单的“hello word”示例。
cmake_minimum_required(VERSION 2.6)
#Declaration du projet
project(MYfirstcamke)
#declaration de l'executable
add_executable(
my_executable
main.cpp)
当我输入 cmake 时,它会生成一个 makefile,但是当我使用 cmake .. -GXcode 时。我没有得到一个makefile。有什么问题?
【问题讨论】:
-
为什么人们仍然需要 2.6 版?我希望新代码使用 3.0 或 2.8.something。一些流行的教程一定已经过时了……