blob: 8bb0220aa729f5e3b8d56413d990900112c04b17 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
set(source_files bwlzh.c bwt.c coder.c dict.c fixpoint.c huffman.c huffmem.c lz77.c merge_sort.c mtf.c rle.c tng_compress.c vals16.c warnmalloc.c widemuldiv.c xtc2.c xtc3.c)
add_library(tng_compress ${source_files})
# Append the required library dependencies
if(UNIX)
target_link_libraries(tng_compress m)
endif()
# Use GNUInstallDirst to set paths on multiarch systems
include(GNUInstallDirs)
install(TARGETS tng_compress
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
|