From 32a00176dac0695ca41ed69a1402d7fa047329a5 Mon Sep 17 00:00:00 2001 From: adam Date: Thu, 14 May 2009 15:31:27 +0000 Subject: [PATCH] Windows port --- adm_local/cmake_files/FindSIPPYQT.cmake | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/adm_local/cmake_files/FindSIPPYQT.cmake b/adm_local/cmake_files/FindSIPPYQT.cmake index 1f4ff9503..126341ea8 100644 --- a/adm_local/cmake_files/FindSIPPYQT.cmake +++ b/adm_local/cmake_files/FindSIPPYQT.cmake @@ -28,9 +28,17 @@ 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}) +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) -- 2.39.2