summaryrefslogtreecommitdiff
path: root/source/luametatex/cmake/xzembedded.cmake
blob: ab49d7d97f445300cf415b01e8b6701f183a96e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
set(xzembedded_sources
    source/libraries/xzembedded/xz_crc32.c
    source/libraries/xzembedded/xz_crc64.c
    source/libraries/xzembedded/xz_dec_lzma2.c
    source/libraries/xzembedded/xz_dec_stream.c
)

add_library(xzembedded STATIC ${xzembedded_sources})

target_include_directories(xzembedded PUBLIC
    utilities
    source/libraries/xzembedded
)

# target_compile_definitions(xzembedded PUBLIC
#     XZ_USE_CRC64
#     XZ_DEC_CONCATENATED
# )

if (NOT MSVC)
    target_compile_options(xzembedded PRIVATE
        -Wno-cast-align
        -Wno-cast-qual
    )
endif (NOT MSVC)