summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2013-02-06 09:06:02 +0000
committerJosé Fonseca <jfonseca@vmware.com>2013-02-06 09:09:04 +0000
commitf232fa4d65b50d33f3e2c7721564e8ef57208880 (patch)
tree9dfd24e930552b95abfa57cbc2de274716ac21a6 /cmake
parent42a80f99c27f0d4dee6480ae2011ec364f2ccd04 (diff)
cmake: Allow to generate a tarball/zip with the binaries, scripts, data.
It doesn't make much sense to package piglit or install on machines, due to the frequency piglit tests are added/changed. However, binary packages are still useful for distributed testing where the binaries are built on one machine, and then passed to (sometimes other teams) for the actual testing. This patch allows one to conveniently generate such packages, simply by doing make package Then one can run piglit by unpacking the package elsewhere, set the PIGLIT_SOURCE_DIR and LD_LIBRARY_PATH accordingly, and run piglit scripts as usual. Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/piglit_util.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/piglit_util.cmake b/cmake/piglit_util.cmake
index 382485bff..3a45e8a7d 100644
--- a/cmake/piglit_util.cmake
+++ b/cmake/piglit_util.cmake
@@ -62,6 +62,8 @@ function(piglit_add_executable name)
add_executable(${name} ${ARGV})
add_dependencies(${name} piglit_dispatch_gen)
+ install(TARGETS ${name} DESTINATION bin)
+
endfunction(piglit_add_executable)
#
@@ -79,6 +81,7 @@ function(piglit_add_library name)
add_library(${name} ${ARGV})
else(WIN32)
add_library(${name} SHARED ${ARGV})
+ install(TARGETS ${name} DESTINATION lib)
endif(WIN32)
add_dependencies(${name} piglit_dispatch_gen)