On Tuesday 19 May 2009, Dmytro Ovdiienko wrote:
> Hi all,
>
> 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.
>
> I expected to use following sample but it is erroneous:
>
> install (
>     TARGETS
>         utils
>         system
>         types
>     PUBLIC_HEADER DESTINATION ${${PROJECT_NAME}_BINARY_DIR}/install/headers
>     )

I think you have to write the install() command for a target in the directory 
where the target is created. I think installing them from a different 
CMakeLists.txt is not supported.


Alex
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to