Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
public:user_software:cr-tools:development [2011-10-18 18:25] – created Lars Bahren | public:user_software:cr-tools:development [2017-03-08 15:27] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ~~NOTOC~~ | ||
+ | |||
====== User Software :: CR-Tools :: Development ======= | ====== User Software :: CR-Tools :: Development ======= | ||
- [[# | - [[# | ||
+ | - [[#Creating a new application]] | ||
==== Organization of the source code ==== | ==== Organization of the source code ==== | ||
- | |||
- | {{ : | ||
After the check-out -- which will take a while -- you will be left with a new directory tree organized as follows: | After the check-out -- which will take a while -- you will be left with a new directory tree organized as follows: | ||
+ | |||
+ | < | ||
+ | lofarsoft | ||
+ | |-- CMakeLists.txt | ||
+ | |-- build | ||
+ | |-- data | ||
+ | |-- devel_common | ||
+ | |-- doc | ||
+ | |-- external | ||
+ | |-- release | ||
+ | | |-- bin | ||
+ | | |-- include | ||
+ | | `-- lib | ||
+ | `-- src | ||
+ | |-- CR-Tools | ||
+ | | |-- CMakeLists.txt | ||
+ | | |-- apps | ||
+ | | |-- doc | ||
+ | | |-- implement | ||
+ | | |-- scripts | ||
+ | | `-- test | ||
+ | `-- DAL | ||
+ | </ | ||
+ | |||
+ | In this we have: | ||
* **usg** is the root of the User Software code tree -- go there if you want to synchronize your local version against the repository. | * **usg** is the root of the User Software code tree -- go there if you want to synchronize your local version against the repository. | ||
Line 15: | Line 41: | ||
* **external** hosts the various external packages which will be required to build parts of the LOFAR User Software; the main change her w.r.t. to old LOPES-Tools is, that critical components are distributed along with the stuff we are writing ourselves. This directory also contains **casacore**, | * **external** hosts the various external packages which will be required to build parts of the LOFAR User Software; the main change her w.r.t. to old LOPES-Tools is, that critical components are distributed along with the stuff we are writing ourselves. This directory also contains **casacore**, | ||
+ | ==== Creating a new application ==== | ||
+ | |||
+ | __Note:__ At the time being there is no automated manner by which to handle the creation of a new application. | ||
+ | |||
+ | - Create a **new source file** in the applications directory < | ||
+ | lofarsoft | ||
+ | `-- src | ||
+ | `-- CR-Tools | ||
+ | |-- apps < | ||
+ | | `-- CMakeLists.txt | ||
+ | |-- implement | ||
+ | `-- test | ||
+ | </ | ||
+ | - Add an entry to the '' | ||
+ | ## ------------------------------------------------------------------- | ||
+ | ## simStationBeam | ||
+ | |||
+ | if (HAVE_CASACORE) | ||
+ | add_executable (simStationBeam simStationBeam.cc) | ||
+ | ## linker instructions | ||
+ | target_link_libraries (simStationBeam cr) | ||
+ | ## installation instructions | ||
+ | install (TARGETS simStationBeam | ||
+ | RUNTIME DESTINATION bin | ||
+ | LIBRARY DESTINATION lib | ||
+ | ARCHIVE DESTINATION lib | ||
+ | ) | ||
+ | endif (HAVE_CASACORE) | ||
+ | </ | ||
+ | \\ | ||
+ | ---- | ||
+ | <- [[public: |