Apache Log4cxx
Version 1.3.0
|
The following code snippets show how to use Log4cxx with various different buildsystems.
Note that we are unable to provide support for all buildsystems that you may be using.
CMake is fully supported for building, as well as any buildsystem that can use pkgconfig
in order to find packages. When using pkgconfig
, the package name is liblog4cxx
.
Add the following to your CMakeLists.txt file:
Add the following to your CMakeLists.txt file:
Add the following to your .pro file:
You probably don't want to do this - it is highly recommended to use a proper buildsystem. However, the following minimal Makefile will build and link an application: