Changeset 2465 for trunk/src


Ignore:
Timestamp:
04/13/12 18:04:56 (13 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-3960

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: run sd unit/regression tests

Put in Release Notes: No

Module(s): Module Names change impacts.

Description: Describe your changes here...

The library _asap.so is separated into two pieces:

  • _asap.so now contains only python interfaces
  • C++ engines are moved to new library libasap.so

The _asap.so is installed in the same place as before
($CASAROOT/python/2.6/asap) while libasap.so is installed to
$CASAROOT/lib.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/CMakeLists.txt

    r2399 r2465  
    8383     ${SRCDIR}/python_asap.cpp )
    8484
    85 add_library( ${ASAPLIB} SHARED ${ASAP_SRCS} ${ASAP_PYSRCS} )
     85add_library( ${ASAPLIB} SHARED ${ASAP_SRCS} )
     86add_library( ${ASAPPYLIB} SHARED ${ASAP_PYSRCS} )
    8687
    8788# library name must be _asap.so
    88 set_target_properties( ${ASAPLIB}
     89set_target_properties( ${ASAPPYLIB}
    8990                       PROPERTIES
    90                        PREFIX _
     91                       PREFIX ""
    9192                       SUFFIX .so )
    9293
     
    9798                       #${CASACORE_LIBRARIES}
    9899                       ${WCSLIB} )
     100target_link_libraries( ${ASAPPYLIB}
     101                       ${ASAPLIB} )
    99102
    100 add_dependencies( inst ${ASAPLIB} )
     103add_dependencies( inst ${ASAPLIB}
     104                       ${ASAPPYLIB} )
    101105
    102106# install directory
    103107install( TARGETS ${ASAPLIB}
     108         LIBRARY DESTINATION ${LIB_INSTALL_DIR} )
     109install( TARGETS ${ASAPPYLIB}
    104110         LIBRARY DESTINATION ${PYTHON_INSTALL_DIR} )
    105 if( NOT STANDALONE )
    106   execute_process(
    107     COMMAND ln -Fs ../${PYTHON_INSTALL_DIR}/_${ASAPLIB}.so ${CMAKE_INSTALL_PREFIX}/lib/_${ASAPLIB}.so
    108     OUTPUT_VARIABLE stuff)
    109 endif()
     111#if( NOT STANDALONE )
     112#  execute_process(
     113#    COMMAND ln -Fs ../${PYTHON_INSTALL_DIR}/_${ASAPLIB}.so ${CMAKE_INSTALL_PREFIX}/lib/_${ASAPLIB}.so
     114#    OUTPUT_VARIABLE stuff)
     115#endif()
Note: See TracChangeset for help on using the changeset viewer.