Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/CMakeLists.txt

    r2465 r2370  
    2121# source files for libpyrap
    2222set( ASAP_SRCS
    23      ${SRCDIR}/concurrent.cpp
    2423     ${SRCDIR}/MathUtils.cpp
    2524     ${SRCDIR}/TableTraverse.cpp
     
    8382     ${SRCDIR}/python_asap.cpp )
    8483
    85 add_library( ${ASAPLIB} SHARED ${ASAP_SRCS} )
    86 add_library( ${ASAPPYLIB} SHARED ${ASAP_PYSRCS} )
     84add_library( ${ASAPLIB} SHARED ${ASAP_SRCS} ${ASAP_PYSRCS} )
    8785
    8886# library name must be _asap.so
    89 set_target_properties( ${ASAPPYLIB}
     87set_target_properties( ${ASAPLIB}
    9088                       PROPERTIES
    91                        PREFIX ""
     89                       PREFIX _
    9290                       SUFFIX .so )
    9391
     
    9896                       #${CASACORE_LIBRARIES}
    9997                       ${WCSLIB} )
    100 target_link_libraries( ${ASAPPYLIB}
    101                        ${ASAPLIB} )
    10298
    103 add_dependencies( inst ${ASAPLIB}
    104                        ${ASAPPYLIB} )
     99add_dependencies( inst ${ASAPLIB} )
    105100
    106101# install directory
    107102install( TARGETS ${ASAPLIB}
    108          LIBRARY DESTINATION ${LIB_INSTALL_DIR} )
    109 install( TARGETS ${ASAPPYLIB}
    110103         LIBRARY DESTINATION ${PYTHON_INSTALL_DIR} )
    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()
     104if( NOT STANDALONE )
     105  execute_process(
     106    COMMAND ln -Fs ../${PYTHON_INSTALL_DIR}/_asap.so ${CMAKE_INSTALL_PREFIX}/lib/_asap.so
     107    OUTPUT_VARIABLE stuff)
     108endif()
Note: See TracChangeset for help on using the changeset viewer.