#5 branch_leonox doesn't have cpack configured

closed-fixed
nobody
None
5
2008-02-25
2007-10-08
No

To distribute the code outside of SVN, it needs to be possible to create a tarball source archive.

I believe that the correct way to do this is with 'cpack' though this doesn't seem to be configured.

Discussion

  • Bruno Postle

    Bruno Postle - 2007-10-10

    Logged In: YES
    user_id=35360
    Originator: YES

    Ok, this seems to work. Add the following chunk of text to the end of CMakeLists.txt. You can then create a working tarball with `make package_source`:

    SET(CPACK_PACKAGE_VERSION_MAJOR "${V_MAJOR}")
    SET(CPACK_PACKAGE_VERSION_MINOR "${V_MINOR}")
    SET(CPACK_PACKAGE_VERSION_PATCH "${V_PATCH}")
    SET(CPACK_PACKAGE_INSTALL_DIRECTORY "CMake ${V_MAJOR}.${V_MINOR}")
    SET(CPACK_SOURCE_PACKAGE_FILE_NAME "freepv-${V_MAJOR}.${V_MINOR}.${V_PATCH}")
    SET(CPACK_SOURCE_GENERATOR "TGZ")
    SET(CPACK_SOURCE_IGNORE_FILES
    "/_CPack_Packages/"
    "/CMakeCache.txt$"
    "\\\\.dir/"
    "\\\\.tar\\\\.gz$"
    "\\\\.tar\\\\.Z$"
    "\\\\.svn/"
    "\\\\.cvsignore$"
    "\\\\.swp$"
    "~$"
    "\\\\.#"
    "/#"
    "/freepv-glut$"
    "/freepv-glx$"
    "/qtvr2img$"
    "/build/"
    "/CVS/"
    "/\\\\.libs/"
    "/\\\\.deps/"
    "\\\\.o$"
    "\\\\.a$"
    "\\\\.lo$"
    "\\\\.so$"
    "\\\\.la$"
    "Makefile\\\\.in$"
    )
    INCLUDE(CPack)

     
  • Bruno Postle

    Bruno Postle - 2008-02-25
    • status: open --> closed-fixed
     
  • Bruno Postle

    Bruno Postle - 2008-02-25

    Logged In: YES
    user_id=35360
    Originator: YES

    Fixed in svn127