User Software :: CR-Tools :: Development

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:

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:

Creating a new application

Note: At the time being there is no automated manner by which to handle the creation of a new application.

  1. Create a new source file in the applications directory
    lofarsoft
    `-- src
        `-- CR-Tools
            |-- apps                   <-- new application goes here
            |   `-- CMakeLists.txt
            |-- implement
            `-- test
  2. Add an entry to the CMakeLists.txt in the applications directory:
    ## -------------------------------------------------------------------
    ##                                                      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)



User SoftwareCR-Tools