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/modp-base64/CMakeLists.txt | |
Diffstat (limited to 'vcpkg/ports/modp-base64/CMakeLists.txt')
| -rw-r--r-- | vcpkg/ports/modp-base64/CMakeLists.txt | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/vcpkg/ports/modp-base64/CMakeLists.txt b/vcpkg/ports/modp-base64/CMakeLists.txt new file mode 100644 index 0000000..ddc02e3 --- /dev/null +++ b/vcpkg/ports/modp-base64/CMakeLists.txt @@ -0,0 +1,30 @@ +cmake_minimum_required(VERSION 3.8)
+project(libmodpbase64 C)
+
+if(MSVC)
+ add_compile_options(/wd4005 /wd4996 /wd4018 -D_CRT_SECURE_NO_WARNINGS)
+endif()
+
+configure_file(config.h.cmake config.h @ONLY)
+
+include_directories(. ${SOURCE_PATH}/src ${CMAKE_CURRENT_BINARY_DIR})
+
+add_library(libmodpbase64 ${SOURCE_PATH}/src/modp_b64.c libmodpbase64.def)
+
+install(
+ TARGETS libmodpbase64
+ RUNTIME DESTINATION bin
+ LIBRARY DESTINATION lib
+ ARCHIVE DESTINATION lib
+)
+
+if(NOT DISABLE_INSTALL_HEADERS)
+ install(
+ FILES
+ "${SOURCE_PATH}/src/extern_c_begin.h"
+ "${SOURCE_PATH}/src/extern_c_end.h"
+ "${SOURCE_PATH}/src/modp_b64.h"
+ "${SOURCE_PATH}/src/modp_stdint.h"
+ DESTINATION include
+ )
+endif()
|