]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Windows port
authoradam <adam>
Thu, 14 May 2009 15:31:27 +0000 (15:31 +0000)
committeradam <adam>
Thu, 14 May 2009 15:31:27 +0000 (15:31 +0000)
adm_local/cmake_files/FindSIPPYQT.cmake

index 1f4ff9503333481c05bf34e79b3946528eb2cbf1..126341ea8489bf82c42c2b3ba0b6ecd7f8a7bdd1 100644 (file)
@@ -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)