Changes between Version 4 and Version 5 of HowToCompile
- Timestamp:
- 11/09/11 12:11:46 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HowToCompile
v4 v5 8 8 }}} 9 9 - If you want to use an installed LEMON on Windows or a user-local installed version on Unices, you must explicitly tell the location of the header files and the lib to the compiler. Please consult the documentation of your compiler on how to do it. 10 - Secondly, if you want to compile a single `.cc` file very fast (or with the prospect that your algorithm eventually will be migrated into the core LEMON itself), you can download LEMON and add your code to it. For this, put the `.cc` file into the [source: demo /demo] subdirectory, adjust [source:demo/CMakeLists.txt demo/CMakeLists.txt] and compile it according to [InstallCmake Build with CMAKE] guide. Of course you can omit the final installation step.10 - Secondly, if you want to compile a single `.cc` file very fast (or with the prospect that your algorithm eventually will be migrated into the core LEMON itself), you can download LEMON and add your code to it. For this, put the `.cc` file into the [source:contrib contrib/] subdirectory, adjust [source:contrib/CMakeLists.txt contrib/CMakeLists.txt] and compile it according to [InstallCmake Build with CMAKE] guide. Of course you can omit the final installation step. 11 11 - Thirdly, you can use the [ProjectTemplate LEMON project template] either with an installed or a project local version of LEMON. This template is a preconfigured CMAKE build environment for LEMON based C++ projects. It is especially recommended for larger project with several source codes (and even multiple executables), but it pretty easy to set up for small applications, too. 12 12