Commit f50a3ec3 authored by Marco Berzborn's avatar Marco Berzborn
Browse files

add lib prefix to install for linux compat

parent 2e40a3cc
......@@ -64,25 +64,27 @@ vista_install_files_by_extension( dist/Lib/site-packages "python/Lib/site-packag
# install by copying DLL/SO next to python extension
set( SHARED_LIBRARY_EXTENSION "dll" )
set( SHARED_LIBRARY_PREFIX "" )
if( NOT WIN32 )
set( SHARED_LIBRARY_EXTENSION "so" )
set( SHARED_LIBRARY_PREFIX "lib" )
endif( )
if( BUILD_SHARED_LIBS )
# VA shared libs
install( FILES "${VABASE_LIBRARY_DIRS}/VABase.${SHARED_LIBRARY_EXTENSION}" DESTINATION "python/Lib/site-packages" )
install( FILES "${VANET_LIBRARY_DIRS}/VANet.${SHARED_LIBRARY_EXTENSION}" DESTINATION "python/Lib/site-packages" )
install( FILES "${VABASE_LIBRARY_DIRS}/${SHARED_LIBRARY_PREFIX}VABase.${SHARED_LIBRARY_EXTENSION}" DESTINATION "python/Lib/site-packages" )
install( FILES "${VANET_LIBRARY_DIRS}/${SHARED_LIBRARY_PREFIX}VANet.${SHARED_LIBRARY_EXTENSION}" DESTINATION "python/Lib/site-packages" )
# VistaCoreLibs shared libs
foreach( VISTACORELIBS_LIBRARY_DIR ${VISTACORELIBS_LIBRARY_DIRS} )
if( EXISTS "${VISTACORELIBS_LIBRARY_DIR}/VistaBase.${SHARED_LIBRARY_EXTENSION}" )
install( FILES "${VISTACORELIBS_LIBRARY_DIR}/VistaBase.${SHARED_LIBRARY_EXTENSION}" DESTINATION "python/Lib/site-packages" )
if( EXISTS "${VISTACORELIBS_LIBRARY_DIR}/${SHARED_LIBRARY_PREFIX}VistaBase.${SHARED_LIBRARY_EXTENSION}" )
install( FILES "${VISTACORELIBS_LIBRARY_DIR}/${SHARED_LIBRARY_PREFIX}VistaBase.${SHARED_LIBRARY_EXTENSION}" DESTINATION "python/Lib/site-packages" )
endif( )
if( EXISTS "${VISTACORELIBS_LIBRARY_DIR}/VistaAspects.${SHARED_LIBRARY_EXTENSION}" )
install( FILES "${VISTACORELIBS_LIBRARY_DIR}/VistaAspects.${SHARED_LIBRARY_EXTENSION}" DESTINATION "python/Lib/site-packages" )
if( EXISTS "${VISTACORELIBS_LIBRARY_DIR}/${SHARED_LIBRARY_PREFIX}VistaAspects.${SHARED_LIBRARY_EXTENSION}" )
install( FILES "${VISTACORELIBS_LIBRARY_DIR}/${SHARED_LIBRARY_PREFIX}VistaAspects.${SHARED_LIBRARY_EXTENSION}" DESTINATION "python/Lib/site-packages" )
endif( )
if( EXISTS "${VISTACORELIBS_LIBRARY_DIR}/VistaInterProcComm.${SHARED_LIBRARY_EXTENSION}" )
install( FILES "${VISTACORELIBS_LIBRARY_DIR}/VistaInterProcComm.${SHARED_LIBRARY_EXTENSION}" DESTINATION "python/Lib/site-packages" )
if( EXISTS "${VISTACORELIBS_LIBRARY_DIR}/${SHARED_LIBRARY_PREFIX}VistaInterProcComm.${SHARED_LIBRARY_EXTENSION}" )
install( FILES "${VISTACORELIBS_LIBRARY_DIR}/${SHARED_LIBRARY_PREFIX}VistaInterProcComm.${SHARED_LIBRARY_EXTENSION}" DESTINATION "python/Lib/site-packages" )
endif( )
endforeach( )
endif( )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment