[CMake] cmake package question

Eric Noulard eric.noulard at gmail.com
Mon Feb 4 15:30:54 EST 2008


2008/2/4, James C. Newell <NewellJC at fairmountautomation.com>:
> Hello,
>
> I am new to cmake but enjoying it greatly.
>
> My question relates to the cpack feature.  I wasn't able to determine
> from the documentation or wiki on how to have the package command only
> include the file system from myproj-0.1.1-Linux and below. So, in the
> example below instead of the .tar.gz containing
> myproj-0.1.1-Linux/bin/myproj would contain /bin/myproj.  I'm sure I
> missed something in the documentation but would greatly appreciate any
> advice.

You should try to add

SET(CPACK_INCLUDE_TOPLEVEL_DIRECTORY 0)

in your CMakeLists.txt before include(CPack).


-- 
Erk


More information about the CMake mailing list