[CMake] CPack / Debian install location

Oliver kfsone Smith osmith at playnet.com
Thu Feb 2 18:02:45 EST 2012


osmith at luciddev:~/pn/WW2/src$ cmake --version
cmake version 2.8.2

I can't see to get "make package" to generate Debian packages that 
install any place but /usr/bin. (I actually want them in 
/playnet/ra/bin, /playnet/ra/lib and so on)

    SET(CPACK_GENERATOR "DEB")
    SET(CPACK_INSTALL_PREFIX "/playnet/ra")
    SET(CPACK_PACKAGE_INSTALL_PREFIX "/playnet/ra")
    SET(CPACK_DEBIAN_INSTALL_PREFIX "/playnet/ra")
    SET(CPACK_PACKAGE_VERSION
    "${REPO_WC_REVISION}.${CMAKE_BUILD_TYPE}-${WW2_TARGET_ENV}")
    SET(CPACK_PACKAGE_NAME "servers")
    SET(CPACK_PACKAGE_VENDOR "Cornered Rat Software")
    SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Game servers")
    SET(CPACK_PACKAGE_DESCRIPTION "'Game servers and tools.")
    SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "Oliver Smith")
    SET(CPACK_DEBIAN_PACKAGE_INSTALL_PREFIX "/playnet/ra")
    SET(CPACK_DEBIAN_PACKAGE_DEPENDS "libopenthreads-dev (>= 2.8.3-4),
    lua5.1 (>= 5.1.4-5), libmysqlclient16 (>= 5.1.49), bash (>= 4.1),
    gdb (>= 7.2), nfs-common, mysql-server (>= 5.1), nfs-kernel-server")
    SET(CPACK_DEBIAN_PACKAGE_DESCRIPTION "Game servers")
    SET(CPACK_DEBIAN_PACKAGE_SECTION "Network")
    SET(CPACK_DEBIAN_PACKAGE_PRIORITY "Important")
    SET(CPACK_DEBIAN_PACKAGE_RECOMMENDS "vim, mysql-client (>= 5.1),
    python (>= 2.6.6)")
    SET(CPACK_DEBIAN_PACKAGE_SUGGESTS "lvm2, perl (>= 5.1)")

I've played with a half dozen other variable name combinations, but it 
still all goes into /usr.

- Oliver
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120202/b9649ab7/attachment.htm>


More information about the CMake mailing list