MantisBT - CMake
View Issue Details
0010431CMakeModulespublic2010-03-17 17:582016-06-10 14:31
dam 
Clinton Stimpson 
normaltrivialalways
closedmoved 
CMake-2-8 
 
0010431: QT4_ADD_RESOURCES build file in ${CMAKE_CURRENT_BINARY_DIR}
Qt resources files are not build in the correct build directory.
For example if I have a foo project which contains:
- build/
- CMakeLists.txt
- src/
- src/foo/
- src/foo/resources.qrc

the file qrc_resources.cxx will be built in build/ and not in build/src/foo/.
I think the same problem occurs for ui files.

    GET_FILENAME_COMPONENT(outfile ${it} NAME_WE)
    GET_FILENAME_COMPONENT(infile ${it} ABSOLUTE)
  - SET(outfile ${CMAKE_CURRENT_BINARY_DIR}/ui_${outfile}.h)
  + QT4_MAKE_OUTPUT_FILE(${infile} ui_ h outfile)
    ADD_CUSTOM_COMMAND(OUTPUT ${outfile}
No tags attached.
patch qt4_add_resources.patch (654) 2010-03-17 17:58
https://public.kitware.com/Bug/file/2979/qt4_add_resources.patch
Issue History
2010-03-17 17:58damNew Issue
2010-03-17 17:58damFile Added: qt4_add_resources.patch
2010-03-17 18:34Clinton StimpsonStatusnew => assigned
2010-03-17 18:34Clinton StimpsonAssigned To => Clinton Stimpson
2010-03-17 18:35Clinton StimpsonNote Added: 0019948
2010-03-17 18:35Clinton StimpsonStatusassigned => closed
2010-03-17 18:35Clinton StimpsonResolutionopen => fixed
2010-04-08 18:40Clinton StimpsonNote Added: 0020105
2010-04-08 18:40Clinton StimpsonStatusclosed => feedback
2010-04-08 18:40Clinton StimpsonResolutionfixed => reopened
2010-04-08 18:41Clinton StimpsonStatusfeedback => acknowledged
2010-04-20 02:39damNote Added: 0020269
2010-04-20 10:28Clinton StimpsonNote Added: 0020273
2010-04-20 10:36Clinton StimpsonNote Added: 0020274
2012-08-13 23:25Clinton StimpsonStatusacknowledged => backlog
2016-06-10 14:27Kitware RobotNote Added: 0041670
2016-06-10 14:27Kitware RobotStatusbacklog => resolved
2016-06-10 14:27Kitware RobotResolutionreopened => moved
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0019948)
Clinton Stimpson   
2010-03-17 18:35   
Fixed.
(0020105)
Clinton Stimpson   
2010-04-08 18:40   
Need to reopen to rework the patch. It breaks some projects.
(0020269)
dam   
2010-04-20 02:39   
Can you give me some examples so that I can update the patch ?
(0020273)
Clinton Stimpson   
2010-04-20 10:28   
The problem is that some projects broke because of missing include_directories() for the new location the files went into.

I'm thinking maybe we could add an option to control where these generated files go, but leave the default behavior as it has been for a long time.
(0020274)
Clinton Stimpson   
2010-04-20 10:36   
I was thinking of maybe this signature:
QT4_ADD_RESOURCES(outfile inputfile ... OPTIONS ... OUTPUT_DIRECTORY dir)
(0041670)
Kitware Robot   
2016-06-10 14:27   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.