[CMake] How to install custom target
Alex Turbov
i.zaufi at gmail.com
Tue Jul 25 12:11:45 EDT 2017
Hi list,
What is the "right" way to install a custom target, when you don't know the
result file name?
E.g. I have a sample project:
cmake_minimum_required(VERSION 3.9)
project(custom_target)
add_custom_target(
log ALL
COMMAND ${CMAKE_COMMAND} -E environment > sample-$<CONFIG>.log
)
# install(... ??? ...)
In a multi-configuration build, how can I get the resulting filename to use
`install(FILES...)` (as it recommended by CMake wiki) ??
Or is there any other way to use `install()` (maybe `TARGETS`...) ?
Best,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170725/7ce95861/attachment.html>
More information about the CMake
mailing list