aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libmspack/CMakeLists.txt
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libmspack/CMakeLists.txt
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libmspack/CMakeLists.txt')
-rw-r--r--vcpkg/ports/libmspack/CMakeLists.txt50
1 files changed, 50 insertions, 0 deletions
diff --git a/vcpkg/ports/libmspack/CMakeLists.txt b/vcpkg/ports/libmspack/CMakeLists.txt
new file mode 100644
index 0000000..fdff795
--- /dev/null
+++ b/vcpkg/ports/libmspack/CMakeLists.txt
@@ -0,0 +1,50 @@
+cmake_minimum_required(VERSION 3.8)
+
+project(libmspack C)
+
+add_definitions(-DHAVE_CONFIG_H)
+
+if(MSVC)
+ add_definitions(-D_CRT_SECURE_NO_DEPRECATE)
+ add_definitions(-D_CRT_NONSTDC_NO_DEPRECATE)
+endif()
+
+# List the source files
+set(LIB_SRC mspack/cabc.c
+ mspack/cabd.c
+ mspack/chmc.c
+ mspack/chmd.c
+ mspack/crc32.c
+ mspack/hlpc.c
+ mspack/hlpd.c
+ mspack/kwajc.c
+ mspack/kwajd.c
+ mspack/litc.c
+ mspack/litd.c
+ mspack/lzssd.c
+ mspack/lzxc.c
+ mspack/lzxd.c
+ mspack/mszipc.c
+ mspack/mszipd.c
+ mspack/oabc.c
+ mspack/oabd.c
+ mspack/qtmd.c
+ mspack/system.c
+ mspack/szddc.c
+ mspack/szddd.c
+)
+
+if(BUILD_SHARED_LIBS)
+ set(LIB_DEF libmspack.def)
+endif()
+
+add_library(libmspack ${LIB_SRC} ${LIB_DEF})
+
+target_include_directories(libmspack PRIVATE . ./mspack)
+
+install(TARGETS libmspack
+ RUNTIME DESTINATION bin
+ LIBRARY DESTINATION lib
+ ARCHIVE DESTINATION lib)
+
+install(FILES mspack/mspack.h DESTINATION include)