Introduction to Automoc4

Automoc4 is a tool to add rules for generating Qt moc files automatically to projects that use CMake as the buildsystem.

This package is known to build and work properly using an LFS-7.5 platform.

Package Information

Automoc4 Dependencies


CMake- and Qt-4.8.5

User Notes:

Installation of Automoc4

Install automoc4 by running the following commands:

mkdir build &&
cd    build &&

cmake -DCMAKE_INSTALL_PREFIX=$QTDIR -Wno-dev .. &&

Now, as the root user:

make install

Command Explanations

-Wno-dev: Suppress warnings that are meant for the author of the CMakeLists.txt files.


Installed Programs: automoc4
Installed Libraries: none
Installed Directories: none

Short Descriptions


is a utility generating Qt moc files.

Last updated on 2014-02-27 20:59:01 -0800