]> gerrit.simantics Code Review - simantics/fmil.git/blobdiff - org.simantics.fmil.core/native/FMILibrary/ThirdParty/Expat/expat-2.1.0/CMake.README
Add FMILibrary-2.0.3 to org.simantics.fmil.core\native.
[simantics/fmil.git] / org.simantics.fmil.core / native / FMILibrary / ThirdParty / Expat / expat-2.1.0 / CMake.README
diff --git a/org.simantics.fmil.core/native/FMILibrary/ThirdParty/Expat/expat-2.1.0/CMake.README b/org.simantics.fmil.core/native/FMILibrary/ThirdParty/Expat/expat-2.1.0/CMake.README
new file mode 100644 (file)
index 0000000..4db6399
--- /dev/null
@@ -0,0 +1,42 @@
+== How to build expat with cmake (experimental) ==\r
+\r
+The cmake based buildsystem for expat works on Windows (cygwin, mingw, Visual \r
+Studio) and should work on all other platform cmake supports.\r
+\r
+Assuming ~/expat-2.1.0 is the source directory of expat, add a subdirectory\r
+build and change into that directory:\r
+~/expat-2.1.0$ mkdir build && cd build\r
+~/expat-2.1.0/build$\r
+\r
+From that directory, call cmake first, then call make, make test and \r
+make install in the usual way:\r
+~/expat-2.1.0/build$ cmake ..\r
+-- The C compiler identification is GNU\r
+-- The CXX compiler identification is GNU\r
+....\r
+-- Configuring done\r
+-- Generating done\r
+-- Build files have been written to: /home/patrick/expat-2.1.0/build\r
+\r
+If you want to specify the install location for your files, append \r
+-DCMAKE_INSTALL_PREFIX=/your/install/path to the cmake call.\r
+\r
+~/expat-2.1.0/build$ make && make test && make install\r
+Scanning dependencies of target expat\r
+[  5%] Building C object CMakeFiles/expat.dir/lib/xmlparse.c.o\r
+[ 11%] Building C object CMakeFiles/expat.dir/lib/xmlrole.c.o\r
+....\r
+-- Installing: /usr/local/lib/pkgconfig/expat.pc\r
+-- Installing: /usr/local/bin/xmlwf\r
+-- Installing: /usr/local/share/man/man1/xmlwf.1\r
+\r
+For Windows builds, you must make sure to call cmake from an environment where \r
+your compiler is reachable, that means either you call it from the \r
+Visual Studio Command Prompt or when using mingw, you must open a cmd.exe and\r
+make sure that gcc can be called. On Windows, you also might want to specify a \r
+special Generator for CMake:\r
+for Visual Studio builds do: \r
+cmake .. -G "Visual Studio 10" && vcexpress expat.sln\r
+for mingw builds do: \r
+cmake .. -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=D:\expat-install \r
+    && gmake && gmake install\r