[cmake-developers] add_library(OBJECT) and AUTOMOC

Yury G. Kudryashov urkud.urkud at gmail.com
Fri Jan 11 04:47:20 EST 2013


Hi!

Look at
$ git pull gitorious:~urkud1/cmake/urkud-cmake.git w/automoc-object
please.

It fixes CMAKE_AUTOMOC in the following scenario:

set(CMAKE_AUTOMOC ON)
# test.cpp has '#include "test.moc"' line
add_library(objlib OBJECT test.cpp)

add_executable(foo $<TARGET_OBJECTS:objlib> foo.cpp)

The second commit in the branch updates Tests/QtAutomoc.
-- 
Yury G. Kudryashov,
mailto: urkud at mccme.ru




More information about the cmake-developers mailing list