IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

qt_generate_moc

Calls moc on an input file.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

qt_generate_moc

 

Synopsis

 
Sélectionnez
qt_generate_moc(src_file dest_file
                [TARGET target])

qt6_generate_moc(src_file dest_file
                [TARGET target])

Description

Creates a rule to call the Meta-Object Compiler (moc) on src_file and store the output in dest_file.

This is a low-level macro. See the CMake AUTOMOC Documentation for a more convenient way to let source files be processed with moc. qt_wrap_cpp is also similar, but automatically generates a temporary file path for you.

Arguments

You can set an explicit TARGET. This will make sure that the target properties INCLUDE_DIRECTORIES and COMPILE_DEFINITIONS are also used when scanning the source files with moc.

Examples

 
Sélectionnez
qt_generate_moc(main.cpp main.moc TARGET myapp)

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+