mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-21 09:38:06 +08:00
dabfd4e022
* Add tinyutf8 port. * [tinyutf8] Use vcpkg_from_github(). Simplify patch.
30 lines
735 B
Diff
30 lines
735 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 4ec8787..cfea5b3 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -1,7 +1,7 @@
|
|
cmake_minimum_required(VERSION 3.1)
|
|
project(tinyutf8)
|
|
|
|
-set(CMAKE_CXX_STANDARD 11)
|
|
+set(CMAKE_CXX_STANDARD 17)
|
|
|
|
option(TINYUTF8_BUILD_STATIC "Build as static library" On)
|
|
|
|
@@ -14,3 +14,14 @@ endif()
|
|
add_library(tinyutf8 ${LIB_BUILD_TYPE} lib/tinyutf8.cpp)
|
|
|
|
target_include_directories(tinyutf8 PUBLIC include)
|
|
+
|
|
+if(MSVC)
|
|
+ ADD_DEFINITIONS(-D_UNICODE)
|
|
+endif()
|
|
+
|
|
+install(TARGETS tinyutf8
|
|
+ RUNTIME DESTINATION bin
|
|
+ ARCHIVE DESTINATION lib
|
|
+ LIBRARY DESTINATION lib)
|
|
+
|
|
+install(FILES include/tinyutf8.h DESTINATION include)
|
|
\ No newline at end of file
|