[CMake] INSTALL files
Brad King
brad.king at kitware.com
Thu Oct 26 11:20:59 EDT 2006
Gregor Berginc wrote:
> I am writting cmake file to build library libVisionComponents that
> includes sources from subdirectories (each subdir is different
> component). In the main cmake file, sources and headers are listed as
> ComponentName/File.cpp. The library is compiled successfully, but when
> I install it with command:
>
> INSTALL(FILES ${COMPONENT_HEADERS} DESTINATION include/vision)
>
> The problem is that headers are installed in include/vision/components
> and not include/vision/components/ComponentName as I hoped. Is there a
> way to overcome this?
You can use a macro like INSTALL_NOBASE_HEADER_FILES from the vxl project:
http://www.itk.org/cgi-bin/viewcvs.cgi/Utilities/vxl/config/cmake/config/vxl_utils.cmake?rev=1.2&root=Insight&view=auto
I suggest converting the macro's implementation to use the INSTALL
command under the hood.
-Brad
More information about the CMake
mailing list