]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Corrections in Windows MSVC10 environment according to the Linux environment
authorsbh <sergey.belash@opencascade.com>
Wed, 20 Aug 2014 09:34:06 +0000 (13:34 +0400)
committersbh <sergey.belash@opencascade.com>
Wed, 20 Aug 2014 09:34:06 +0000 (13:34 +0400)
CMakeCommon/FindPython.cmake
CMakeCommon/XMLProcessing.cmake
msvc10_env.bat
src/XGUI/CMakeLists.txt

index dc990bfb42a54bcfd4f0d2ebcb329461eba0450d..97f5f26440128c1312e07a4ce0968546b4ebd130 100644 (file)
@@ -8,6 +8,7 @@ IF(WIN32)
 ElSE()
     SET(PYTHON_LIBRARY_FILE "libpython2.7.so")
 ENDIF()
+
 IF(WIN32)
   FILE(TO_CMAKE_PATH "$ENV{PYTHONHOME}/libs/${PYTHON_LIBRARY_FILE}" PYTHON_LIBRARY)
 ElSE()
@@ -19,5 +20,5 @@ FIND_PACKAGE(PythonLibs REQUIRED)
 FIND_PACKAGE(PythonInterp REQUIRED)
 
 INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_DIR})
-MESSAGE(STATUS "PYTHON_LIBRARIES: " ${PYTHON_LIBRARIES})
-MESSAGE(STATUS "PYTHON_INCLUDE_DIR: " ${PYTHON_INCLUDE_DIR})
+#MESSAGE(STATUS "PYTHON_LIBRARIES: " ${PYTHON_LIBRARIES})
+#MESSAGE(STATUS "PYTHON_INCLUDE_DIR: " ${PYTHON_INCLUDE_DIR})
index 3595cbb3335a14b8312caf34a06d4e51ca3a1bb9..9abfef07afcd890ddb6ac7b86018aff433fcc6b2 100644 (file)
@@ -1,28 +1,14 @@
-SET(LIBXMLDIR $ENV{LIBXML_DIR})
 
 IF(WIN32)
-  INCLUDE_DIRECTORIES(${LIBXMLDIR}/include)
+    FILE(TO_CMAKE_PATH $ENV{LIBXML_DIR}/lib/libxml2.lib LIBXML2_LIBRARIES)
+       FILE(TO_CMAKE_PATH $ENV{LIBXML_DIR}/include LIBXML2_INCLUDE_DIR)
 ELSE()
-  INCLUDE_DIRECTORIES(${LIBXMLDIR}/include/libxml2)
-ENDIF(WIN32)
-
-LINK_DIRECTORIES (${LIBXMLDIR}/lib)
-
-IF(WIN32)
-    SET(LIBXML2_LIBRARIES ${LIBXMLDIR}/lib/libxml2.lib)
-    INCLUDE_DIRECTORIES(${LIBXMLDIR}/include/libxml2)
-ELSE()
-    SET(LIBXML2_LIBRARIES ${LIBXMLDIR}/lib/libxml2.so)
-    SET(LIBXML2_INCLUDE_DIR ${LIBXMLDIR}/include/libxml2)
-       FIND_PACKAGE(LibXml2 REQUIRED)
-       if(LIBXML2_FOUND)
-           message(STATUS "Found libxml2 ver. " ${LIBXML2_VERSION_STRING})
-           message(STATUS "LIBXML2_LIBRARIES " ${LIBXML2_LIBRARIES})
-           message(STATUS "LIBXML2_INCLUDE_DIR " ${LIBXML2_INCLUDE_DIR})
-       endif(LIBXML2_FOUND)
-       
-       INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR})
-       ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
+    FILE(TO_CMAKE_PATH $ENV{LIBXML_DIR}/lib/libxml2.so LIBXML2_LIBRARIES)
+       FILE(TO_CMAKE_PATH $ENV{LIBXML_DIR}/include/libxml2 LIBXML2_INCLUDE_DIR)
 ENDIF()
-LINK_DIRECTORIES (${LIBXMLDIR}/lib)
 
+FIND_PACKAGE(LibXml2 REQUIRED)
+
+ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
+INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR})
+LINK_DIRECTORIES (${LIBXML2_LIBRARIES})
index bac9fdbe3242fa3cc85e608338b4207084f9165f..03a087af44c195196912c6cefb45b44f8b8c5031 100644 (file)
@@ -92,7 +92,7 @@ set PATH=%CMAKEDIR%\bin;%PATH%
 @REM PYTHON
 @SET PYTHONHOME=%PDIR%\python-2.7.3
 @SET PYTHON_INCLUDE=%PYTHONHOME%\include
-@SET PATH=%PYTHONHOME%;%PATH%
+@SET PATH=%PYTHONHOME%;%PYTHONHOME%\libs;%PATH%
 @SET PYTHONPATH=%PYTHONHOME%\Lib;%PYTHONPATH%
 @SET PYTHONPATH=%PYTHONHOME%\DLLs;%PYTHONPATH%
 @SET PYTHON_VERSION=2.7
@@ -105,13 +105,9 @@ set PATH=%CMAKEDIR%\bin;%PATH%
 
 @REM -------------------------
 @REM LIBXML2
-@SET LIBXML2_ROOT_DIR=%PDIR%\libxml2-2.9.0
-@REM DO NOT rename following 3 variables, 
-@REM they are required by CMake "find(Libxml2)" procedure
-@SET LIBXML2_INCLUDE_DIR=%LIBXML2_ROOT_DIR%\include\libxml2
-@SET LIBXML2_LIB_DIR=%LIBXML2_ROOT_DIR%\lib
-@SET LIBXML2_BIN_DIR=%LIBXML2_ROOT_DIR%\bin
-@SET PATH=%LIBXML2_BIN_DIR%;%LIBXML2_LIB_DIR%;%PATH%
+@SET LIBXML_DIR=%PDIR%\libxml2-2.9.0
+@SET PATH=%LIBXML_DIR%\lib;%PATH%
+@SET PATH=%LIBXML_DIR%\bin;%PATH%
 @REM -------------------------
 
 @REM -------------------------
index eca046d10873a0841c3b6ada09da6d91085059ac..8c338271acb04d6e41268d22c310fa90d75ceac0 100644 (file)
@@ -81,15 +81,16 @@ SET(TEXT_RESOURCES
 SET(PROJECT_LIBRARIES
     Events
     Config
+       ModelAPI
+       ModuleBase
        ${QT_LIBRARIES}
        ${CAS_VIEWER}
        ${CAS_KERNEL}
+       ${PYTHON_LIBRARIES}
        ${PyConsole}
        ${PyInterp}
        ${suit}
        ${qtx}
-       ModelAPI
-       ModuleBase
 )
 
 IF(WIN32)