public:user_software:cr-tools:development

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
public:user_software:cr-tools:development [2011-10-18 18:25] – created Lars Bahrenpublic: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 =======
  
   - [[#Organization of the source code]]   - [[#Organization of the source code]]
 +  - [[#Creating a new application]]
  
 ==== Organization of the source code ==== ==== Organization of the source code ====
- 
-{{ :public:user_software:core_tree_usg_repository.png|}} 
  
 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:
 +
 +<file>
 +lofarsoft
 +|-- CMakeLists.txt
 +|-- build
 +|-- data
 +|-- devel_common
 +|-- doc
 +|-- external
 +|-- release
 +|   |-- bin
 +|   |-- include
 +|   `-- lib
 +`-- src
 +    |-- CR-Tools
 +    |   |-- CMakeLists.txt
 +    |   |-- apps
 +    |   |-- doc
 +    |   |-- implement
 +    |   |-- scripts
 +    |   `-- test
 +    `-- DAL
 +</file>
 +
 +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**, a collection of the core libraries of the **CASA** system.   * **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**, a collection of the core libraries of the **CASA** system.
  
 +==== 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 <code>
 +lofarsoft
 +`-- src
 +    `-- CR-Tools
 +        |-- apps                   <-- new application goes here
 +        |   `-- CMakeLists.txt
 +        |-- implement
 +        `-- test
 +</code>
 +  - Add an entry to the ''CMakeLists.txt'' in the applications directory: <code cmake>
 +## -------------------------------------------------------------------
 +##                                                      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)
 +</code>
  
 +\\
 +----
 +<- [[public:user software:User Software]] • [[public:user software:CR-Tools]]
  • Last modified: 2011-10-18 18:25
  • by Lars Bahren