dept2 / CuteLogger

Logger: simple, convinient and thread safe logger for Qt-based C++ apps
GNU Lesser General Public License v2.1
147 stars 96 forks source link

Qt5 compatibility #13

Open dzhoshkun opened 9 years ago

dzhoshkun commented 9 years ago

Hi there,

I've added some CMake configuration options to make CuteLogger compatible with Qt5 as well, while keeping Qt4 as the default. As such, to use Qt5, specify -D USE_Qt5=ON when building.

I've also added a CMake find file and install options that allow for -D CuteLogger_DIR=/path/to/CuteLoggerConfig.cmake to be used when building other projects that depend on CuteLogger. Now make install installs to ${CMAKE_INSTALL_PREFIX}/include/cutelogger/ and ${CMAKE_INSTALL_PREFIX}/lib/cutelogger/

Thanks for this nice library. I'm using it for thread-safe logging to the console and file.

Cheers, Dzhoshkun