包下载网址:
Index of /dist/logging/log4cxx/1.2.0
或者
操作网址:
Apache Log4cxx: Building with CMake
linux安装:
$ apt-get install build-essential libapr1-dev libaprutil1-dev gzip zip
$ cd apache-Log4cxx-x.x.x
$ mkdir build
$ cd build
$ cmake ..
$ make
$ sudo make install
cmakelist引用
find_package(log4cxx 0.11)
add_executable(myApplication myMain.cpp)
target_include_directories(myApplication PRIVATE $<TARGET_PROPERTY:log4cxx,INTERFACE_INCLUDE_DIRECTORIES>)
target_link_libraries( myApplication PRIVATE log4cxx)