[CMake] Complete beginner question about tutorial
David Aldrich
David.Aldrich at EU.NEC.COM
Tue Sep 7 09:24:29 EDT 2010
Hi Eike and Arjen
Thanks for your answers. Sorry for my trivial question!
I would like to ask a question about best practice. I think that, initially, we would use CMake only on Linux, to replace our hardcoded of gnu makefiles (we don't use autotools). So only one platform is involved. I am wondering what to put under version control. Would it be best to version control only CMakeLists.txt and let each developer separately run CMake and then make? Or should the modifier of CMakeLists.txt be responsible for running CMake and check-in the generated Makefile, so that the user only needs to update his (svn) working copy and run make?
Best regards
David
> -----Original Message-----
> From: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On Behalf
> Of Rolf Eike Beer
> Sent: 07 September 2010 13:11
> To: cmake at cmake.org
> Subject: Re: [CMake] Complete beginner question about tutorial
>
> Am Tuesday 07 September 2010 schrieb David Aldrich:
> > Hi
> >
> > I want to run the CMake tutorial
> > (http://www.cmake.org/cmake/help/cmake_tutorial.html).
> >
> > The tutorial appears not to show the CMake commands necessary to build
> > program. On Windows what command should I use to build the Tutorial
> > executable with Visual C++ 2008?
>
> You should create the programs with '-G "Visual Studio 9 2008"' to get a
> MSVC solution file. Load that one and just let it build.
>
> You could open a compiler console (Start -> Programs -> Microsoft Visual
> Studio 2008 -> Tools -> x86 command prompt (or something like that)) and
> use '-G "NMake Makefiles"'. Then you would run "nmake" from that command
> window to build. You need to run cmake in that window or it will not be
> able to detect the proper compiler settings for nmake otherwise.
>
> Eike
More information about the CMake
mailing list