lemon-project-template-glpk

view README @ 6:b995b17cd52b

Add .hgeol
author Alpar Juttner <alpar@cs.elte.hu>
date Tue, 22 Mar 2011 19:51:48 +0100
parents 76d160eba8d4
children
line source
1 Setup and Build the Template
2 ============================
4 This is fairly easy. First, clone the project template repository and step
5 into the dir, as follows (you've probably done it already if you read this
6 file).
8 $ hg clone http://lemon.cs.elte.hu/hg/lemon-project-template myproject
9 $ cd myproject
11 As you probably want to use LEMON in your project, you will need it
12 too. For this you have to options. You can either install it somewhere
13 or use a local copy of LEMON dedicated to your project. This later
14 option is especially usefull if you also modify/develop LEMON along
15 with your project, or want to use a specific version.
17 Use a preinstalled version.
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.
24 Use LEMON as a subproject.
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
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
33 or - even better - you can check out the mercurial LEMON repository
35 $ hg clone http://lemon.cs.elte.hu/hg/lemon-main lemon
37 Then run CMAKE to create the makefiles as usual.
39 $ mkdir build
40 $ cd build
41 $ cmake-gui ..
44 Setup Your Own Project
45 ======================
47 Edit CMakeLists.txt to change the name of the project and the source
48 files. Simply follow the instructions in CMakeLists.txt.