[Interest] project structure and moc headers
Stephen Kelly
stephen.kelly at kdab.com
Wed Dec 12 15:04:55 CET 2012
On Wednesday, December 12, 2012 13:44:34 Witold E Wolski wrote:
> Hi,
>
> Would like to place my header file in dir called
> include/
> while place the cpp's in a directory called
> src/
>
> Now I am wondering what to do with headers which contain QT macros from
> which moc will generate cpps.
> Would it be possible to tell moc to move these file into the src branch ( I
> am using cmake QT4_WRAP_CPP) macro.
For more convenience, use CMake 2.8.6 or later and use the automoc feature.
find_package(Qt4 REQUIRED)
set(CMAKE_AUTOMOC ON)
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/include" ${QT_INCLUDES})
add_library(lll src/klass.cpp)
Thanks,
--
Stephen Kelly <stephen.kelly at kdab.com> | Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
www.kdab.com || Germany +49-30-521325470 || Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-Independent Software Solutions
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20121212/f7253ecd/attachment.sig>
More information about the Interest
mailing list