Changeset 2210 for trunk/cmake


Ignore:
Timestamp:
07/06/11 17:28:38 (13 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-1913

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...

Update CMakeLists.txt to build asdm2ASAP.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cmake/withcasa.cmake

    r2183 r2210  
    7272message( STATUS "CASA_CODE_PATH = " ${CASA_CODE_PATH} )
    7373set( CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${CASA_CODE_PATH}/install" )
    74 #unset( CASA_CODE_PATH CACHE )
    7574message( STATUS "CMAKE_MODULE_PATH = " ${CMAKE_MODULE_PATH} )
    7675
     
    9998
    10099#
     100# CASA (only alma/ASDM)
     101#
     102find_path( LIBXML2_INCLUDE_DIR libxml/xmlversion.h
     103           PATH_SUFFIXES libxml2 )
     104if( LIBXML2_INCLUDE_DIR MATCHES "NOTFOUND$" )
     105   message( FATAL_ERROR "libxml/xmlversion.h could not be found. Please check!" )
     106endif()
     107message( STATUS "LIBXML2_INCLUDE_DIR = " ${LIBXML2_INCLUDE_DIR} )
     108find_path( LIBXML2_LIBRARY libxml2.so
     109           PATHS /usr
     110           PATH_SUFFIXES lib64 lib )
     111#find_path( LIBXML2_LIBRARY libxml2.so )
     112if ( LIBXML2_LIBRARY MATCHES "NOTFOUND$" )
     113   message( FATAL_ERROR "libxml2.so could not be found. Please check!" )
     114endif()
     115message( STATUS "LIBXML2_LIBRARY = " ${LIBXML2_LIBRARY} )
     116set( ASDM_INCLUDE_DIR ${CASA_CODE_PATH}/alma/implement/ASDM
     117                      ${CASA_CODE_PATH}/alma/implement/Enumerations
     118                      ${CASA_CODE_PATH}/alma/implement/ASDMBinaries
     119                      ${CASA_CODE_PATH}/alma/implement/Enumtcl
     120                      ${LIBXML2_INCLUDE_DIR} )
     121set( ASDM_LIBRARY ${casaroot}/${arch}/lib/libalma.so
     122                  ${LIBXML2_LIBRARY}/libxml2.so )
     123add_definitions( -DWITHOUT_ACS )
     124
     125#
    101126# subdirectories
    102127#  ASAP2TO3 asap2to3       apps
     
    114139   add_subdirectory( python )
    115140   add_subdirectory( share )
     141   add_subdirectory( external-alma/asdm2ASAP )
    116142endmacro( asap_add_subdirectory )
    117143
Note: See TracChangeset for help on using the changeset viewer.