🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Szyk Cech Mon, 22 Apr 2019 09:35
Cmake - generator expressions - pytanie
#309850
Author: Szyk Cech
Date: Mon, 22 Apr 2019 09:35
25 lines
1894 bytes
Witam

Co znaczy taki zapis:
target_include_directories(${PROJECT_NAME}
     PUBLIC 
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/Include/${PROJECT_NAME}> 
$<INSTALL_INTERFACE:include> PRIVATE .)

W dokumentacji znalazłem coś takiego:
$<INSTALL_INTERFACE:...>
Content of ... when the property is exported using install(EXPORT), and 
empty otherwise.
$<BUILD_INTERFACE:...>
Content of ... when the property is exported using export(), or when the 
target is used by another target in the same buildsystem. Expands to the 
empty string otherwise.

Wydaje mi się, że $<BUILD_INTERFACE: to są pliki włączane w czasie 
budowania, a $<INSTALL_INTERFACE: po instalacji. I jak rozumiem w 
pierwszym przypadku ma to znaczenie w czasie kompilacji, a drugie dla 
odnajdywania nagłówków bibliotecznych (po instalacji w systemie).

czy mam rację?
dzięki i pozdro i smacznego jajka
Szyk Cech
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads