logging linker configuration (cmake)

Hi developers,

I'm try to use OCL::logging for realtime logger on my components. But I don't found the method to declare correctly the use of the library OCL::logging on the Linker.

I try to use something directly on my CMakeList.txt like:

target_link_libraries(myDriver ${rtt_PACKAGE_PATH}/install/lib/orocos/${OROCOS_TARGET}/ocl/liborocos-ocl-logging-${OROCOS_TARGET}.so)

but the compilation appear with errors:

> make
 
Makefile:7: This Makefile builds this package with default settings
mkdir -p build
cd build ; cmake .. -DINSTALL_PATH=orocos && make
Detected OROCOS_TARGET environment variable. Using: gnulinux
Orocos-RTT found in /media/DATA/orocos-toolchain/install/lib/cmake/orocos-rtt/orocos-rtt-gnulinux-libraries.cmake
-- Found orocos-rtt  for the gnulinux target. Available transports: corba mqueue
-- - Found requested orocos-rtt components: rtt-marshalling rtt-scripting
[UseOrocos] Building package mydriver
[UseOrocos] Building component mydriver in library mydriver-gnulinux
[UseOrocos] Generating package version 1.0 (default version).
-- Configuring done
-- Generating done
-- Build files have been written to: /media/DATA/orocos-toolchain/projects/mydriver/build
make[1]: Entering directory `/media/DATA/orocos-toolchain/projects/mydriver/build'
make[2]: Entering directory `/media/DATA/orocos-toolchain/projects/mydriver/build'
make[3]: Entering directory `/media/DATA/orocos-toolchain/projects/mydriver/build'
make[3]: Leaving directory `/media/DATA/orocos-toolchain/projects/mydriver/build'
make[3]: Entering directory `/media/DATA/orocos-toolchain/projects/mydriver/build'
make[3]: *** No rule to make target `/install/lib/orocos/gnulinux/ocl/liborocos-ocl-logging-gnulinux.so', needed by `mydriver-gnulinux.so'.  Stop.
make[3]: Leaving directory `/media/DATA/orocos-toolchain/projects/mydriver/build'
make[2]: *** [CMakeFiles/mydriver.dir/all] Error 2
make[2]: Leaving directory `/media/DATA/orocos-toolchain/projects/mydriver/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/media/DATA/orocos-toolchain/projects/mydriver/build'
make: *** [all] Error 2

In other hand if I'm not define the link library appear the next error:

...
 
Linking CXX shared library libmydriver-gnulinux.so
CMakeFiles/mydriver.dir/src/mydriver-component.cpp.o: In function `mydriver(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
mydriver-component.cpp:(.text+0x32b): undefined reference to `log4cpp::Category::getInstance(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
mydriver-component.cpp:(.text+0x346): undefined reference to `typeinfo for OCL::logging::Category'
mydriver-component.cpp:(.text+0x350): undefined reference to `typeinfo for log4cpp::Category'
 
...

Any ideas? Thanks in advance, Toni