diff options
author | Jan Huwald <jh@sotun.de> | 2014-01-27 13:57:37 (GMT) |
---|---|---|
committer | Jan Huwald <jh@sotun.de> | 2016-01-11 12:02:26 (GMT) |
commit | b7bd44ee623b64af25aa8f629ae7e22b00a2142c (patch) | |
tree | 7ca9b1eb7d75323f384e4d3641113f4140c9a3ca /CMakeLists.txt | |
parent | 8e239a6b59d8ff11979ca8557be9b79e2c15f83a (diff) |
Almost all of this code has been created by Stephan Richter
<s.richter@keawe.de>. Only minor changes and this squashed commit have
been prepared by Jan Huwald <jh@sotun.de>.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 37 |
1 files changed, 35 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 87c10be..308c897 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,8 +31,39 @@ tng_get_source_list(TNG_SOURCES TNG_COMPILE_DEFS) tng_set_source_properties(WITH_ZLIB ${ZLIB_FOUND}) -add_library(tng_io ${TNG_SOURCES}) - +SET( hrtc_object_files + src/compression/hrtc/hrtc_wrapper.o + src/compression/hrtc/integer_encoding_library/src/compress/VSE-R.o + src/compression/hrtc/integer_encoding_library/src/compress/VSEncodingBlocksHybrind.o + src/compression/hrtc/integer_encoding_library/src/compress/VSEncodingSimple.o + src/compression/hrtc/integer_encoding_library/src/compress/Simple16.o + src/compression/hrtc/integer_encoding_library/src/compress/VSEncodingRest.o + src/compression/hrtc/integer_encoding_library/src/compress/PForDelta.o + src/compression/hrtc/integer_encoding_library/src/compress/VSEncodingBlocks.o + src/compression/hrtc/integer_encoding_library/src/compress/VariableByte.o + src/compression/hrtc/integer_encoding_library/src/compress/table/decGamma.o + src/compression/hrtc/integer_encoding_library/src/compress/table/decUnary.o + src/compression/hrtc/integer_encoding_library/src/compress/table/decDelta.o + src/compression/hrtc/integer_encoding_library/src/compress/VSEncodingNaive.o + src/compression/hrtc/integer_encoding_library/src/compress/VSEncodingDP.o + src/compression/hrtc/integer_encoding_library/src/compress/Simple9.o + src/compression/hrtc/integer_encoding_library/src/compress/OPTPForDelta.o + src/compression/hrtc/integer_encoding_library/src/interger_encoding.o + src/compression/hrtc/integer_encoding_library/src/io/BitsWriter.o + src/compression/hrtc/integer_encoding_library/src/io/BitsReader.o +) + +SET_SOURCE_FILES_PROPERTIES( + ${hrtc_object_files} + PROPERTIES + EXTERNAL_OBJECT true + # to say that "this is actually an object file, so it should not be compiled, only linked" + # GENERATED true + # to say that "it is OK that the obj-files do not exist before build time" +) + +add_library(tng_io ${TNG_SOURCES} ${hrtc_object_files}) + if (ZLIB_FOUND) list(APPEND EXTRA_LIBRARIES ${ZLIB_LIBRARIES}) include_directories(${ZLIB_INCLUDE_DIRS}) @@ -41,6 +72,8 @@ endif() if (UNIX) list(APPEND EXTRA_LIBRARIES m) endif() + +list(APPEND EXTRA_LIBRARIES stdc++) target_link_libraries(tng_io ${EXTRA_LIBRARIES}) |