mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
d821feddac
allow injecting extra files into the bintar
10 lines
294 B
CMake
10 lines
294 B
CMake
IF(NOT RPM AND NOT DEB)
|
|
#
|
|
# use -DEXTRA_FILES='/path/to/file=where/to/install;/bin/dd=bin;...'
|
|
#
|
|
FOREACH(f ${EXTRA_FILES})
|
|
STRING(REGEX REPLACE "=.*$" "" from ${f})
|
|
STRING(REGEX REPLACE "^.*=" "" to ${f})
|
|
INSTALL(PROGRAMS ${from} DESTINATION ${to})
|
|
ENDFOREACH()
|
|
ENDIF()
|