[CMake] XCode generator bug?
Karl Merkley
karl at elemtech.com
Fri May 13 10:12:04 EDT 2005
I'm still playing around with the XCode generator to see if I can get
to work with my complex project. I'm getting close but still having
problems.
I have a set of directories with files
group/groupwebcutform.ui geom/webcutform.ui
However, when I run the FindQt.cmake macro to process these files I am
missing one of the build steps for one of them.
all: \
/Users/kgmerk/projects/junk/webcut/groupwebcutform.cxx\
/Users/kgmerk/projects/junk/webcut/moc_groupwebcutform.cxx\
/Users/kgmerk/projects/junk/webcut/moc_webcutform.cxx\
/Users/kgmerk/projects/junk/webcut/groupwebcutform.h\
/Users/kgmerk/projects/junk/webcut/webcutform.h
There should also be a rule for
/Users/kgmerk/projects/junk/webcut/webcutform.cxx\
but it is missing. If I change the name from webcutform.ui to junk.ui,
there is a rule generated for junk.cxx.
Is this a known issue? I think I have a simple case that I can submit
as a bug.
=====================
# the project
PROJECT(MYGUI)
SET(GUI_LIB_NAME libmygui.dylib)
INCLUDE(${CMAKE_ROOT}/Modules/FindQt.cmake)
# ui files
SET(QT_UIS group/groupwebcutform.ui)
SET(GEOM_UIS geom/webcutform.ui)
SET(QT_UIHS group/groupwebcutform.ui.h)
SET(GEOM_UIHS geom/webcutform.ui.h)
SET(QT_UIS ${QT_UIS} ${GEOM_UIS} ${MESH_UIS})
SET(QT_UIHS ${QT_UIHS} ${GEOM_UIHS} ${MESH_UIHS})
QT_WRAP_UI(${GUI_LIB_NAME} QT_UI_H_SRCS QT_UI_SRCS ${QT_UIS})
# Supporting libs.
ADD_LIBRARY(${GUI_LIB_NAME} SHARED ${SOURCES} ${QT_UI_SRCS}
${QT_MOC_SRCS} ${HEADERS})
TARGET_LINK_LIBRARIES(${GUI_LIB_NAME} ${QT_LIBRARIES})
More information about the CMake
mailing list