lemon-project-template-glpk

annotate README @ 8:dda9b6665fde

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