mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-12-26 11:17:44 +01: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:
parent
b534aaf68e
commit
3f0b6e50bd
1 changed files with 12 additions and 3 deletions
|
|
@ -334,6 +334,7 @@ set(CMAKE_INSTALL_PREFIX "")
|
|||
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(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
|
||||
# ----------------------------------------------------------------------------
|
||||
add_subdirectory(test)
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
# install headers
|
||||
# ----------------------------------------------------------------------------
|
||||
install(DIRECTORY ${CMAKE_SOURCE_DIR}/inc/
|
||||
DESTINATION "${INC_INSTALL_DIR}"
|
||||
FILES_MATCHING PATTERN "*.h"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue