summaryrefslogtreecommitdiff
path: root/cmake/install_macros.cmake
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2013-11-27 21:58:47 +0100
committerSergei Golubchik <sergii@pisem.net>2013-11-27 21:58:47 +0100
commitb16e67fd9cf5c6fe0d3e599b5177046699bd6bce (patch)
treee5dc3e814ddce6c26d1f16a862ac052cd3266170 /cmake/install_macros.cmake
parentc2839e2cf2617005d06d9bb14b98d70e2d905225 (diff)
downloadmariadb-git-b16e67fd9cf5c6fe0d3e599b5177046699bd6bce.tar.gz
install and package plugin suites.
Diffstat (limited to 'cmake/install_macros.cmake')
-rw-r--r--cmake/install_macros.cmake24
1 files changed, 24 insertions, 0 deletions
diff --git a/cmake/install_macros.cmake b/cmake/install_macros.cmake
index 9f4148342a7..f2e474395dc 100644
--- a/cmake/install_macros.cmake
+++ b/cmake/install_macros.cmake
@@ -376,3 +376,27 @@ FUNCTION(INSTALL_DEBUG_TARGET target)
ENDIF()
ENDFUNCTION()
+
+FUNCTION(INSTALL_MYSQL_TEST from to)
+ IF(INSTALL_MYSQLTESTDIR)
+ INSTALL(
+ DIRECTORY ${from}
+ DESTINATION "${INSTALL_MYSQLTESTDIR}/${to}"
+ USE_SOURCE_PERMISSIONS
+ COMPONENT Test
+ PATTERN "var/" EXCLUDE
+ PATTERN "lib/My/SafeProcess" EXCLUDE
+ PATTERN "lib/t*" EXCLUDE
+ PATTERN "CPack" EXCLUDE
+ PATTERN "CMake*" EXCLUDE
+ PATTERN "mtr.out*" EXCLUDE
+ PATTERN ".cvsignore" EXCLUDE
+ PATTERN "*.am" EXCLUDE
+ PATTERN "*.in" EXCLUDE
+ PATTERN "*.vcxproj" EXCLUDE
+ PATTERN "*.vcxproj.filters" EXCLUDE
+ PATTERN "*.vcxproj.user" EXCLUDE
+ PATTERN "CTest" EXCLUDE
+ )
+ ENDIF()
+ENDFUNCTION()