语言

Menu
Sites
Language
cmake INSTALL(FILES instead of INSTALL(TARGETS

Hello.

I'm changing cmake from 'build library and install' to 'install prebuild library'.

 

Original is INSTALL(TARGETS ${BULD_LIB} DESTINATION lib).  And before this line, build of BUILD_LIB is occur(link or add).

SET(BUILD_LIB tttrs)...

 

New is just INSTALL(FILES libtttrs.so DESTINATION lib) in cmake.

 

I checked this prebuilded libtttrs.so is work like original one.  But when I use this new line instead of original cmake and do gbs build, appropriate library providing is not work.

Original build log show me 'Provides: libtttrs.so'  It mean this build in cmake is work well.

But new one don't show me the log and failed to build because of other dependency with the library.

 

Installing: /home/abuild/rpmbuild/BUILDROOT/.../libtttrs.so

line is appear in both of cmake.

 

When I use this new line with tizen 3.0 & cmke version 2.6, it work.

tizen 2.4 &cmake version 2.6 is fail.

 

How can I provide library with INSTALL(FILES ... options with prebuilded library?

 

响应

1 回复
Shaswati Saha

Are you trying to use a prebuilt .so file from other tizen project? If yes then would you please follow the procedure described into this link

Moreover, I couldn't understand the line "How can I provide library with INSTALL(FILES ... options with prebuilded library?" from your post. Would you please make it clear?