mirror of
https://github.com/eclipse/upm.git
synced 2025-03-14 20:47:30 +03:00
examples: Add install component for all examples
Provide the functionality to install all UPM examples to DATADIR/upm/examples. Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
parent
f848deb35b
commit
ac89a4a130
@ -117,4 +117,16 @@ if(BUILDEXAMPLES)
|
||||
if(BUILDSWIGJAVA)
|
||||
add_subdirectory (java)
|
||||
endif()
|
||||
|
||||
# Add all examples as an install component (if building examples)
|
||||
install (DIRECTORY ${PROJECT_SOURCE_DIR}/examples
|
||||
DESTINATION ${CMAKE_INSTALL_DATADIR}/upm/
|
||||
COMPONENT ${CMAKE_PROJECT_NAME}-examples
|
||||
FILES_MATCHING
|
||||
PATTERN "*.c"
|
||||
PATTERN "*.cxx"
|
||||
PATTERN "*.hpp"
|
||||
PATTERN "*.java"
|
||||
PATTERN "*.js"
|
||||
PATTERN "*.py")
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user