This is working, but hardcoding the include directories cannot be the right way to go. There is variable called utf8cpp_DIR which is set to /usr/share/utf8cpp/cmake. This directory includes 3 files which contain CMake rules, but I am not able to figure out how to use it.
I kindly ask to drop some lines about how to use CMake to build a project which uses UTF8CPP in the documentation.
Maybe my issue sounds quite stupid, but I am struggling to get UTF8CPP working with CMake. In the file
CMakeLists.txt
, I added these two lines:Then I can use
This is working, but hardcoding the include directories cannot be the right way to go. There is variable called
utf8cpp_DIR
which is set to/usr/share/utf8cpp/cmake
. This directory includes 3 files which contain CMake rules, but I am not able to figure out how to use it.I kindly ask to drop some lines about how to use CMake to build a project which uses UTF8CPP in the documentation.