summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/ObjectLibrary/PreBuild.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/ObjectLibrary/PreBuild.cmake')
-rw-r--r--Tests/RunCMake/ObjectLibrary/PreBuild.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/ObjectLibrary/PreBuild.cmake b/Tests/RunCMake/ObjectLibrary/PreBuild.cmake
new file mode 100644
index 000000000..e4424c100
--- /dev/null
+++ b/Tests/RunCMake/ObjectLibrary/PreBuild.cmake
@@ -0,0 +1,4 @@
+add_library(A OBJECT a.c)
+add_custom_command(TARGET A PRE_BUILD
+ COMMAND ${CMAKE_COMMAND} -E echo "A pre-build"
+ )