mpp : Add install libmpp.a and libmpp.so

libraries will be installed to ${CMAKE_SOURCE_DIR}/out/lib by default.
Building with cmake defination LIB_INSTALL_DIR can override install dir.
For example, if you want install to linux system dir,
use "cmake -DLIB_INSTALL_DIR=/usr/lib ...".

Change-Id: Ie19a768f05f2a53f154a49c2c6032eecdf95f7ed
Signed-off-by: Cody Xie <xkd@rock-chips.com>
This commit is contained in:
Cody Xie
2016-11-24 10:25:39 +08:00
committed by Herman Chen
parent 9e4559e482
commit b534aaf68e

View File

@@ -57,3 +57,7 @@ add_subdirectory(legacy)
add_subdirectory(test) add_subdirectory(test)
install(TARGETS mpp mpp_shared
ARCHIVE DESTINATION "${LIB_INSTALL_DIR}"
LIBRARY DESTINATION "${LIB_INSTALL_DIR}"
)