[CMake] Preserving directory structure with INSTALL(...)
Kedzierski,
Artur CIV NAVSURFWARCENDIV CORONA
artur.kedzierski at navy.mil
Tue Oct 10 16:06:24 EDT 2006
Is this part of CMake 2.4.3?
I get this error:
INSTALL called with unknown mode DIRECTORY
--
Artur Kedzierski
-----Original Message-----
From: cmake-bounces+artur.kedzierski=navy.mil at cmake.org
[mailto:cmake-bounces+artur.kedzierski=navy.mil at cmake.org] On Behalf Of
Filipe Sousa
Sent: Tuesday, October 10, 2006 9:50
To: CMake Mailing List
Subject: Re: [CMake] Preserving directory structure with INSTALL(...)
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote:
> Lets say I have this dir structure:
> include/a/a1.h
> include/a/a2.h
> include/b/b1.h
> include/c/c1/c1.h
> When I do this:
> FILE(GLOB_RECURSE INSTALL_HEADERS RELATIVE "${CMAKE_SOURCE_DIR}"
> "$(CMAKE_SOURCE_DIR}/include/*.h")
> INSTALL(FILES ${INSTALL_HEADERS} DESTINATION include)
> I get this structure:
> include/a1.h
> include/a2.h
> include/b1.h
> include/c1.h
> Is there a way to tell INSTALL to preserve the original structure?
>
INSTALL(DIRECTORY dirs... DESTINATION <dir>
[FILE_PERMISSIONS permissions...]
[DIRECTORY_PERMISSIONS permissions...]
[USE_SOURCE_PERMISSIONS]
[CONFIGURATIONS [Debug|Release|...]]
[COMPONENT <component>]
[[PATTERN <pattern> | REGEX <regex>]
[EXCLUDE] [PERMISSIONS permissions...]] [...])
--
Filipe Sousa
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4670 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20061010/fca1b459/smime.bin
More information about the CMake
mailing list