
Hello Pau,
thanks for the good work!
I have downloaded your tar file and tested on my MAC today. Than I changed some points to get it work with current svn sources and dit a little cleanup. I hope you agree ;-))
I did not understand why you are working with static and dynamic libs both? And what do you mean with "make download"? The MIBS should be installed too, but not today by my.
I send you my cmake files only, so you can test if you want. (without PDF file) ck
The current state is good, but no complete.
claus-kleins-macbook-pro:trunk clausklein$ head -20 CMakeLists.txt PROJECT( LIBSMI )
# TODO if bison, flex, diff/gdiff, awk found, generate .c/.h from .y/.l (see configure.in) # TODO CMake-ify "test" directory # TODO "make download" to download MIBs (and PIBs ? ) # TODO Paths in the man pages *.3.cmake - "${CMAKE_PREFIX_PATH}/ include" is not what should go there # TODO Install manpages (partly done) ck # TODO Test on Linux # TODO: lib/CMakeLists.txt generate dump-svg-script.h from dump-svg- script.js if SED_BINARY is found # changelog # Done Generate the .pc file for pkg-config and install it; ck # Done Create FindLibSmi.cmake finder, like the libsmi.m4 for autotools; ck # Done Test on MAC OS X; ck # and install smi.conf-example libsmi.m4 too
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
SET( LIBSMI_MAJOR 0 ) SET( LIBSMI_MINOR 4 ) SET( LIBSMI_PATCHLEVEL 8 ) claus-kleins-macbook-pro:trunk clausklein$
have a look at the log files to see all details.
//regards
Claus --------------------------------------------------------------
claus-kleins-macbook-pro:trunk clausklein$ tail -75 make-install.log [ 94%] Built target smiquery Scanning dependencies of target smixlate [ 96%] Building C object tools/CMakeFiles/smixlate.dir/smixlate.c.o [ 98%] Building C object tools/CMakeFiles/smixlate.dir/dstring.c.o [100%] Building C object tools/CMakeFiles/smixlate.dir/shhopt.c.o Linking C executable smixlate [100%] Built target smixlate Install the project... -- Install configuration: "Release" -- Installing: /tmp/cmake/usr/local/lib/pkgconfig/libsmi.pc -- Installing: /tmp/cmake/opt/local/share/cmake-2.8/Modules/ FindLibSmi.cmake -- Installing: /tmp/cmake/usr/local/etc/smi/smi.conf-example -- Installing: /tmp/cmake/usr/local/share/aclocal/libsmi.m4 -- Installing: /tmp/cmake/usr/local/lib/libsmi.dylib -- Installing: /tmp/cmake/usr/local/include/smi.h -- Installing: /tmp/cmake/usr/local/share/man/man3/lib -- Installing: /tmp/cmake/usr/local/share/man/man3/lib/CMakeFiles -- Installing: /tmp/cmake/usr/local/share/man/man3/lib/CMakeFiles/ smi.dir -- Installing: /tmp/cmake/usr/local/share/man/man3/lib/libsmi.3 -- Installing: /tmp/cmake/usr/local/share/man/man3/lib/smi_attribute.3 -- Installing: /tmp/cmake/usr/local/share/man/man3/lib/smi_class.3 -- Installing: /tmp/cmake/usr/local/share/man/man3/lib/smi_config.3 -- Installing: /tmp/cmake/usr/local/share/man/man3/lib/smi_event.3 -- Installing: /tmp/cmake/usr/local/share/man/man3/lib/smi_identity.3 -- Installing: /tmp/cmake/usr/local/share/man/man3/lib/smi_macro.3 -- Installing: /tmp/cmake/usr/local/share/man/man3/lib/smi_module.3 -- Installing: /tmp/cmake/usr/local/share/man/man3/lib/smi_node.3 -- Installing: /tmp/cmake/usr/local/share/man/man3/lib/smi_render.3 -- Installing: /tmp/cmake/usr/local/share/man/man3/lib/smi_type.3 -- Installing: /tmp/cmake/usr/local/share/man/man3/lib/smi_util.3 -- Installing: /tmp/cmake/usr/local/bin/smiquery -- Installing: /tmp/cmake/usr/local/bin/smilint -- Installing: /tmp/cmake/usr/local/bin/smidump -- Installing: /tmp/cmake/usr/local/bin/smidiff -- Installing: /tmp/cmake/usr/local/bin/smixlate Scanning dependencies of target uninstall -- Uninstalling "/tmp/cmake/usr/local/lib/pkgconfig/libsmi.pc" -- Uninstalling "/tmp/cmake/opt/local/share/cmake-2.8/Modules/ FindLibSmi.cmake" -- Uninstalling "/tmp/cmake/usr/local/etc/smi/smi.conf-example" -- Uninstalling "/tmp/cmake/usr/local/share/aclocal/libsmi.m4" -- Uninstalling "/tmp/cmake/usr/local/lib/libsmi.dylib" -- Uninstalling "/tmp/cmake/usr/local/include/smi.h" -- Uninstalling "/tmp/cmake/usr/local/share/man/man3/lib/libsmi.3" -- Uninstalling "/tmp/cmake/usr/local/share/man/man3/lib/smi_attribute. 3" -- Uninstalling "/tmp/cmake/usr/local/share/man/man3/lib/smi_class.3" -- Uninstalling "/tmp/cmake/usr/local/share/man/man3/lib/smi_config.3" -- Uninstalling "/tmp/cmake/usr/local/share/man/man3/lib/smi_event.3" -- Uninstalling "/tmp/cmake/usr/local/share/man/man3/lib/smi_identity.3" -- Uninstalling "/tmp/cmake/usr/local/share/man/man3/lib/smi_macro.3" -- Uninstalling "/tmp/cmake/usr/local/share/man/man3/lib/smi_module.3" -- Uninstalling "/tmp/cmake/usr/local/share/man/man3/lib/smi_node.3" -- Uninstalling "/tmp/cmake/usr/local/share/man/man3/lib/smi_render.3" -- Uninstalling "/tmp/cmake/usr/local/share/man/man3/lib/smi_type.3" -- Uninstalling "/tmp/cmake/usr/local/share/man/man3/lib/smi_util.3" -- Uninstalling "/tmp/cmake/usr/local/bin/smiquery" -- Uninstalling "/tmp/cmake/usr/local/bin/smilint" -- Uninstalling "/tmp/cmake/usr/local/bin/smidump" -- Uninstalling "/tmp/cmake/usr/local/bin/smidiff" -- Uninstalling "/tmp/cmake/usr/local/bin/smixlate" Built target uninstall prefix=/usr/local exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include
Name: libsmi Description: SMI parser library Requires: Version: .. Libs: -L${libdir} -lsmi Cflags: -I${includedir}
ProductName: Mac OS X ProductVersion: 10.5.8 BuildVersion: 9L30 claus-kleins-macbook-pro:trunk clausklein$
On 30.12.2009, at 01:20, Pau Garcia i Quiles wrote:
Hello,
I've uploaded the full tarball of libsmi late july 2009 + CMake build system to my website. It's not just one CMakeLists.txt but a few CMakeLists.txt and a few parametrized .cmake files, similar to the .in files for autotools. The "TODOs" at the top of the main CMakeLists.txt are probably outdated.
To build it:
- Download and install CMake form http://www.cmake.org or your
favorite distribution 2. Download $ wget http://elpauer.org/tmp/libsmi-latejuly09-cmake.tar.bz2 3. Untar $ tar xf libsmi-latejuly09-cmake.tar.bz2 4. Create build directory for out-of-source build $ mkdir build $ cd build 5. Configure $ cmake ../libsmi-latejuly09-cmake 6. Build $ make