Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
e4379c51
Commit
e4379c51
authored
Jun 29, 2010
by
Bo Thorsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Install MTR and SQL-bench with CPack and NSIS
parent
3a2e38aa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
2 deletions
+44
-2
CMakeLists.txt
CMakeLists.txt
+44
-2
No files found.
CMakeLists.txt
View file @
e4379c51
...
@@ -365,8 +365,16 @@ SET(CPACK_COMPONENT_SCRIPTS_DESCRIPTION "SQL and Perl scripts to control and mod
...
@@ -365,8 +365,16 @@ SET(CPACK_COMPONENT_SCRIPTS_DESCRIPTION "SQL and Perl scripts to control and mod
SET
(
CPACK_COMPONENT_SCRIPTS_DEPENDS runtime
)
SET
(
CPACK_COMPONENT_SCRIPTS_DEPENDS runtime
)
SET
(
CPACK_COMPONENT_SCRIPTS_GROUP
"Server"
)
SET
(
CPACK_COMPONENT_SCRIPTS_GROUP
"Server"
)
SET
(
CPACK_COMPONENT_SCRIPTS_INSTALL_TYPES Normal Development
)
SET
(
CPACK_COMPONENT_SCRIPTS_INSTALL_TYPES Normal Development
)
# TODO: Add test files
SET
(
CPACK_COMPONENT_MYSQLTEST_DISPLAY_NAME
"MariaDB test suite"
)
# TODO: Add sql-bench
SET
(
CPACK_COMPONENT_MYSQLTEST_DESCRIPTION
"The MariaDB regression test suite."
)
SET
(
CPACK_COMPONENT_MYSQLTEST_DEPENDS runtime
)
SET
(
CPACK_COMPONENT_MYSQLTEST_GROUP
"Testing"
)
SET
(
CPACK_COMPONENT_MYSQLTEST_INSTALL_TYPES Normal Development
)
SET
(
CPACK_COMPONENT_SQLBENCH_DISPLAY_NAME
"SQL Bench"
)
SET
(
CPACK_COMPONENT_SQLBENCH_DESCRIPTION
"The MariaDB benchmark suite."
)
SET
(
CPACK_COMPONENT_SQLBENCH_DEPENDS runtime
)
SET
(
CPACK_COMPONENT_SQLBENCH_GROUP
"Testing"
)
SET
(
CPACK_COMPONENT_SQLBENCH_INSTALL_TYPES Normal Development
)
# Add files to the installer
# Add files to the installer
INSTALL
(
FILES COPYING EXCEPTIONS-CLIENT DESTINATION .
)
INSTALL
(
FILES COPYING EXCEPTIONS-CLIENT DESTINATION .
)
...
@@ -407,6 +415,40 @@ FOREACH(ERRMSGFILE ${share_dirs})
...
@@ -407,6 +415,40 @@ FOREACH(ERRMSGFILE ${share_dirs})
INSTALL
(
FILES
${
ERRMSGFILE
}
DESTINATION share/
${
DIRNAME
}
COMPONENT runtime
)
INSTALL
(
FILES
${
ERRMSGFILE
}
DESTINATION share/
${
DIRNAME
}
COMPONENT runtime
)
ENDFOREACH
(
ERRMSGFILE
${
share_dirs
}
)
ENDFOREACH
(
ERRMSGFILE
${
share_dirs
}
)
# MTR files
FILE
(
GLOB_RECURSE testfiles mysql-test/*
)
FOREACH
(
testfile
${
testfiles
}
)
FILE
(
RELATIVE_PATH dirname
${
PROJECT_SOURCE_DIR
}
${
testfile
}
)
GET_FILENAME_COMPONENT
(
dirname
${
dirname
}
PATH
)
GET_FILENAME_COMPONENT
(
filename
${
testfile
}
NAME
)
GET_FILENAME_COMPONENT
(
ext
${
testfile
}
EXT
)
SET
(
ok
"yes"
)
IF
(
NOT
"x_
${
ext
}
"
STREQUAL
"x_"
)
# Test if this is one of the extensions we don't want to install
STRING
(
TOLOWER
${
ext
}
ext
)
IF
(
${
ext
}
STREQUAL
".dir"
OR
${
ext
}
STREQUAL
".vcproj"
OR
${
ext
}
STREQUAL
".user"
OR
${
ext
}
STREQUAL
".ilk"
OR
${
ext
}
STREQUAL
".idb"
OR
${
ext
}
STREQUAL
".map"
OR
${
ext
}
STREQUAL
".gcov"
OR
${
ext
}
STREQUAL
".supp"
OR
${
ext
}
STREQUAL
".am"
OR
${
ext
}
STREQUAL
".stress"
)
SET
(
ok
"no"
)
ENDIF
()
ENDIF
(
NOT
"x_
${
ext
}
"
STREQUAL
"x_"
)
IF
(
${
ok
}
STREQUAL
"yes"
)
# Message("Dir: ${dirname}. File: ${filename}. Ext: ${ext}")
INSTALL
(
FILES
${
testfile
}
DESTINATION
${
dirname
}
COMPONENT mysqltest
)
ENDIF
(
${
ok
}
STREQUAL
"yes"
)
ENDFOREACH
(
testfile
${
testfiles
}
)
# SQL Bench
FILE
(
GLOB_RECURSE benchfiles sql-bench/*
)
FOREACH
(
testfile
${
testfiles
}
)
FILE
(
RELATIVE_PATH dirname
${
PROJECT_SOURCE_DIR
}
${
testfile
}
)
GET_FILENAME_COMPONENT
(
dirname
${
dirname
}
PATH
)
GET_FILENAME_COMPONENT
(
filename
${
testfile
}
NAME
)
IF
(
NOT
${
dirname
}
STREQUAL
"sql-bench"
OR
${
filename
}
STREQUAL
"README"
)
INSTALL
(
FILES
${
testfile
}
DESTINATION
${
dirname
}
COMPONENT sqlbench
)
ENDIF
()
ENDFOREACH
(
testfile
${
testfiles
}
)
INCLUDE
(
InstallRequiredSystemLibraries
)
INCLUDE
(
InstallRequiredSystemLibraries
)
# This must always be the last line
# This must always be the last line
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment