summaryrefslogtreecommitdiffhomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-10-01 07:56:47 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-10-01 07:57:35 +0200
commit355ac9296f00eac6dca51fd183f2a0b742729810 (patch)
treee62c344905e81977234255cf1bd8109857697575 /CMakeLists.txt
parente1d3df8a07177ae04948dc6e9b7c4d2af7972b5f (diff)
add tarball target
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fc6fe98a..18486080 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -498,3 +498,12 @@ endif()
if(WIN32)
install(FILES "${CMAKE_SOURCE_DIR}/bin/cleye.config" DESTINATION .)
endif()
+
+string(TIMESTAMP filename-date "%Y%m%d")
+set(filename-ostype ${CMAKE_SYSTEM_NAME})
+set(filename_0 opentrack-build-${filename-ostype}-${filename-date})
+string(TOLOWER "${filename_0}" filename_1)
+set(filename "${CMAKE_BINARY_DIR}/${filename_1}.tar.xz")
+
+add_custom_command(OUTPUT ${filename} COMMAND env sh "${CMAKE_SOURCE_DIR}/make-tar.sh" "${CMAKE_INSTALL_PREFIX}" "${filename}")
+add_custom_target(tarball DEPENDS ${filename})