[CMake] installing in /etc
Eric Noulard
eric.noulard at gmail.com
Tue Apr 1 09:58:01 EDT 2008
2008/4/1, Mathieu Malaterre <mathieu.malaterre at gmail.com>:
> Hi there,
>
> I do not understand what I need to do to install at absolute file
> path. Here is what I have right now:
Mathieu did you read this thread:
http://www.cmake.org/pipermail/cmake/2008-March/020685.html
in particular did you try to
SET(CPACK_SET_DESTDIR ON)
> ADD_EXECUTABLE(gdcmreadahead gdcmreadahead.c)
> INSTALL(TARGETS gdcmreadahead
> DESTINATION /usr/sbin
> )
> # package its twin init.d script also:
> INSTALL(PROGRAMS gdcmreadahead
> DESTINATION /etc/init.d/
> )
>
> make install works perfectly, but if I try to make package it, i am getting:
make install as root?
make install using DESTDIR?
[...]
> [100%] Built target gdcmreadahead
> Run CPack packaging tool...
> CPack: Create package using DEB
Do you have the same issue with other CPack Generator?
TGZ, RPM, ??
--
Erk
More information about the CMake
mailing list