mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-07 06:09:52 -06:00
Tests/CustomCommand: add a test for depending on a ./path
This commit is contained in:
@@ -558,3 +558,11 @@ add_custom_command(
|
|||||||
)
|
)
|
||||||
|
|
||||||
add_custom_target(depends_on_in_source_path ALL DEPENDS "depends_on_in_source_path.txt")
|
add_custom_target(depends_on_in_source_path ALL DEPENDS "depends_on_in_source_path.txt")
|
||||||
|
|
||||||
|
add_custom_command(
|
||||||
|
OUTPUT "depends_on_in_rel_source_path.txt"
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/main.cxx" depends_on_in_rel_source_path.txt
|
||||||
|
DEPENDS ./main.cxx
|
||||||
|
)
|
||||||
|
|
||||||
|
add_custom_target(depends_on_in_rel_source_path ALL DEPENDS "depends_on_in_rel_source_path.txt")
|
||||||
|
|||||||
Reference in New Issue
Block a user