From: unknown Date: Mon, 17 Mar 2014 06:05:35 +0000 (+0400) Subject: Added an example of LIBXML2 processing module with "Plugin" XML files. X-Git-Tag: V_0.1~56 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=14864b6cc3f5aaf9fd95afc1dd1a0605f05b781b;p=modules%2Fshaper.git Added an example of LIBXML2 processing module with "Plugin" XML files. --- diff --git a/CMakeCommon/XMLProcessing.cmake b/CMakeCommon/XMLProcessing.cmake new file mode 100644 index 000000000..114371138 --- /dev/null +++ b/CMakeCommon/XMLProcessing.cmake @@ -0,0 +1,13 @@ +CMAKE_MINIMUM_REQUIRED(VERSION 2.8.11) + +FILE(TO_CMAKE_PATH $ENV{LIBXML2_INCLUDE_DIR} LIBXML2_INCLUDE_DIR) + +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}) diff --git a/env.bat b/env.bat index 60321e5e9..55814d96e 100644 --- a/env.bat +++ b/env.bat @@ -101,7 +101,11 @@ if "%QTDIR%" == "" ( @REM ------------------------- @REM LIBXML2 -@SET PATH=%PDIR%\libxml2-2.9.0\lib;%PATH% +@SET LIBXML2_DIR=%PDIR%\libxml2-2.9.0 +@SET LIBXML2_INCLUDE_DIR=%LIBXML2_DIR%\include\libxml2 +@SET LIBXML2_LIB_DIR=%LIBXML2_DIR%\lib +@SET LIBXML2_BIN_DIR=%LIBXML2_DIR%\bin +@SET PATH=LIBXML2_BIN_DIR;LIBXML2_LIB_DIR;%PATH% @REM ------------------------- @REM ------------------------- diff --git a/src/Config/plugin-PartSet.xml b/src/Config/plugin-PartSet.xml new file mode 100644 index 000000000..feca64bfc --- /dev/null +++ b/src/Config/plugin-PartSet.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/Config/plugins.xml b/src/Config/plugins.xml new file mode 100644 index 000000000..2931524ea --- /dev/null +++ b/src/Config/plugins.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file