Changeset 2577


Ignore:
Timestamp:
06/27/12 12:58:28 (12 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No?

Module(s): Module Names change impacts.

Description: Describe your changes here...

Defined PKSMS option in cmake.
if PKSMS=ON, PKSMSreader/writer will be built while if PKSMS=OFF,
those classes will be ignored. Default is OFF.


Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/CMakeLists.txt

    r2465 r2577  
    1313        "set ON to build standalone mode"
    1414        OFF )
     15option( PKSMS
     16        "set ON to diable to build PKSMS2reader/writer"
     17        OFF )
    1518message( STATUS "USE_LIBCASACORE = " ${USE_LIBCASACORE} )
    1619message( STATUS "STANDALONE = " ${STANDALONE} )
     20message( STATUS "PKSMS = " ${PKSMS} )
    1721
    1822# Use casapy's fork of casacore 
     
    151155
    152156add_definitions( ${CASACORE_DEFINITIONS} )
    153 
    154157
    155158#
     
    601604set( CMAKE_INSTALL_NAME_DIR ${CMAKE_INSTALL_PREFIX}/lib )
    602605
    603 
     606#
     607# PKSMS
     608#
     609if ( NOT PKSMS )
     610   add_definitions( -DNOPKSMS )
     611endif()
    604612
    605613#
  • trunk/external-alma/atnf/CMakeLists.txt

    r1966 r2577  
    1515link_directories( ${ATNFROOT} )
    1616
    17 # source files for libpyrap
     17# source files for libatnf
    1818set( ATNF_SRCS
    1919     ${ATNFDIR}/${PKS}/pks_maths.cc
     
    3333     ${ATNFDIR}/${PKSIO}/NROReader.cc
    3434     ${ATNFDIR}/${PKSIO}/PKSFITSreader.cc
    35      ${ATNFDIR}/${PKSIO}/PKSMS2reader.cc
    36      ${ATNFDIR}/${PKSIO}/PKSMS2writer.cc
     35#     ${ATNFDIR}/${PKSIO}/PKSMS2reader.cc
     36#     ${ATNFDIR}/${PKSIO}/PKSMS2writer.cc
    3737     ${ATNFDIR}/${PKSIO}/PKSreader.cc
    3838     ${ATNFDIR}/${PKSIO}/PKSSDwriter.cc
    3939     ${ATNFDIR}/${PKSIO}/SDFITSreader.cc
    4040     ${ATNFDIR}/${PKSIO}/SDFITSwriter.cc )
     41if( PKSMS )
     42   set( ATNF_SRCS ${ATNF_SRCS}
     43                  ${ATNFDIR}/${PKSIO}/PKSMS2reader.cc
     44                  ${ATNFDIR}/${PKSIO}/PKSMS2writer.cc )
     45endif() 
     46
    4147add_library( ${ATNFLIB} SHARED ${ATNF_SRCS} )
    4248target_link_libraries( ${ATNFLIB}
  • trunk/src/STWriter.cpp

    r2023 r2577  
    4040
    4141#include <atnf/PKSIO/PKSrecord.h>
     42#ifndef NOPKSMS
    4243#include <atnf/PKSIO/PKSMS2writer.h>
     44#endif
    4345#include <atnf/PKSIO/PKSSDwriter.h>
    4446#include <atnf/PKSIO/SrcType.h>
     
    6668  t.upcase();
    6769  if (t == "MS2") {
     70    #ifdef NOPKSMS
     71    throw (AipsError("MS2 OUTPUT FORMAT IS NO LONGER SUPPORTED"));
     72    #else
    6873    writer_ = new PKSMS2writer();
     74    #endif
    6975  } else if (t == "SDFITS") {
    7076    writer_ = new PKSSDwriter();
     
    9399  t.upcase();
    94100  if (t== "MS2") {
     101    #ifdef NOPKSMS
     102    throw (AipsError("MS2 OUTPUT FORMAT IS NO LONGER SUPPORTED"));
     103    #else
    95104    writer_ = new PKSMS2writer();
     105    #endif
    96106  } else if (t== "SDFITS") {
    97107    writer_ = new PKSSDwriter();
Note: See TracChangeset for help on using the changeset viewer.