mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
JSON: Install JSON library descriptor files
Install the provided json files to DATADIR. Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
parent
18b8ca2633
commit
71b2b9b1fc
@ -764,6 +764,13 @@ function(upm_module_init)
|
||||
# Install header files to include/upm/
|
||||
install (FILES ${module_hpp} DESTINATION include/upm COMPONENT ${libname})
|
||||
|
||||
# Install JSON library descriptor files into datadir (if they exist)
|
||||
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${basename}.json")
|
||||
install (FILES "${CMAKE_CURRENT_SOURCE_DIR}/${basename}.json"
|
||||
DESTINATION ${CMAKE_INSTALL_DATADIR}/upm/${basename}
|
||||
COMPONENT ${basename})
|
||||
endif ()
|
||||
|
||||
if (IPK)
|
||||
cpack_add_component (${libname} DISPLAY_NAME ${libname} REQUIRED INSTALL_TYPES all)
|
||||
set(CPACK_COMPONENT_${libname}_DESCRIPTION "${libdescription}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user