How do I build the cmake bzr branch of showeq?

Asked by Bob Tanner

The default build for the ubuntu and debian packages still uses the autotools. I have a dream that we can dump autotools and start using cmake. Document how to get, configure, and build showeq using the cmake tool.

Question information

Language:
English Edit question
Status:
Solved
For:
showeq Edit question
Assignee:
No assignee Edit question
Solved by:
Bob Tanner
Solved:
Last query:
Last reply:
Revision history for this message
Bob Tanner (tanner) said :
#1

Drop

deb http://ppa.launchpad.net/showeq-team/ubuntu hardy main
deb-src http://ppa.launchpad.net/showeq-team/ubuntu hardy main

Into /etc/apt/sources.list.d/showeq.list

$ sudo apt-get update
$ sudo apt-get install bzr cmake
$ sudo apt-get build-dep showeq
$ cd /path/to/build/area
$ bzr branch lp:~showeq-team/showeq/cmake
Branched 18 revision(s). # Make sure it's revision 18 -or- higher
$ cd cmake
$ cmake .
-- Version: 5.13.0.0 # Version will change for each release
-- DATA_INSTALL_DIR: /usr/local/share/showeq
-- PKGDATADIR: /usr/local/share/showeq # Did PKGDATADIR get set?
-- showeq is used as APPLICATION_NAME
-- Configuring done
-- Generating done
<snip>
$ make
[ 1%] Generating mapicondialog.h
[ 2%] Generating spawnshell.moc
<snip>
[100%] Building CXX object src/CMakeFiles/showeq.dir/mapicondialog.moc.o
Linking CXX executable showeq
[100%] Built target showeq
$ file src/showeq
src/showeq: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.8, dynamically linked (uses shared libs), not stripped

Revision history for this message
Bob Tanner (tanner) said :
#2

If you would like an interactive configuration of cmake (recommended) run 'cmake -i', this will let you adjust many of cmakes defaults.

Revision history for this message
Bob Tanner (tanner) said :
#3

If you trust my defaults (/usr/local install) you can do a 'cmake -i < /dev/null'