diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/pystring/CMakeLists.txt | |
Diffstat (limited to 'vcpkg/ports/pystring/CMakeLists.txt')
| -rw-r--r-- | vcpkg/ports/pystring/CMakeLists.txt | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/vcpkg/ports/pystring/CMakeLists.txt b/vcpkg/ports/pystring/CMakeLists.txt new file mode 100644 index 0000000..48df849 --- /dev/null +++ b/vcpkg/ports/pystring/CMakeLists.txt @@ -0,0 +1,31 @@ +cmake_minimum_required(VERSION 3.12) +project(pystring CXX) + +if(MSVC) + add_compile_options(/W3 /wd4005 /wd4996 /wd4018 -D_CRT_SECURE_NO_WARNINGS) +endif() + +add_library(pystring pystring.cpp) +target_include_directories( + pystring + PUBLIC + $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> + $<INSTALL_INTERFACE:include> +) + +include(GNUInstallDirs) + +install( + TARGETS pystring + EXPORT pystring-config +) + +if(NOT DISABLE_INSTALL_HEADERS) + install(FILES pystring.h DESTINATION include/pystring) +endif() + +install( + EXPORT pystring-config + NAMESPACE pystring:: + DESTINATION share/pystring +) |