Why cmake .. -GXcode does not generate makefile
I wrote a CMakeLists.txt file to compile a simple "hello word" example.
cmake_minimum_required(VERSION 2.6) #Declaration du projet project(MYfirstcamke) #declaration de l'executable add_executable( my_executable main.cpp)
When I type cmake, It generates a makefile but when I use cmake .. -GXcode. I did not get a makefile. What is the problem?
I don't know CMake either, however I would have expected -GXcode to generate an Xcode project (a .xcodeproj "file").
Xcode doesn't use Makefiles.
It's -G Xcode, not -GXcode.
And the path should come after all the options, i.e.cmake -G whatever .. rather than cmake .. -G whatever.