Changes in trunk/src/CMakeLists.txt [2370:2465]
- File:
-
- 1 edited
-
trunk/src/CMakeLists.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/CMakeLists.txt
r2370 r2465 21 21 # source files for libpyrap 22 22 set( ASAP_SRCS 23 ${SRCDIR}/concurrent.cpp 23 24 ${SRCDIR}/MathUtils.cpp 24 25 ${SRCDIR}/TableTraverse.cpp … … 82 83 ${SRCDIR}/python_asap.cpp ) 83 84 84 add_library( ${ASAPLIB} SHARED ${ASAP_SRCS} ${ASAP_PYSRCS} ) 85 add_library( ${ASAPLIB} SHARED ${ASAP_SRCS} ) 86 add_library( ${ASAPPYLIB} SHARED ${ASAP_PYSRCS} ) 85 87 86 88 # library name must be _asap.so 87 set_target_properties( ${ASAP LIB}89 set_target_properties( ${ASAPPYLIB} 88 90 PROPERTIES 89 PREFIX _91 PREFIX "" 90 92 SUFFIX .so ) 91 93 … … 96 98 #${CASACORE_LIBRARIES} 97 99 ${WCSLIB} ) 100 target_link_libraries( ${ASAPPYLIB} 101 ${ASAPLIB} ) 98 102 99 add_dependencies( inst ${ASAPLIB} ) 103 add_dependencies( inst ${ASAPLIB} 104 ${ASAPPYLIB} ) 100 105 101 106 # install directory 102 107 install( TARGETS ${ASAPLIB} 108 LIBRARY DESTINATION ${LIB_INSTALL_DIR} ) 109 install( TARGETS ${ASAPPYLIB} 103 110 LIBRARY DESTINATION ${PYTHON_INSTALL_DIR} ) 104 if( NOT STANDALONE )105 execute_process(106 COMMAND ln -Fs ../${PYTHON_INSTALL_DIR}/_asap.so ${CMAKE_INSTALL_PREFIX}/lib/_asap.so107 OUTPUT_VARIABLE stuff)108 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.
