1include(${CMAKE_CURRENT_LIST_DIR}/CMP0118-Common-Helper.cmake)
2
3
4set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/Generated_with_full_path1.txt"
5  PROPERTY GENERATED "0")
6get_and_print_GENERATED_property("Generated_with_full_path1.txt")
7
8set_property(SOURCE "Generated_with_full_path2.txt"
9  PROPERTY GENERATED "0")
10get_and_print_GENERATED_property("Generated_with_full_path2.txt")
11
12set_property(SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/"Generated_with_full_path3.txt"
13  PROPERTY GENERATED "0")
14get_and_print_GENERATED_property("Generated_with_full_path3.txt")
15
16
17set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/Generated_with_relative_path1.txt"
18  PROPERTY GENERATED "0")
19get_and_print_GENERATED_property("Generated_with_relative_path1.txt")
20
21set_property(SOURCE "Generated_with_relative_path2.txt"
22  PROPERTY GENERATED "0")
23get_and_print_GENERATED_property("Generated_with_relative_path2.txt")
24
25set_property(SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/Generated_with_relative_path3.txt"
26  PROPERTY GENERATED "0")
27get_and_print_GENERATED_property("Generated_with_relative_path3.txt")
28
29
30set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/Generated_with_full_source_path1.txt"
31  PROPERTY GENERATED "0")
32get_and_print_GENERATED_property("Generated_with_full_source_path1.txt")
33
34set_property(SOURCE "Generated_with_full_source_path2.txt"
35  PROPERTY GENERATED "0")
36get_and_print_GENERATED_property("Generated_with_full_source_path2.txt")
37
38set_property(SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/"Generated_with_full_source_path3.txt"
39  PROPERTY GENERATED "0")
40get_and_print_GENERATED_property("Generated_with_full_source_path3.txt")
41
42
43add_custom_target(custom1)
44target_sources(custom1 PRIVATE
45  "${CMAKE_CURRENT_BINARY_DIR}/Generated_with_full_path1.txt"
46  "${CMAKE_CURRENT_BINARY_DIR}/Generated_with_full_path2.txt"
47  "${CMAKE_CURRENT_BINARY_DIR}/Generated_with_full_path3.txt"
48)
49add_custom_target(custom2)
50target_sources(custom2 PRIVATE
51  "Generated_with_relative_path1.txt"
52  "Generated_with_relative_path2.txt"
53  "Generated_with_relative_path3.txt"
54)
55add_custom_target(custom3)
56target_sources(custom3 PRIVATE
57  "${CMAKE_CURRENT_SOURCE_DIR}/Generated_with_full_source_path1.txt"
58)
59add_custom_target(custom4)
60target_sources(custom4 PRIVATE
61  "${CMAKE_CURRENT_SOURCE_DIR}/Generated_with_full_source_path2.txt"
62)
63add_custom_target(custom5)
64target_sources(custom5 PRIVATE
65  "${CMAKE_CURRENT_SOURCE_DIR}/Generated_with_full_source_path3.txt"
66)
67