- Timestamp:
- 04/13/12 18:04:56 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/CMakeLists.txt
r2399 r2465 83 83 ${SRCDIR}/python_asap.cpp ) 84 84 85 add_library( ${ASAPLIB} SHARED ${ASAP_SRCS} ${ASAP_PYSRCS} ) 85 add_library( ${ASAPLIB} SHARED ${ASAP_SRCS} ) 86 add_library( ${ASAPPYLIB} SHARED ${ASAP_PYSRCS} ) 86 87 87 88 # library name must be _asap.so 88 set_target_properties( ${ASAP LIB}89 set_target_properties( ${ASAPPYLIB} 89 90 PROPERTIES 90 PREFIX _91 PREFIX "" 91 92 SUFFIX .so ) 92 93 … … 97 98 #${CASACORE_LIBRARIES} 98 99 ${WCSLIB} ) 100 target_link_libraries( ${ASAPPYLIB} 101 ${ASAPLIB} ) 99 102 100 add_dependencies( inst ${ASAPLIB} ) 103 add_dependencies( inst ${ASAPLIB} 104 ${ASAPPYLIB} ) 101 105 102 106 # install directory 103 107 install( TARGETS ${ASAPLIB} 108 LIBRARY DESTINATION ${LIB_INSTALL_DIR} ) 109 install( TARGETS ${ASAPPYLIB} 104 110 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}.so108 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.