Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ if(MSVC)
target_compile_definitions(ebml PRIVATE _CRT_SECURE_NO_WARNINGS)
endif()

add_subdirectory(src/lib/utf8-cpp)
target_link_libraries(ebml PRIVATE $<BUILD_INTERFACE:utf8-cpp>)

include(GenerateExportHeader)
generate_export_header(ebml EXPORT_MACRO_NAME EBML_DLL_API)
target_sources(ebml
Expand Down
2 changes: 1 addition & 1 deletion src/EbmlUnicodeString.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

#include "ebml/EbmlUnicodeString.h"

#include "lib/utf8-cpp/source/utf8/checked.h"
#include <utf8/checked.h>

namespace libebml {

Expand Down
10 changes: 10 additions & 0 deletions src/lib/utf8-cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
add_library(utf8-cpp INTERFACE)

target_include_directories(utf8-cpp INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/source)
target_sources(utf8-cpp INTERFACE
${CMAKE_CURRENT_SOURCE_DIR}/source/utf8/checked.h
${CMAKE_CURRENT_SOURCE_DIR}/source/utf8/core.h
${CMAKE_CURRENT_SOURCE_DIR}/source/utf8/cpp11.h
${CMAKE_CURRENT_SOURCE_DIR}/source/utf8/cpp17.h
${CMAKE_CURRENT_SOURCE_DIR}/source/utf8/checked.h
)