From 8842a0272b541c0e641c8132070828c3d579d1ea Mon Sep 17 00:00:00 2001 From: Craig Scott Date: Sun, 9 Jul 2017 20:40:34 +1000 Subject: ExternalProject: Improve documentation - Added clearer structure by grouping the options into logical sections. - Expanded the details for many of the options. - Added Examples section to show how to use the various commands. - Specifically highlighted that the contents of SOURCE_DIR may be lost if a download method is also provided. - Updated argument-matching regex to be more robust and account for the varying leading spaces before keywords in the docs. - Updated tests to account for slightly changed error messages. --- Modules/ExternalProject.cmake | 1195 ++++++++++++++------ .../RunCMake/ExternalProject/NoOptions-stderr.txt | 4 +- .../ExternalProject/SourceEmpty-stderr.txt | 4 +- .../ExternalProject/SourceMissing-stderr.txt | 4 +- 4 files changed, 827 insertions(+), 380 deletions(-) diff --git a/Modules/ExternalProject.cmake b/Modules/ExternalProject.cmake index 2495736..d92eb5f 100644 --- a/Modules/ExternalProject.cmake +++ b/Modules/ExternalProject.cmake @@ -5,413 +5,860 @@ ExternalProject --------------- -Create custom targets to build projects in external trees +.. only:: html + + .. contents:: + +External Project Definition +^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. command:: ExternalProject_Add - The ``ExternalProject_Add`` function creates a custom target to drive + The ``ExternalProject_Add()`` function creates a custom target to drive download, update/patch, configure, build, install and test steps of an external project:: - ExternalProject_Add( [