MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0014760 | CMake | (No Category) | public | 2014-02-17 10:54 | 2016-06-10 14:31 |
| Reporter | Mathieu Malaterre | ||||
| Assigned To | Kitware Robot | ||||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | closed | Resolution | moved | ||
| Platform | OS | OS Version | |||
| Product Version | CMake 2.8.9 | ||||
| Target Version | Fixed in Version | ||||
| Summary | 0014760: Specify output dir for QT4_WRAP_UI | ||||
| Description | It would be nice to have an option to specify an output dir for QT4_WRAP_UI. This way it would be easier to port QMake -> CMake application. Eg. QMake input: [...] UI_DIR = UI/AutoGen FORMS += UI/UI/BrowseData.ui [...] Here is a suggestion for enhancement: Change current macro into: macro (QT4_WRAP_UI outfiles ) QT4_EXTRACT_OPTIONS(ui_files ui_options ${ARGN}) foreach (it ${ui_files}) get_filename_component(outfile ${it} NAME_WE) get_filename_component(infile ${it} ABSOLUTE) set(outfile ${CMAKE_CURRENT_BINARY_DIR}/${QT4_WRAP_UI_DIR}/ui_${outfile}.h) add_custom_command(OUTPUT ${outfile} COMMAND ${QT_UIC_EXECUTABLE} ARGS ${ui_options} -o ${outfile} ${infile} MAIN_DEPENDENCY ${infile} VERBATIM) set(${outfiles} ${${outfiles}} ${outfile}) endforeach () endmacro () Typical usage: set(QT4_WRAP_UI_DIR UI/AutoGen ) file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${QT4_WRAP_UI_DIR}) QT4_WRAP_UI(myproject_FORMS_HEADERS ${myproject_FORMS}) | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2014-02-17 10:54 | Mathieu Malaterre | New Issue | |||
| 2014-02-17 10:57 | Brad King | Note Added: 0035129 | |||
| 2014-02-17 11:00 | Mathieu Malaterre | Note Added: 0035131 | |||
| 2014-02-17 11:29 | Stephen Kelly | Note Added: 0035133 | |||
| 2016-06-10 14:29 | Kitware Robot | Note Added: 0042490 | |||
| 2016-06-10 14:29 | Kitware Robot | Status | new => resolved | ||
| 2016-06-10 14:29 | Kitware Robot | Resolution | open => moved | ||
| 2016-06-10 14:29 | Kitware Robot | Assigned To | => Kitware Robot | ||
| 2016-06-10 14:31 | Kitware Robot | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||