[Cmake] exclude file from build
cmake.org › pipermail › cmakeAug 03, 2004 · David Somers wrote: > I've just started playing with cmake. > > Is there a way to get cmake to generate a VC6 project file where some of the > files have the 'exclude file from build' attribute set? No, but files with extensions like ".txt" that do not mean anything to CMake or Visual Studio can be included in the project file with no ill effects.
[Cmake] exclude file from build
https://cmake.org/pipermail/cmake/2004-August/005374.html03.08.2004 · David Somers wrote: > I've just started playing with cmake.> > Is there a way to get cmake to generate a VC6 project file where some of the > files have the 'exclude file from build' attribute set? No, but files with extensions like ".txt" that do not mean anything to CMake or Visual Studio can be included in the project file with no ill effects.
[CMake] Exclude file from build on a given target
cmake.org › pipermail › cmakeIf you want to exclude certain source files from certain targets you can usea list and then list(REMOVE_ITEM...)set(FOO_SRCS foo.cc bar.cc)list(REMOVE_ITEM FOO_SRCS bar.cc)add_library(foo ${FOO_SRCS})Alternatively, only add the unusual source files to the targets you want. set(FOO_SRCS foo.cc bar.cc)if(WHATEVER) list(FOO_SRCS APPEND whatever.cc)endif()On Tue, May 26, 2009 at 5:52 PM, Daniel Tavares<daniel.tavares at slipg8.com>wrote:>Is it possible to exclude a file from build ...