|
@@ -10,7 +10,6 @@
|
|
See the License for more information.
|
|
See the License for more information.
|
|
============================================================================*/
|
|
============================================================================*/
|
|
#include "cmAddExecutableCommand.h"
|
|
#include "cmAddExecutableCommand.h"
|
|
-#include "cmQtAutomoc.h"
|
|
|
|
|
|
|
|
// cmExecutableCommand
|
|
// cmExecutableCommand
|
|
bool cmAddExecutableCommand
|
|
bool cmAddExecutableCommand
|
|
@@ -30,7 +29,6 @@ bool cmAddExecutableCommand
|
|
bool use_macbundle = false;
|
|
bool use_macbundle = false;
|
|
bool excludeFromAll = false;
|
|
bool excludeFromAll = false;
|
|
bool importTarget = false;
|
|
bool importTarget = false;
|
|
- bool doAutomoc = false;
|
|
|
|
while ( s != args.end() )
|
|
while ( s != args.end() )
|
|
{
|
|
{
|
|
if (*s == "WIN32")
|
|
if (*s == "WIN32")
|
|
@@ -43,11 +41,6 @@ bool cmAddExecutableCommand
|
|
++s;
|
|
++s;
|
|
use_macbundle = true;
|
|
use_macbundle = true;
|
|
}
|
|
}
|
|
- else if ( *s == "AUTOMOC" )
|
|
|
|
- {
|
|
|
|
- ++s;
|
|
|
|
- doAutomoc = true;
|
|
|
|
- }
|
|
|
|
else if(*s == "EXCLUDE_FROM_ALL")
|
|
else if(*s == "EXCLUDE_FROM_ALL")
|
|
{
|
|
{
|
|
++s;
|
|
++s;
|
|
@@ -66,17 +59,12 @@ bool cmAddExecutableCommand
|
|
|
|
|
|
// Special modifiers are not allowed with IMPORTED signature.
|
|
// Special modifiers are not allowed with IMPORTED signature.
|
|
if(importTarget
|
|
if(importTarget
|
|
- && (use_win32 || use_macbundle || excludeFromAll || doAutomoc))
|
|
|
|
|
|
+ && (use_win32 || use_macbundle || excludeFromAll))
|
|
{
|
|
{
|
|
if(use_win32)
|
|
if(use_win32)
|
|
{
|
|
{
|
|
this->SetError("may not be given WIN32 for an IMPORTED target.");
|
|
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)
|
|
else if(use_macbundle)
|
|
{
|
|
{
|
|
this->SetError(
|
|
this->SetError(
|
|
@@ -137,11 +125,5 @@ bool cmAddExecutableCommand
|
|
tgt->SetProperty("MACOSX_BUNDLE", "ON");
|
|
tgt->SetProperty("MACOSX_BUNDLE", "ON");
|
|
}
|
|
}
|
|
|
|
|
|
- if ( doAutomoc )
|
|
|
|
- {
|
|
|
|
- cmQtAutomoc automoc;
|
|
|
|
- automoc.SetupAutomocTarget(tgt);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|