aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-12 23:20:21 +0200
committerEgor Tensin <egor@tensin.name>2026-06-12 23:20:21 +0200
commit683609d030ec208277e06bd0a6209112dcc454a0 (patch)
tree298efa0028149cef3ce6bedfe7b0a723a9e49100 /CMakeLists.txt
parentadd scripts to setup git hooks (diff)
downloadwinapi-utf8-683609d030ec208277e06bd0a6209112dcc454a0.tar.gz
winapi-utf8-683609d030ec208277e06bd0a6209112dcc454a0.zip
cmake: move main library code to src/
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt15
1 files changed, 1 insertions, 14 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2d8b301..0cfae03 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -17,20 +17,7 @@ endif()
add_compile_definitions(WIN32_LEAN_AND_MEAN NOMINMAX)
-file(GLOB_RECURSE winapi_utf8_include CONFIGURE_DEPENDS "include/*.hpp")
-file(GLOB winapi_utf8_src CONFIGURE_DEPENDS "src/*.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)
-
+add_subdirectory(src)
if(WINAPI_UTF8_TESTS)
add_subdirectory(test)
endif()