summaryrefslogtreecommitdiffstats
path: root/Tests/CustomCommandByproducts/External
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-11-14 00:26:36 (GMT)
committerBrad King <brad.king@kitware.com>2014-11-17 14:36:42 (GMT)
commit557aef0b94c86d13e802e6e8e34a491304d7be2f (patch)
treea05394a276ea8c490cee08c0e1d38d5b207f1b6e /Tests/CustomCommandByproducts/External
parente15a7075b58aef6fe7b6eb56f810d0f33bc31feb (diff)
downloadCMake-557aef0b94c86d13e802e6e8e34a491304d7be2f.zip
CMake-557aef0b94c86d13e802e6e8e34a491304d7be2f.tar.gz
CMake-557aef0b94c86d13e802e6e8e34a491304d7be2f.tar.bz2
ExternalProject: Add options to specify BYPRODUCTS (#14963)
The external project's build process may generate byproducts on which other rules in the driving project's build later depend. Provide a way for the driving project to specify what byproducts it expects to be made available by the custom commands that drive the external project.
Diffstat (limited to 'Tests/CustomCommandByproducts/External')
-rw-r--r--Tests/CustomCommandByproducts/External/CMakeLists.txt4
-rw-r--r--Tests/CustomCommandByproducts/External/ExternalLibrary.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/Tests/CustomCommandByproducts/External/CMakeLists.txt b/Tests/CustomCommandByproducts/External/CMakeLists.txt
new file mode 100644
index 0000000..feaa12e
--- /dev/null
+++ b/Tests/CustomCommandByproducts/External/CMakeLists.txt
@@ -0,0 +1,4 @@
+cmake_minimum_required(VERSION 3.1)
+project(External C)
+
+add_library(ExternalLibrary STATIC ExternalLibrary.c)
diff --git a/Tests/CustomCommandByproducts/External/ExternalLibrary.c b/Tests/CustomCommandByproducts/External/ExternalLibrary.c
new file mode 100644
index 0000000..a1dacf0
--- /dev/null
+++ b/Tests/CustomCommandByproducts/External/ExternalLibrary.c
@@ -0,0 +1 @@
+int ExternalLibrary(void) { return 0; }