COIN-OR::LEMON - Graph Library

source: lemon-project-template/README @ 7:c941f748eaa8

Last change on this file since 7:c941f748eaa8 was 3:efa883909c06, checked in by Peter Kovacs <kpeter@…>, 15 years ago

Slightly improve help comments

File size: 1.6 KB
Line 
1Setup and Build the Template
2============================
3
4This is fairly easy. First, clone the project template repository and step
5into the dir, as follows (you've probably done it already if you read this
6file).
7
8$ hg clone http://lemon.cs.elte.hu/hg/lemon-project-template myproject
9$ cd myproject
10
11As you probably want to use LEMON in your project, you will need it
12too. For this you have to options. You can either install it somewhere
13or use a local copy of LEMON dedicated to your project. This later
14option is especially usefull if you also modify/develop LEMON along
15with your project, or want to use a specific version.
16
17Use a preinstalled version.
18
19    See http://lemon.cs.elte.hu/trac/lemon/wiki/InstallGuide for
20    instructions on how to install LEMON. If you installed it to a
21    non-standard place, you must let CMAKE know where to find it in
22    the LEMON_ROOT_DIR config variable.
23
24Use LEMON as a subproject.
25
26    Just simply copying the LEMON source code into the 'lemon' subdir
27    will do the job. Namely, you can either extract a release tarball
28
29    $ wget http://lemon.cs.elte.hu/pub/sources/lemon-1.1.tar.gz
30    $ tar xzf lemon-1.1.tar.gz
31    $ mv lemon-1.1 lemon
32
33    or - even better - you can check out the mercurial LEMON repository
34
35    $ hg clone http://lemon.cs.elte.hu/hg/lemon-main lemon
36
37Then run CMAKE to create the makefiles as usual.
38
39$ mkdir build
40$ cd build
41$ cmake-gui ..
42
43
44Setup Your Own Project
45======================
46
47Edit CMakeLists.txt to change the name of the project and the source
48files. Simply follow the instructions in CMakeLists.txt.
Note: See TracBrowser for help on using the repository browser.