From: <ai...@us...> - 2009-02-01 00:46:57
|
Revision: 9421 http://plplot.svn.sourceforge.net/plplot/?rev=9421&view=rev Author: airwin Date: 2009-02-01 00:46:46 +0000 (Sun, 01 Feb 2009) Log Message: ----------- Install Lua wrapper shared object with correct RPATH, etc., information into $prefix/lib. This install location is a temporary measure to help get the installed Lua examples working. Some additional research needed to figure out the best install location. Modified Paths: -------------- trunk/bindings/lua/CMakeLists.txt Modified: trunk/bindings/lua/CMakeLists.txt =================================================================== --- trunk/bindings/lua/CMakeLists.txt 2009-02-01 00:17:21 UTC (rev 9420) +++ trunk/bindings/lua/CMakeLists.txt 2009-02-01 00:46:46 UTC (rev 9421) @@ -45,4 +45,31 @@ swig_add_module(plplotluac lua plplotluac.i) swig_link_libraries(plplotluac plplot${LIB_TAG} ${LUA_LIBRARIES}) +if(USE_RPATH) + get_target_property(LIB_INSTALL_RPATH plplot${LIB_TAG} INSTALL_RPATH) + set_target_properties( + plplotluac + PROPERTIES + INSTALL_RPATH "${LIB_INSTALL_RPATH}" + INSTALL_NAME_DIR "${LIB_DIR}" + ) +else(USE_RPATH) + set_target_properties( + plplotluac + PROPERTIES + INSTALL_NAME_DIR "${LIB_DIR}" + ) +endif(USE_RPATH) + +# Ensure we get the correct suffix for OS-X +if(APPLE) + set_target_properties( + plplotluac + PROPERTIES + SUFFIX ".dylib" + ) +endif(APPLE) + +install(TARGETS plplotluac LIBRARY DESTINATION ${LIB_DIR}) + endif(ENABLE_lua) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |