mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-31 18:19:35 +08:00
add package_html target to create tgz of html
This commit is contained in:
parent
308db3772c
commit
0d01dc073b
@ -17,7 +17,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
cmake_minimum_required(VERSION 3.12)
|
||||
project(fdb
|
||||
project(foundationdb
|
||||
VERSION 6.1.0
|
||||
DESCRIPTION "FoundationDB is a scalable, fault-tolerant, ordered key-value store with full ACID transactions."
|
||||
HOMEPAGE_URL "http://www.foundationdb.org/"
|
||||
|
@ -57,3 +57,11 @@ endfunction()
|
||||
|
||||
message(STATUS "Add html target")
|
||||
add_documentation_target(GENERATOR html)
|
||||
|
||||
set(tar_file ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_PROJECT_NAME}-${CMAKE_PROJECT_VERSION}.tar.gz)
|
||||
add_custom_command(
|
||||
OUTPUT ${tar_file}
|
||||
COMMAND ${CMAKE_COMMAND} -E tar czf ${tar_file} .
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html)
|
||||
add_custom_target(package_html DEPENDS ${tar_file})
|
||||
add_dependencies(package_html html)
|
||||
|
Loading…
x
Reference in New Issue
Block a user