Hi all,<br><br>I'm trying to write install instruction for my main project (DLL) that consists from several projects (LIBs). This instruction should copy all public headers from all dependent targets to the destination directory.<br>
<br>I expected to use following sample but it is erroneous:<br><br>install (<br> TARGETS <br> utils <br> system <br> types <br> PUBLIC_HEADER DESTINATION ${${PROJECT_NAME}_BINARY_DIR}/install/headers<br>
)<br><br><br>So, I've written code like following. It works but it is little ugly. <br><br>get_target_property( public_headers utils PUBLIC_HEADER )<br>install( FILES ${public_headers} DESTINATION ${${PROJECT_NAME}_BINARY_DIR}/install/headers )<br>
<br>get_target_property( public_headers system PUBLIC_HEADER )<br>install( FILES ${public_headers} DESTINATION ${${PROJECT_NAME}_BINARY_DIR}/install/headers )<br><br>get_target_property( public_headers types PUBLIC_HEADER )<br>
install( FILES ${public_headers} DESTINATION ${${PROJECT_NAME}_BINARY_DIR}/install/headers )<br><br><br><br>The question is how to make first snippet worked?<br><br><br>Thanks.<br><br>Dima<br>