summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMagnus Lundborg <lundborg.magnus@gmail.com>2013-10-29 09:17:44 (GMT)
committerMagnus Lundborg <lundborg.magnus@gmail.com>2013-10-29 09:17:44 (GMT)
commit579bb87f55df8a82bc699e9ac0a8952f963065ac (patch)
tree78f263e71a5f62e51df37fb6c1ab18299fb2e1b7 /src
parent4fc6d67feb4f178dec68b4fbba0f21944cbb4150 (diff)
Added install support.
Diffstat (limited to 'src')
-rw-r--r--src/compression/CMakeLists.txt6
-rw-r--r--src/lib/CMakeLists.txt5
2 files changed, 11 insertions, 0 deletions
diff --git a/src/compression/CMakeLists.txt b/src/compression/CMakeLists.txt
index 91155e0..171d2b3 100644
--- a/src/compression/CMakeLists.txt
+++ b/src/compression/CMakeLists.txt
@@ -2,3 +2,9 @@ add_library(tng_compress bwlzh.c bwt.c coder.c dict.c fixpoint.c huffman.c huffm
if(UNIX)
target_link_libraries(tng_compress m)
endif()
+
+set_property(TARGET tng_compress PROPERTY LIBRARY_OUTPUT_DIRECTORY ${CMAKE_LIBRARY_OUTPUT_DIRECTORY})
+
+install(TARGETS tng_compress
+ LIBRARY DESTINATION lib
+ ARCHIVE DESTINATION lib)
diff --git a/src/lib/CMakeLists.txt b/src/lib/CMakeLists.txt
index b1378ec..ade6ea8 100644
--- a/src/lib/CMakeLists.txt
+++ b/src/lib/CMakeLists.txt
@@ -4,6 +4,11 @@ else()
add_library(tng_io tng_io.c md5.c)
endif()
+set_property(TARGET tng_io PROPERTY LIBRARY_OUTPUT_DIRECTORY ${CMAKE_LIBRARY_OUTPUT_DIRECTORY})
+
+install(TARGETS tng_io
+ LIBRARY DESTINATION lib
+ ARCHIVE DESTINATION lib)
if(HAVE_INTTYPES_H)
set_property(TARGET tng_io APPEND PROPERTY COMPILE_DEFINITIONS USE_STD_INTTYPES_H)
contact: Jan Huwald // Impressum