summaryrefslogtreecommitdiffstats
path: root/Tests/Properties/SubDir2
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2020-07-08 20:12:02 (GMT)
committerBrad King <brad.king@kitware.com>2020-07-09 10:33:52 (GMT)
commit1235f2d747770535a388cd763c95cde8c9244375 (patch)
tree5fe38c96951731f04e7904fa9fc5316d9e386207 /Tests/Properties/SubDir2
parent177052d6b8b4127a9d345830fb3d82384e9d5b50 (diff)
downloadCMake-1235f2d747770535a388cd763c95cde8c9244375.zip
CMake-1235f2d747770535a388cd763c95cde8c9244375.tar.gz
CMake-1235f2d747770535a388cd763c95cde8c9244375.tar.bz2
set_property: Allow both DIRECTORY and TARGET_DIRECTORY together
Allow to specify both DIRECTORY and TARGET_DIRECTORY at the same time in `set_source_files_properties()` and `set_property(SOURCE)` commands. Add test cases and update the documentation. Fixes: #20932
Diffstat (limited to 'Tests/Properties/SubDir2')
-rw-r--r--Tests/Properties/SubDir2/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/Properties/SubDir2/CMakeLists.txt b/Tests/Properties/SubDir2/CMakeLists.txt
index 9b2c79e..88e5531 100644
--- a/Tests/Properties/SubDir2/CMakeLists.txt
+++ b/Tests/Properties/SubDir2/CMakeLists.txt
@@ -28,3 +28,7 @@ generate_file_for_set_property_test(23 set_prop_lib_3)
# For set_source_files_properties + multiple files in multiple directories
generate_file_for_set_property_test(31 set_prop_lib_3)
+
+# For specifying both DIRECTORY and TARGET_DIRECTORY
+target_sources(set_prop_lib_3 PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/../src32.cpp")
+target_sources(set_prop_lib_3 PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/../src33.cpp")