Integrate UTF8-CPP into CMake

This commit is contained in:
Alexander A. Klimov 2019-03-14 09:32:09 +01:00
parent dd15f33c17
commit 85c0d2c2cc
2 changed files with 11 additions and 0 deletions

View File

@ -153,6 +153,10 @@ else()
list(APPEND base_DEPS ${YAJL_LIBRARIES})
endif()
# UTF8CPP
find_package(UTF8CPP)
include_directories(${UTF8CPP_INCLUDE})
find_package(Editline)
set(HAVE_EDITLINE "${EDITLINE_FOUND}")

7
cmake/FindUTF8CPP.cmake Normal file
View File

@ -0,0 +1,7 @@
FIND_PATH (UTF8CPP_INCLUDE utf8.h HINTS "${PROJECT_SOURCE_DIR}/third-party/utf8cpp/source")
if (UTF8CPP_INCLUDE)
message(STATUS "Found UTF8CPP: ${UTF8CPP_INCLUDE}" )
else ()
message(FATAL_ERROR "Unable to include utf8.h")
endif ()