mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 22:58:37 -05:00
43506037d2
The semantics of the `GENERATED` property do not depend on the kind of target to which the sources are attached. Convert the tests to use custom targets instead of executables so that we do not have to enable the CXX language and initialize support of its toolchain for every case. This significantly reduces the time the test takes to run.
17 lines
750 B
CMake
17 lines
750 B
CMake
set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source1.txt"
|
|
PROPERTY GENERATED "1")
|
|
set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source2.txt"
|
|
DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/.."
|
|
PROPERTY GENERATED "1")
|
|
set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source3.txt"
|
|
TARGET_DIRECTORY custom1
|
|
PROPERTY GENERATED "1")
|
|
set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source4.txt"
|
|
PROPERTY GENERATED "1")
|
|
set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source5.txt"
|
|
DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/.."
|
|
PROPERTY GENERATED "1")
|
|
set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source6.txt"
|
|
TARGET_DIRECTORY custom1
|
|
PROPERTY GENERATED "1")
|