summaryrefslogtreecommitdiff
path: root/muse2/cmake/QtWrapMacros.cmake
diff options
context:
space:
mode:
authorOrcan Ogetbil <oget.fedora@gmail.com>2010-12-20 04:54:36 +0000
committerOrcan Ogetbil <oget.fedora@gmail.com>2010-12-20 04:54:36 +0000
commit673172e3ffb8e345b2bbfb6596ac3d79a1e17f14 (patch)
treed6535f36f0ff55b0f313d5e0aac8823c3fd98161 /muse2/cmake/QtWrapMacros.cmake
parentda484f0563218c2432ee4d6f2eb3ce8c7c298622 (diff)
Major cmake cleanup. Please see the ChangeLog.
Diffstat (limited to 'muse2/cmake/QtWrapMacros.cmake')
-rw-r--r--muse2/cmake/QtWrapMacros.cmake29
1 files changed, 0 insertions, 29 deletions
diff --git a/muse2/cmake/QtWrapMacros.cmake b/muse2/cmake/QtWrapMacros.cmake
deleted file mode 100644
index c2d1cbab..00000000
--- a/muse2/cmake/QtWrapMacros.cmake
+++ /dev/null
@@ -1,29 +0,0 @@
- ## QT4_WRAP_UI3(outfiles inputfile ... )
- ##
- ## Adapted from QT4_WRAP_UI in FindQt4.cmake module, for MusE, by Tim.
- ##
- ##
-
- MACRO (QT4_WRAP_UI3 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_h ${CMAKE_CURRENT_BINARY_DIR}/ui_${outfile}.h)
- SET(outfile_h ${CMAKE_CURRENT_BINARY_DIR}/${outfile}.h)
- SET(outfile_cpp ${CMAKE_CURRENT_BINARY_DIR}/ui_${outfile}.cpp)
- ADD_CUSTOM_COMMAND(OUTPUT ${outfile_h} ${outfile_cpp}
- COMMAND ${QT_UIC3_EXECUTABLE}
- ARGS ${ui_options} -o ${outfile_h} ${infile}
- COMMAND ${QT_UIC3_EXECUTABLE}
- ARGS ${ui_options} -o ${outfile_cpp} -impl ${outfile_h} ${infile}
- COMMAND ${QT_MOC_EXECUTABLE}
- ARGS ${outfile_h} >> ${outfile_cpp}
- MAIN_DEPENDENCY ${infile})
- SET(${outfiles} ${${outfiles}} ${outfile_h} ${outfile_cpp})
- ENDFOREACH (it)
-
- ENDMACRO (QT4_WRAP_UI3)
-
-