diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-12 23:20:21 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-12 23:20:21 +0200 |
| commit | 683609d030ec208277e06bd0a6209112dcc454a0 (patch) | |
| tree | 298efa0028149cef3ce6bedfe7b0a723a9e49100 /src | |
| parent | add scripts to setup git hooks (diff) | |
| download | winapi-utf8-683609d030ec208277e06bd0a6209112dcc454a0.tar.gz winapi-utf8-683609d030ec208277e06bd0a6209112dcc454a0.zip | |
cmake: move main library code to src/
Diffstat (limited to 'src')
| -rw-r--r-- | src/CMakeLists.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..df475e7 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,13 @@ +file(GLOB_RECURSE winapi_utf8_include CONFIGURE_DEPENDS "../include/*.hpp") +file(GLOB winapi_utf8_src CONFIGURE_DEPENDS "*.cpp") +add_library(winapi_utf8 ${winapi_utf8_include} ${winapi_utf8_src}) + +target_include_directories(winapi_utf8 PUBLIC ../include) +# Vista is the lower bound (due to WC_ERR_INVALID_CHARS): +if(MINGW) + target_compile_definitions(winapi_utf8 PRIVATE + NTDDI_VERSION=NTDDI_VISTA + _WIN32_WINNT=_WIN32_WINNT_VISTA) +endif() +install(TARGETS winapi_utf8 ARCHIVE DESTINATION lib) +install(DIRECTORY ../include/winapi DESTINATION include) |
