- Timestamp:
- Jul 30, 2013, 4:47:01 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0-beta1/cmake/PacpusUtilities.cmake
r135 r139 11 11 ## Qt macro compatibility Qt4 / Qt5 12 12 ## ======================================== 13 function(qt_wrap_cpp OUT_MOC_SRCS FILES_TO_MOC) 13 function(qt_wrap_cpp OUT_MOC_SRCS) 14 set(FILES_TO_MOC ${ARGN}) 14 15 if(QT4_FOUND) 15 16 qt4_wrap_cpp(MOC_SRCS ${FILES_TO_MOC}) … … 17 18 qt5_wrap_cpp(MOC_SRCS ${FILES_TO_MOC}) 18 19 else() 19 message(WARNING "QT not found, can 't wrap moc File")20 message(WARNING "QT not found, cannot wrap moc files") 20 21 endif() 21 22 … … 26 27 ## Qt macro compatibility Qt4 / Qt5 27 28 ## ======================================== 28 function(qt_wrap_ui OUT_UI_SRCS UI_FILES) 29 function(qt_wrap_ui OUT_UI_SRCS) 30 set(UI_FILES ${ARGN}) 29 31 if(QT4_FOUND) 30 32 qt4_wrap_ui( UI_SRCS ${UI_FILES}) … … 32 34 qt5_wrap_ui( UI_SRCS ${UI_FILES}) 33 35 else() 34 message(WARNING "QT not found, can 't wrap ui File")36 message(WARNING "QT not found, cannot wrap ui files") 35 37 endif() 36 38 37 39 set(${OUT_UI_SRCS} ${UI_SRCS} PARENT_SCOPE) 40 endfunction() 41 42 ## ======================================== 43 ## Qt macro compatibility Qt4 / Qt5 44 ## ======================================== 45 function(qt_add_resources OUT_RESOURCES) 46 set(RCS_FILES ${ARGN}) 47 if(QT4_FOUND) 48 qt4_add_resources( RESOURCES ${RCS_FILES}) 49 elseif(Qt5Core_FOUND) 50 qt5_add_resources( RESOURCES ${RCS_FILES}) 51 else() 52 message(WARNING "QT not found, cannot add resources") 53 endif() 54 55 set(${OUT_RESOURCES} ${RESOURCES} PARENT_SCOPE) 38 56 endfunction() 39 57
Note:
See TracChangeset
for help on using the changeset viewer.