summaryrefslogtreecommitdiff
path: root/src/compression/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/compression/CMakeLists.txt')
-rw-r--r--src/compression/CMakeLists.txt11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/compression/CMakeLists.txt b/src/compression/CMakeLists.txt
index 267a45a..3efd6bb 100644
--- a/src/compression/CMakeLists.txt
+++ b/src/compression/CMakeLists.txt
@@ -1,11 +1,12 @@
-add_library(tng_compress 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)
+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)
+ target_link_libraries(tng_compress m)
endif()
-set_property(TARGET tng_compress PROPERTY LIBRARY_OUTPUT_DIRECTORY ${CMAKE_LIBRARY_OUTPUT_DIRECTORY})
-set_property(TARGET tng_compress PROPERTY ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_LIBRARY_OUTPUT_DIRECTORY})
-
install(TARGETS tng_compress
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)
contact: Jan Huwald // Impressum