mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-29 11:42:05 +08:00
mpp : Add install mpp public header files.
Headers will be installed to ${CMAKE_SOURCE_DIR}/out/inc by default.
Override INC_INSTALL_DIR to install to linux system dir.
"cmake -DINC_INSTALL_DIR=/usr/include/mpp ..."
Change-Id: I94cd4652e9ce728107b29e6715a50d51e68ceb8c
Signed-off-by: Cody Xie <xkd@rock-chips.com>
This commit is contained in:
@@ -334,6 +334,7 @@ set(CMAKE_INSTALL_PREFIX "")
|
|||||||
set(LIB_INSTALL_DIR "${CMAKE_SOURCE_DIR}/out/lib" CACHE STRING "Install location of libraries")
|
set(LIB_INSTALL_DIR "${CMAKE_SOURCE_DIR}/out/lib" CACHE STRING "Install location of libraries")
|
||||||
set(BIN_INSTALL_DIR "${CMAKE_SOURCE_DIR}/out/bin" CACHE STRING "Install location of executables")
|
set(BIN_INSTALL_DIR "${CMAKE_SOURCE_DIR}/out/bin" CACHE STRING "Install location of executables")
|
||||||
set(TEST_INSTALL_DIR "${CMAKE_BINARY_DIR}/test" CACHE STRING "Install location of unit test")
|
set(TEST_INSTALL_DIR "${CMAKE_BINARY_DIR}/test" CACHE STRING "Install location of unit test")
|
||||||
|
set(INC_INSTALL_DIR "${CMAKE_SOURCE_DIR}/out/inc" CACHE STRING "Install location of headers")
|
||||||
|
|
||||||
|
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
@@ -457,3 +458,11 @@ add_subdirectory(mpp)
|
|||||||
# test / demo
|
# test / demo
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
add_subdirectory(test)
|
add_subdirectory(test)
|
||||||
|
|
||||||
|
# ----------------------------------------------------------------------------
|
||||||
|
# install headers
|
||||||
|
# ----------------------------------------------------------------------------
|
||||||
|
install(DIRECTORY ${CMAKE_SOURCE_DIR}/inc/
|
||||||
|
DESTINATION "${INC_INSTALL_DIR}"
|
||||||
|
FILES_MATCHING PATTERN "*.h"
|
||||||
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user