mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-25 16:24:53 +02:00
37 lines
851 B
CMake
37 lines
851 B
CMake
cmake_minimum_required (VERSION 3.10.0)
|
|
project (chdr)
|
|
|
|
set(LZMA_DIR ../libchdr/deps/lzma-24.05/src)
|
|
set(SRC_DIR ../libchdr/src)
|
|
|
|
include_directories(../libchdr/deps/lzma-24.05/include)
|
|
include_directories(../libchdr/include)
|
|
include_directories(../zlib)
|
|
include_directories(../zstd/lib)
|
|
|
|
add_definitions(-DZ7_ST)
|
|
|
|
# Hack - CpuArch.c has a workaround that we reuse.
|
|
add_definitions(-D__SWITCH__)
|
|
|
|
set(ALL_SOURCE_FILES
|
|
${LZMA_DIR}/Alloc.c
|
|
${LZMA_DIR}/Bra.c
|
|
${LZMA_DIR}/Bra86.c
|
|
${LZMA_DIR}/BraIA64.c
|
|
${LZMA_DIR}/CpuArch.c
|
|
${LZMA_DIR}/Delta.c
|
|
${LZMA_DIR}/LzFind.c
|
|
${LZMA_DIR}/LzmaDec.c
|
|
${LZMA_DIR}/LzmaEnc.c
|
|
${LZMA_DIR}/Lzma86Dec.c
|
|
${LZMA_DIR}/Sort.c
|
|
${SRC_DIR}/libchdr_bitstream.c
|
|
${SRC_DIR}/libchdr_cdrom.c
|
|
${SRC_DIR}/libchdr_chd.c
|
|
${SRC_DIR}/libchdr_flac.c
|
|
${SRC_DIR}/libchdr_huffman.c
|
|
)
|
|
|
|
add_library(chdr STATIC ${ALL_SOURCE_FILES})
|