diff options
author | Ken Martin <ken.martin@kitware.com> | 2001-05-11 14:53:17 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2001-05-11 14:53:17 (GMT) |
commit | 639f1fa2392345be8afbdb1d0866d342d5923bbf (patch) | |
tree | 4e594126688fb699d195dfec984ff4909b910b0b /Source/cmMakefile.cxx | |
parent | 4139f15de65ec1d1670cceb95b4c22b52f5448c3 (diff) | |
download | CMake-639f1fa2392345be8afbdb1d0866d342d5923bbf.zip CMake-639f1fa2392345be8afbdb1d0866d342d5923bbf.tar.gz CMake-639f1fa2392345be8afbdb1d0866d342d5923bbf.tar.bz2 |
added registry entry support and windows app support
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 6fa2084..f415147 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -484,8 +484,22 @@ void cmMakefile::AddLibrary(const char* lname, const std::vector<std::string> &s void cmMakefile::AddExecutable(const char *exeName, const std::vector<std::string> &srcs) { + this->AddExecutable(exeName,srcs,false); +} + +void cmMakefile::AddExecutable(const char *exeName, + const std::vector<std::string> &srcs, + bool win32) +{ cmTarget target; - target.SetType(cmTarget::EXECUTABLE); + if (win32) + { + target.SetType(cmTarget::WIN32_EXECUTABLE); + } + else + { + target.SetType(cmTarget::EXECUTABLE); + } target.SetInAll(true); target.GetSourceLists() = srcs; m_Targets.insert(cmTargets::value_type(exeName,target)); |