Installing the library is simple. Simply include all source files and compile them statically into your project.
Alternatively, you can use the provided CMakeLists.txt
file and compile it as a library from there.
Exporting out of DLL boundaries
If you want to export the symbols of the library out of a DLL, simply define the UVK_LOG_EXPORT_FROM_LIBRARY
macro. Then when building the library, make sure the macro UVK_LIB_COMPILE
is enabled.
Users of CMake will have that enabled by default.
Enabling UTF-8 support
Even though this library claims to be fully Unicode compatible, it's only if Unicode is enabled. To enable Unicode support, define the UCLI_COMPILE_WITH_UTF_SUPPORT
macro and if not added already, compile the ThirdParty/utfcpp
library. Make sure to also provide include directories in such way, as to have #include "utf8.h"
be a valid directive.
Users of CMake can enable unicode support using the WITH_UTF8
option.