Re: [CMake] CPack / Debian install location

2012-02-03 Thread Eric Noulard
2012/2/3 Oliver kfsone Smith osm...@playnet.com:
 osmith@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)
-- this one is only used when
 CPACK_SET_DESTDIR is set to on.

 SET(CPACK_PACKAGE_INSTALL_PREFIX /playnet/ra)
-- this one is not used anywhere in the CPack code.

The right one is:
set(CPACK_PACKAGING_INSTALL_PREFIX /playnet/ra)

 SET(CPACK_DEBIAN_INSTALL_PREFIX /playnet/ra)
This one does not exist (i.e. is not used anywhere).

 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)
This one does not exist as well (i.e. is not used anywhere).

 I've played with a half dozen other variable name combinations, but it still
 all goes into /usr.
Remove all INSTALL_PREFIX you have used and set
set(CPACK_PACKAGING_INSTALL_PREFIX /playnet/ra)

You can specify this on the command line too:

cpack -D CPACK_PACKAGING_INSTALL_PREFIX=/playnet/ra -G DEB

More extensive doc of CPack variables should be coming soon:
http://public.kitware.com/Bug/view.php?id=10067
-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] CPack / Debian install location

2012-02-02 Thread Oliver kfsone Smith

osmith@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
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake