summaryrefslogtreecommitdiffstats
path: root/Source/cmAddExecutableCommand.cxx
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2011-08-15 23:45:05 (GMT)
committerAlex Neundorf <neundorf@kde.org>2011-08-15 23:45:05 (GMT)
commit50cd6cef925a53dfbbb820ae7343981dcf00f36c (patch)
tree68eb8f5c223488d644cec17dad2224c0aa09bff9 /Source/cmAddExecutableCommand.cxx
parentcbaac2a587d8457b69d832e2c63de8fb755ec64d (diff)
downloadCMake-50cd6cef925a53dfbbb820ae7343981dcf00f36c.zip
CMake-50cd6cef925a53dfbbb820ae7343981dcf00f36c.tar.gz
CMake-50cd6cef925a53dfbbb820ae7343981dcf00f36c.tar.bz2
Move automoc processing from add_executable/library to cmGlobalGenerator
Now automoc is enabled by setting the AUTOMOC target property to true, instead of using the AUTOMOC keyword in add_executable() or add_library() Alex
Diffstat (limited to 'Source/cmAddExecutableCommand.cxx')
-rw-r--r--Source/cmAddExecutableCommand.cxx20
1 files changed, 1 insertions, 19 deletions
diff --git a/Source/cmAddExecutableCommand.cxx b/Source/cmAddExecutableCommand.cxx
index ef75b3b..bac2430 100644
--- a/Source/cmAddExecutableCommand.cxx
+++ b/Source/cmAddExecutableCommand.cxx
@@ -10,7 +10,6 @@
See the License for more information.
============================================================================*/
#include "cmAddExecutableCommand.h"
-#include "cmQtAutomoc.h"
// cmExecutableCommand
bool cmAddExecutableCommand
@@ -30,7 +29,6 @@ bool cmAddExecutableCommand
bool use_macbundle = false;
bool excludeFromAll = false;
bool importTarget = false;
- bool doAutomoc = false;
while ( s != args.end() )
{
if (*s == "WIN32")
@@ -43,11 +41,6 @@ bool cmAddExecutableCommand
++s;
use_macbundle = true;
}
- else if ( *s == "AUTOMOC" )
- {
- ++s;
- doAutomoc = true;
- }
else if(*s == "EXCLUDE_FROM_ALL")
{
++s;
@@ -66,17 +59,12 @@ bool cmAddExecutableCommand
// Special modifiers are not allowed with IMPORTED signature.
if(importTarget
- && (use_win32 || use_macbundle || excludeFromAll || doAutomoc))
+ && (use_win32 || use_macbundle || excludeFromAll))
{
if(use_win32)
{
this->SetError("may not be given WIN32 for an IMPORTED target.");
}
- else if(doAutomoc)
- {
- this->SetError(
- "may not be given AUTOMOC for an IMPORTED target.");
- }
else if(use_macbundle)
{
this->SetError(
@@ -137,11 +125,5 @@ bool cmAddExecutableCommand
tgt->SetProperty("MACOSX_BUNDLE", "ON");
}
- if ( doAutomoc )
- {
- cmQtAutomoc automoc;
- automoc.SetupAutomocTarget(tgt);
- }
-
return true;
}