mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Also avoid using parts of an unrelated test (NinjaMultiConfig) that were not designed for use with all generators.
8 lines
274 B
CMake
8 lines
274 B
CMake
enable_language(C)
|
|
add_executable(tool main.c)
|
|
set_property(TARGET tool PROPERTY EXCLUDE_FROM_ALL "${TOOL_EXCLUDE_FROM_ALL}")
|
|
|
|
file(GENERATE OUTPUT "${CMAKE_BINARY_DIR}/target_files_$<CONFIG>.cmake" CONTENT [[
|
|
set(TARGET_FILE_tool_$<CONFIG> [==[$<TARGET_FILE:tool>]==])
|
|
]])
|