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 <[email protected]> | 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
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Interest mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/interest
