Skip to content

Commit

Permalink
Fix some cmake python macros
Browse files Browse the repository at this point in the history
Ref: e844f625227a051e8b524956eaf36e2fd9ea39d5
  • Loading branch information
manisandro committed May 8, 2018
1 parent deda2f0 commit 50bc21f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmake/PyQtMacros.cmake
Expand Up @@ -80,7 +80,7 @@ MACRO (PYQT_ADD_RESOURCES outfiles )
SET(_RC_DEPENDS ${_RC_DEPENDS} "${_RC_FILE}")
ENDFOREACH(_RC_FILE)
ADD_CUSTOM_COMMAND(OUTPUT ${outfile}
COMMAND ${PYRCC4_PROGRAM} -name ${outfile} -o ${outfile} ${infile}
COMMAND ${PYRCC4_PROGRAM} -o ${outfile} ${infile}
MAIN_DEPENDENCY ${infile}
DEPENDS ${_RC_DEPENDS})
SET(${outfiles} ${${outfiles}} ${outfile})
Expand Down
4 changes: 2 additions & 2 deletions python/plugins/GdalTools/CMakeLists.txt
Expand Up @@ -2,8 +2,8 @@ FILE(GLOB INSTALLER_FILES *.py)
SET(INSTALLER_FILES ${INSTALLER_FILES})

FILE(GLOB UI_FILES *.ui)
PYQT4_WRAP_UI(PYUI_FILES ${UI_FILES})
PYQT4_ADD_RESOURCES(PYRC_FILES resources.qrc)
PYQT_WRAP_UI(PYUI_FILES ${UI_FILES})
PYQT_ADD_RESOURCES(PYRC_FILES resources.qrc)
#ADD_CUSTOM_TARGET(gdaltools ALL DEPENDS ${PYUI_FILES} ${PYRC_FILES})

SET(INSTALLER_FILES ${INSTALLER_FILES} ${PYUI_FILES} ${PYRC_FILES})
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/GdalTools/tools/CMakeLists.txt
Expand Up @@ -2,7 +2,7 @@ FILE(GLOB PY_FILES *.py)
FILE(GLOB UI_FILES *.ui)
FILE(GLOB COLOR_CONFIG_FILES terrain.txt)

PYQT4_WRAP_UI(PYUI_FILES ${UI_FILES})
PYQT_WRAP_UI(PYUI_FILES ${UI_FILES})

PLUGIN_INSTALL(GdalTools tools ${PY_FILES} ${PYUI_FILES} ${COLOR_CONFIG_FILES})

0 comments on commit 50bc21f

Please sign in to comment.