[prev in list] [next in list] [prev in thread] [next in thread]
List: cmake
Subject: [CMake] How to install custom target
From: Alex Turbov <i.zaufi () gmail ! com>
Date: 2017-07-25 16:11:45
Message-ID: CANktQtuLVau01ef1YXuxxC2Hu6fjxg1rG3dP4ekSqhM2-uufmg () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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,
[Attachment #5 (text/html)]
<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>
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at: \
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more information \
on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at \
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic