<div dir="ltr"><div><div><div>Hi list,<br><br></div>What is the "right" way to install a custom target, when you don't know the result file name?<br></div>E.g. I have a sample project:<br><br>cmake_minimum_required(VERSION 3.9)<br>project(custom_target)<br><br>add_custom_target(<br>    log ALL<br>    COMMAND ${CMAKE_COMMAND} -E environment > sample-$<CONFIG>.log<br>  )<br></div># install(... ??? ...)<br><br><div>In a multi-configuration build, how can I get the resulting filename to use `install(FILES...)` (as it recommended by CMake wiki) ??<br><br></div><div>Or is there any other way to use `install()` (maybe `TARGETS`...) ?<br></div><div><br></div><div>Best,<br></div></div>