[Xmltools-development] xmltools/src INSTALL CMakeLists.txt
Status: Beta
Brought to you by:
nik_89
|
From: nik_89 <ni...@us...> - 2004-12-26 01:22:25
|
Update of /cvsroot/xmltools/xmltools/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6099 Modified Files: CMakeLists.txt Added Files: INSTALL Log Message: added the file INSTALL : instructions on how to install and compile with xmltools (quality insurance) CMakeLists.txt : added a versionning set that probably don't work. Index: CMakeLists.txt =================================================================== RCS file: /cvsroot/xmltools/xmltools/src/CMakeLists.txt,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** CMakeLists.txt 1 Nov 2004 18:36:57 -0000 1.6 --- CMakeLists.txt 26 Dec 2004 01:22:15 -0000 1.7 *************** *** 4,8 **** SET (XMLTOOLS_SRC nmap.c misc.c xmltool.c mcd.c) ! ADD_DEFINITIONS( -W -g ) # show all errors and warnings and add special infos to be used with gdb # set the directory where to find libraries --- 4,12 ---- SET (XMLTOOLS_SRC nmap.c misc.c xmltool.c mcd.c) ! # set the version define for the project ! SET_TARGET_PROPERTIES(XMLTOOLS_SRC PROPERTIES VERSION "0.5b") ! ! # show all errors and warnings and add special infos to be used with gdb ! ADD_DEFINITIONS( -W -g ) # set the directory where to find libraries *************** *** 18,24 **** # until I decide to fix txml.c to the new functions - # LINK_LIBRARIES (xmltools) - # ADD_EXECUTABLE (test_lib txml.c) --- 22,26 ---- --- NEW FILE: INSTALL --- First of all : Xmltools aims developer users. The Xmltools project uses the Cmake program that is an alternative to autoconf. CMake works on both windows and POSIX OSes while autoconf only works on POSIX OSes. Compiling Xmltools : - download Cmake for your OS, install Cmake and type "cmake ." including the dot. - Now, in the Xmltools directory, when Cmake finished generating the Makefile, type "make" which will compile Xmltools. Result : It will create a shared object .so file and also an include directory. Including the Xmltools library in your project : IMPORTANT : don't forget to also include the libxml2 library in your compiling(the binary to it is included in the include directory). Theres several ways to include Xmltools to your project and I will try to cover as much as possible. - Copy libxmltools.so to /usr/lib or /lib as root and compile with the flags -lxmltools - Have a lib directory in your home directory amd have the -I option point to it. example : -I/home/myuser/lib -lxmltools. I hope that you will find this library useful, the Xmltools team. |