GET_FILENAME_COMPONENT(PYUIC_ROOT ${PYUIC_ROOT} PATH)
ENDIF(PYUIC_ROOT)
-IF(WINDOWS)
- SET(PYQT_SIPS ${PYUIC_ROOT}/sip)
-ELSE(WINDOWS)
- IF(PYUIC_ROOT STREQUAL /usr)
- SET(PYQT_SIPS ${PYUIC_ROOT}/share/sip/PyQt4)
- ELSE(PYUIC_ROOT STREQUAL /usr)
- SET(PYQT_SIPS ${PYUIC_ROOT}/share/sip)
- ENDIF(PYUIC_ROOT STREQUAL /usr)
-ENDIF(WINDOWS)
+SET(PYQT_SIPS $ENV{PYQT_SIPS})
+IF(NOT PYQT_SIPS)
+ IF(WINDOWS)
+ SET(PYQT_SIPS ${PYUIC_ROOT}/sip)
+ ELSE(WINDOWS)
+ IF(PYUIC_ROOT STREQUAL /usr)
+ SET(PYQT_SIPS ${PYUIC_ROOT}/share/sip/PyQt4)
+ ELSE(PYUIC_ROOT STREQUAL /usr)
+ SET(PYQT_SIPS ${PYUIC_ROOT}/share/sip)
+ ENDIF(PYUIC_ROOT STREQUAL /usr)
+ ENDIF(WINDOWS)
+ENDIF(NOT PYQT_SIPS)
SET(PYQT_INCLUDES -I${PYQT_SIPS})
SET(PYQT_INCLUDES ${PYQT_INCLUDES} -I${PYQT_SIPS}/QtCore -I${PYQT_SIPS}/QtGui)