summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/InterfaceLibrary/add_custom_command-TARGET.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-07-21 17:41:04 (GMT)
committerBrad King <brad.king@kitware.com>2020-07-22 17:42:58 (GMT)
commit4ac9ee10ade455d50c5ca687876f30fd9e0b640a (patch)
treea4693204bcc2e09e0eb8259167090a3a0292a751 /Tests/RunCMake/InterfaceLibrary/add_custom_command-TARGET.cmake
parentd45f0d719e0be324959d7ba5e9d84596592fc19a (diff)
downloadCMake-4ac9ee10ade455d50c5ca687876f30fd9e0b640a.zip
CMake-4ac9ee10ade455d50c5ca687876f30fd9e0b640a.tar.gz
CMake-4ac9ee10ade455d50c5ca687876f30fd9e0b640a.tar.bz2
Tests: Rename test RunCMake.{interface_library => InterfaceLibrary}
Our RunCMake.<lower-case> namespace is meant for testing individual CMake language commands.
Diffstat (limited to 'Tests/RunCMake/InterfaceLibrary/add_custom_command-TARGET.cmake')
-rw-r--r--Tests/RunCMake/InterfaceLibrary/add_custom_command-TARGET.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/InterfaceLibrary/add_custom_command-TARGET.cmake b/Tests/RunCMake/InterfaceLibrary/add_custom_command-TARGET.cmake
new file mode 100644
index 0000000..a5136ef
--- /dev/null
+++ b/Tests/RunCMake/InterfaceLibrary/add_custom_command-TARGET.cmake
@@ -0,0 +1,6 @@
+
+add_library(iface INTERFACE)
+
+add_custom_command(TARGET iface
+ COMMAND "${CMAKE_COMMAND}" -E echo test
+)