GET_FILENAME_COMPONENT(SIP_ROOT ${SIP_ROOT} PATH)
ENDIF(SIP_ROOT)
-SET(SIP_INCLUDES -I${SIP_ROOT}/include/python${PYTHON_VERSION})
+IF(WINDOWS)
+ SET(SIP_INCLUDES -I${SIP_ROOT}/include)
+ELSE(WINDOWS)
+ SET(SIP_INCLUDES -I${SIP_ROOT}/include/python${PYTHON_VERSION})
+ENDIF(WINDOWS)
-FIND_PROGRAM(PYUIC_EXECUTABLE pyuic4)
+IF(WINDOWS)
+ FIND_PROGRAM(PYUIC_EXECUTABLE NAMES pyuic4 pyuic4.bat)
+ELSE(WINDOWS)
+ FIND_PROGRAM(PYUIC_EXECUTABLE NAMES pyuic4)
+ENDIF(WINDOWS)
SET(PYUIC_ROOT ${PYUIC_EXECUTABLE})
IF(PYUIC_ROOT)