alpar@2: Setup and Build the Template alpar@2: ============================ alpar@2: alpar@2: This is fairly easy. First, clone the project template repository and step alpar@2: into the dir, as follows (you've probably done it already if you read this alpar@2: file). alpar@2: alpar@2: $ hg clone http://lemon.cs.elte.hu/hg/lemon-project-template myproject alpar@2: $ cd myproject alpar@2: alpar@2: As you probably want to use LEMON in your project, you will need it alpar@2: too. For this you have to options. You can either install is somewhere alpar@2: or use a local copy of lemon dedicated to your project. This later alpar@2: option is especially usefull if you also modify/develop LEMON along alpar@2: with your project, or want to use a specific version. alpar@2: alpar@2: Use a preinstalled version. alpar@2: alpar@2: See http://lemon.cs.elte.hu/trac/lemon/wiki/InstallGuide for alpar@2: instructions on how to install LEMON. If you installed it to a alpar@2: non-standard place, you must let CMAKE know where to find it in alpar@2: the LEMON_ROOT_DIR config variable. alpar@2: alpar@2: Use LEMON as a subproject. alpar@2: alpar@2: Just simply coping the lemon source code into the 'lemon' subdir alpar@2: will do the job. Namely, you can either extract a release tarball alpar@2: alpar@2: $ wget http://lemon.cs.elte.hu/pub/sources/lemon-1.1.tar.gz alpar@2: $ tar xzf lemon-1.1.tar.gz alpar@2: $ mv lemon-1.1 lemon alpar@2: alpar@2: or - even better - you can check out the mercurial LEMON repository alpar@2: alpar@2: $ hg clone http://lemon.cs.elte.hu/hg/lemon-main lemon alpar@2: alpar@2: Then run CMAKE to create the makefiles as usual. alpar@2: alpar@2: $ mkdir build alpar@2: $ cd build alpar@2: $ cmake-gui .. alpar@2: alpar@2: Setup Your Own Project alpar@2: ====================== alpar@2: alpar@2: Edit CMakeLists.txt to change the name of the project and the source alpar@2: files. Simply follow the instructions in CMakeLists.txt.