- Timestamp:
- 06/27/12 12:58:28 (12 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CMakeLists.txt
r2465 r2577 13 13 "set ON to build standalone mode" 14 14 OFF ) 15 option( PKSMS 16 "set ON to diable to build PKSMS2reader/writer" 17 OFF ) 15 18 message( STATUS "USE_LIBCASACORE = " ${USE_LIBCASACORE} ) 16 19 message( STATUS "STANDALONE = " ${STANDALONE} ) 20 message( STATUS "PKSMS = " ${PKSMS} ) 17 21 18 22 # Use casapy's fork of casacore … … 151 155 152 156 add_definitions( ${CASACORE_DEFINITIONS} ) 153 154 157 155 158 # … … 601 604 set( CMAKE_INSTALL_NAME_DIR ${CMAKE_INSTALL_PREFIX}/lib ) 602 605 603 606 # 607 # PKSMS 608 # 609 if ( NOT PKSMS ) 610 add_definitions( -DNOPKSMS ) 611 endif() 604 612 605 613 # -
trunk/external-alma/atnf/CMakeLists.txt
r1966 r2577 15 15 link_directories( ${ATNFROOT} ) 16 16 17 # source files for lib pyrap17 # source files for libatnf 18 18 set( ATNF_SRCS 19 19 ${ATNFDIR}/${PKS}/pks_maths.cc … … 33 33 ${ATNFDIR}/${PKSIO}/NROReader.cc 34 34 ${ATNFDIR}/${PKSIO}/PKSFITSreader.cc 35 ${ATNFDIR}/${PKSIO}/PKSMS2reader.cc36 ${ATNFDIR}/${PKSIO}/PKSMS2writer.cc35 # ${ATNFDIR}/${PKSIO}/PKSMS2reader.cc 36 # ${ATNFDIR}/${PKSIO}/PKSMS2writer.cc 37 37 ${ATNFDIR}/${PKSIO}/PKSreader.cc 38 38 ${ATNFDIR}/${PKSIO}/PKSSDwriter.cc 39 39 ${ATNFDIR}/${PKSIO}/SDFITSreader.cc 40 40 ${ATNFDIR}/${PKSIO}/SDFITSwriter.cc ) 41 if( PKSMS ) 42 set( ATNF_SRCS ${ATNF_SRCS} 43 ${ATNFDIR}/${PKSIO}/PKSMS2reader.cc 44 ${ATNFDIR}/${PKSIO}/PKSMS2writer.cc ) 45 endif() 46 41 47 add_library( ${ATNFLIB} SHARED ${ATNF_SRCS} ) 42 48 target_link_libraries( ${ATNFLIB} -
trunk/src/STWriter.cpp
r2023 r2577 40 40 41 41 #include <atnf/PKSIO/PKSrecord.h> 42 #ifndef NOPKSMS 42 43 #include <atnf/PKSIO/PKSMS2writer.h> 44 #endif 43 45 #include <atnf/PKSIO/PKSSDwriter.h> 44 46 #include <atnf/PKSIO/SrcType.h> … … 66 68 t.upcase(); 67 69 if (t == "MS2") { 70 #ifdef NOPKSMS 71 throw (AipsError("MS2 OUTPUT FORMAT IS NO LONGER SUPPORTED")); 72 #else 68 73 writer_ = new PKSMS2writer(); 74 #endif 69 75 } else if (t == "SDFITS") { 70 76 writer_ = new PKSSDwriter(); … … 93 99 t.upcase(); 94 100 if (t== "MS2") { 101 #ifdef NOPKSMS 102 throw (AipsError("MS2 OUTPUT FORMAT IS NO LONGER SUPPORTED")); 103 #else 95 104 writer_ = new PKSMS2writer(); 105 #endif 96 106 } else if (t== "SDFITS") { 97 107 writer_ = new PKSSDwriter();
Note:
See TracChangeset
for help on using the changeset viewer.