[CMake] How to exclude CMakeLists.txt from generated projects?

Brandon Van Every bvanevery at gmail.com
Thu Jul 19 19:11:59 EDT 2007


On 7/19/07, Sebastian Schuberth <sschuberth at gmail.com> wrote:
> Hi,
>
> I'm using CMake to generate Visual Studio 2005 project files. By
> default, CMake seems to add the CMakeLists.txt file from which the
> projects was generated to the project itself. I'd like to avoid that. As
> the CMakeLists.txt is not part of the file list that I pass to e.g.
> ADD_LIBRARY, it seems to be added internally. Is there a way to stop that?

Not recommended.  Standard CMake usage is it hooks into your MSVC
project file, regenerating the project whenever you change
CMakeLists.txt.  "Standalone" MSVC project files are possible, but to
my knowledge not very well tested.  You're better off doing it the
normal way that everyone else does, unless you really really really
really can't have CMake as part of your MSVC toolchain.


Cheers,
Brandon Van Every


More information about the CMake mailing list