FIND_PROGRAM(SIP_EXECUTABLE sip)
SET(SIP_ROOT ${SIP_EXECUTABLE})
+IF(SIP_ROOT)
GET_FILENAME_COMPONENT(SIP_ROOT ${SIP_ROOT} PATH)
GET_FILENAME_COMPONENT(SIP_ROOT ${SIP_ROOT} PATH)
+ENDIF(SIP_ROOT)
SET(SIP_INCLUDES -I${SIP_ROOT}/include/python${PYTHON_VERSION})
FIND_PROGRAM(PYUIC_EXECUTABLE pyuic4)
SET(PYUIC_ROOT ${PYUIC_EXECUTABLE})
+IF(PYUIC_ROOT)
GET_FILENAME_COMPONENT(PYUIC_ROOT ${PYUIC_ROOT} PATH)
GET_FILENAME_COMPONENT(PYUIC_ROOT ${PYUIC_ROOT} PATH)
+ENDIF(PYUIC_ROOT)
IF(WINDOWS)
SET(PYQT_SIPS ${PYUIC_ROOT}/sip)