[CMake] Creating a visual studio project with non .cpp or .h
files in it.
Sylvain Benner
benner at virtools.com
Wed Dec 5 09:27:30 EST 2007
Here is a missing function body added to cmMakeFile.
I would be glad to hear from the CMake makers of any issues using this
hack, thank you.
cmTarget* cmMakefile::AddGlobalTargetMP(const char *targetName,
const std::vector<std::string>
&srcs)
{
cmTarget target;
target.SetType(cmTarget::UTILITY, targetName);
target.SetInAll(true);
target.GetSourceLists() = srcs;
target.SetMakefile(this);
this->AddGlobalLinkInformation(targetName, target);
cmTargets::iterator it =
this->Targets.insert(cmTargets::value_type(targetName,target)).first;
this->LocalGenerator->GetGlobalGenerator()->AddTarget(*it);
return &it->second;
}
--Sylvain
More information about the CMake
mailing list