[CMake] Can cmake generate Visual Studio projects without generating a makefile?
David Cole
david.cole at kitware.com
Sun Dec 13 10:00:01 EST 2009
On Sun, Dec 13, 2009 at 8:20 AM, Mark Jones <mark.jones1112 at gmail.com>wrote:
> Hi David,
>
> Thank you for all of your help so far.
You're welcome...
Am I attempting to use cmake in a way that is incompatible with cmake, or in
> a way that it wasn't intended for? It is OK if I am attempting to use it in
> a way it isn't designed for (in which case I can accept that and move on),
Yes, unfortunately, you are. (So accept it, and move on...) :-)
You can *either* do add_custom_command stuff and have a bare Visual Studio
project without any source files in (but that drives your build through
Visual Studio and your existing makefiles without intellisense and all
that)...
*Or* you can convert the makefiles you do have into CMakeLists.txt files
that list all the sources, do add_library, add_executable and
include_directories calls and generate VS project files that *replace* your
makefiles...
But not both. (At least not without major CMake re-work...)
Why not convert your existing makefiles and just use CMake? It wouldn't be
that much more effort than getting CMake to generate a hybrid/fake thing
like you're trying to do already...
HTH,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20091213/4645a020/attachment.htm>
More information about the CMake
mailing list