@ -1,7 +1,22 @@
# Copyright ( c ) 2 0 1 8 P a d d l e P a d d l e A u t h o r s . A l l R i g h t s R e s e r v e d .
#
# L i c e n s e d u n d e r t h e A p a c h e L i c e n s e , V e r s i o n 2 . 0 ( the "License" ) ;
# y o u m a y n o t u s e t h i s f i l e e x c e p t i n c o m p l i a n c e w i t h t h e L i c e n s e .
# Y o u m a y o b t a i n a c o p y o f t h e L i c e n s e a t
#
# h t t p : / / w w w . a p a c h e . o r g / l i c e n s e s / L I C E N S E - 2 . 0
#
# U n l e s s r e q u i r e d b y a p p l i c a b l e l a w o r a g r e e d t o i n w r i t i n g , s o f t w a r e
# d i s t r i b u t e d u n d e r t h e L i c e n s e i s d i s t r i b u t e d o n a n " A S I S " B A S I S ,
# W I T H O U T W A R R A N T I E S O R C O N D I T I O N S O F A N Y K I N D , e i t h e r e x p r e s s o r i m p l i e d .
# S e e t h e L i c e n s e f o r t h e s p e c i f i c l a n g u a g e g o v e r n i n g p e r m i s s i o n s a n d
# l i m i t a t i o n s u n d e r t h e L i c e n s e .
set_property ( GLOBAL PROPERTY FLUID_MODULES "" )
# f i n d a l l f l u i d m o d u l e s i s u s e d f o r p a d d l e f l u i d s t a t i c l i b r a r y
function ( find_fluid_modules TARGET_NAME )
get_filename_component ( __target_path ${ TARGET_NAME } ABSOLUTE )
string ( REGEX REPLACE "^${PADDLE_SOURCE_DIR}/" "" __target_path ${ __target_path } )
string ( FIND "${__target_path}" "fluid" pos )
if ( pos GREATER 1 )
get_property ( fluid_modules GLOBAL PROPERTY FLUID_MODULES )
@ -77,6 +92,23 @@ elseif (WITH_MKLML)
)
endif ( )
if ( NOT MOBILE_INFERENCE AND NOT RPI )
set ( dst_dir "${CMAKE_INSTALL_PREFIX}/third_party/install/snappy" )
copy ( snappy_lib
S R C S $ { S N A P P Y _ I N C L U D E _ D I R } $ { S N A P P Y _ L I B R A R I E S }
D S T S $ { d s t _ d i r } $ { d s t _ d i r } / l i b )
set ( dst_dir "${CMAKE_INSTALL_PREFIX}/third_party/install/snappystream" )
copy ( snappystream_lib
S R C S $ { S N A P P Y S T R E A M _ I N C L U D E _ D I R } $ { S N A P P Y S T R E A M _ L I B R A R I E S }
D S T S $ { d s t _ d i r } $ { d s t _ d i r } / l i b )
set ( dst_dir "${CMAKE_INSTALL_PREFIX}/third_party/install/zlib" )
copy ( zlib_lib
S R C S $ { Z L I B _ I N C L U D E _ D I R } $ { Z L I B _ L I B R A R I E S }
D S T S $ { d s t _ d i r } $ { d s t _ d i r } / l i b )
endif ( )
# p a d d l e f l u i d m o d u l e
set ( src_dir "${PADDLE_SOURCE_DIR}/paddle/fluid" )
set ( dst_dir "${CMAKE_INSTALL_PREFIX}/paddle/fluid" )