Changeset 2825 for branches/plotter2
- Timestamp:
- 07/26/13 20:58:10 (11 years ago)
- Location:
- branches/plotter2
- Files:
-
- 4 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plotter2/CMakeLists.txt
r2587 r2825 418 418 message( STATUS "BOOST_INCLUDE_DIR = " ${Boost_INCLUDE_DIR} ) 419 419 message( STATUS "BOOST_LIBRARIES = " ${Boost_LIBRARIES} ) 420 421 422 #423 # Qt4 4.3.4 or later424 #425 find_package( Qt4 4.3.4426 COMPONENTS QtCore QtGui )427 if( NOT QT4_FOUND )428 message( FATAL_ERROR "Qt4 could not be found. Please check!" )429 endif()430 set( QT4_INCLUDE_DIRS ${QT_INCLUDES} CACHE PATH "QT4 include directories" FORCE )431 set( QT4_DEFINITIONS ${QT_DEFINITIONS} -DQT_NO_DEBUG CACHE STRING "QT4 preprocessor flags" FORCE )432 set( QT4_LIBRARIES433 ${QT_QTCORE_LIBRARY}434 ${QT_QTGUI_LIBRARY}435 CACHE FILEPATH "QT4 libraries" FORCE )436 list( REMOVE_ITEM QT4_LIBRARIES "optimized" )437 list( REMOVE_ITEM QT4_LIBRARIES "debug" )438 message( STATUS "QT4_INCLUDE_DIRS = " ${QT4_INCLUDE_DIRS} )439 message( STATUS "QT4_DEFINITIONS = " ${QT4_DEFINITIONS} )440 message( STATUS "QT4_LIBRARIES = " ${QT4_LIBRARIES} )441 420 442 421 … … 527 506 endif() 528 507 508 # X11. 509 if( NOT APPLE ) 510 find_package( X11 REQUIRED ) 511 # Rename 512 set( X11_INCLUDE_DIRS ${X11_INCLUDE_DIR} ) 513 endif() 514 515 # PGPLOT (FORTRAN plotting package). 516 # depends on X11 517 if( STANDALONE ) 518 ############ 519 find_path( PGPLOT_INCLUDE_DIRS cpgplot.h 520 PATHS /usr 521 PATH_SUFFIXES include ) 522 if( PGPLOT_INCLUDE_DIRS MATCHES "NOTFOUND$" ) 523 message( FATAL ERROR "cpgplot.h could not be found. Please check!" ) 524 endif() 525 find_library( CPGPLOT_LIB libcpgplot.${SO} 526 PATHS /usr 527 PATH_SUFFIXES lib64 lib ) 528 if( CPGPLOT_LIB MATCHES "NOTFOUND$" ) 529 message( FATAL ERROR "libcpgplot could not be found. Please check!" ) 530 endif() 531 find_library( PGPLOT_LIB libpgplot.${SO} 532 PATHS /usr 533 PATH_SUFFIXES lib64 lib ) 534 if( PGPLOT_LIB MATCHES "NOTFOUND$" ) 535 message( FATAL ERROR "libpgplot could not be found. Please check!" ) 536 endif() 537 set( PGPLOT_LIBRARIES "${CPGPLOT_LIB} ${PGPLOT_LIB} ${X11_LIBRARIES} ${FORTRAN_LIBRARIES} " ) 538 ############ 539 else() 540 if( APPLE ) 541 set( _deps FORTRAN ) 542 else() 543 set( _deps X11 FORTRAN ) 544 endif() 545 if (CMAKE_SYSTEM MATCHES ^Darwin-11 AND NOT LLVMCOMPILER ) 546 set( CMAKE_SHARED_LINKER_FLAGS "-Wl,-undefined -Wl,error -framework AppKit -lgfortran" ) 547 else() 548 if (APPLE) 549 set( CMAKE_SHARED_LINKER_FLAGS "-Wl,-undefined -Wl,error -framework AppKit" ) 550 else() 551 set( CMAKE_SHARED_LINKER_FLAGS "-Wl,-undefined -Wl,error" ) 552 endif() 553 endif() 554 casa_find( PGPLOT 555 VERSION 5.3.1 556 PREFIX_HINTS ${PGPLOT_ROOT_DIR} 557 INCLUDES cpgplot.h 558 LIBS pgplot${pgplot_ext} cpgplot${pgplot_ext} 559 DEPENDS ${_deps} ) 560 endif() 529 561 530 562 # … … 593 625 include_directories( ${CASACORE_INCLUDE_DIR} 594 626 ${Boost_INCLUDE_DIR} 595 ${QT4_INCLUDE_DIRS} 627 ${X11_INCLUDE_DIRS} 628 ${PGPLOT_INCLUDE_DIRS} 596 629 ${PYTHON_INCLUDE_DIRS} 597 630 ${WCSLIB_INCLUDE_DIR} -
branches/plotter2/python/CMakeLists.txt
r2649 r2825 35 35 ${PYTHONDIR}/opacity.py 36 36 ${PYTHONDIR}/parameters.py 37 #${PYTHONDIR}/plotter2.py37 ${PYTHONDIR}/plotter2.py 38 38 ${PYTHONDIR}/sbseparator.py 39 39 ${PYTHONDIR}/scantable.py -
branches/plotter2/python/__init__.py
r2821 r2825 54 54 from asapgrid import asapgrid, asapgrid2 55 55 from edgemarker import edgemarker 56 #from plotter2 import plotter257 56 from sbseparator import sbseparator 58 57 from _asap import srctype -
branches/plotter2/src/CMakeLists.txt
r2757 r2825 7 7 set( SRCDIR ${ASAPROOT}/src ) 8 8 9 # include QT_USE_FILE10 include( ${QT_USE_FILE} )11 12 9 # include path 13 10 include_directories( ${SRCDIR} 14 11 ${Boost_INCLUDE_DIR} 15 ${QT4_INCLUDE_DIRS}16 12 ${ASAPROOT}/external-alma 17 13 ${ASAPROOT}/external/libpyrap/pyrap-0.3.2 ) … … 25 21 # source files for libpyrap 26 22 set( ASAP_SRCS 27 #${SRCDIR}/Plotter2.cpp23 ${SRCDIR}/Plotter2.cpp 28 24 ${SRCDIR}/concurrent.cpp 29 25 ${SRCDIR}/MathUtils.cpp … … 85 81 86 82 set( ASAP_PYSRCS 87 #${SRCDIR}/python_Plotter2.cpp83 ${SRCDIR}/python_Plotter2.cpp 88 84 ${SRCDIR}/python_Scantable.cpp 89 85 ${SRCDIR}/python_STFiller.cpp … … 121 117 target_link_libraries( ${ASAPLIB} 122 118 #${Boost_LIBRARIES} 123 ${QT4_LIBRARIES} 119 ${X11_LIBRARIES} 120 ${PGPLOT_LIBRARIES} 124 121 ${PYRAPLIB} 125 122 ${ATNFLIB} -
branches/plotter2/src/SConscript
r2643 r2825 7 7 # gather cpp files 8 8 cpps = env.SGlob("*.cpp") 9 cpps.remove("Plotter2.cpp") 9 10 pycpps = env.SGlob("python_*.cpp") 10 11 for pf in pycpps: 11 12 cpps.remove(pf) 13 pycpps.remove("python_Plotter2.cpp") 12 14 13 15 # location of libcasav.a
Note:
See TracChangeset
for help on using the changeset viewer.