summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2019-03-25 10:39:24 +0100
committerMauro Sardara <msardara@cisco.com>2019-03-25 12:20:33 +0100
commit558581790763815071e9c77e06047e689faf752f (patch)
treebbd8bd357e7ed588ea863116e2873c53260d697d /cmake
parent777974a5b295cbe7ff762358ac3e9dac4c502aaf (diff)
[HICN-141] Install headers in hicn-light component.
Change-Id: I3c7aef4f6ecd147156ecab6aaa6cb2845768645f Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/BuildMacros.cmake9
1 files changed, 7 insertions, 2 deletions
diff --git a/cmake/Modules/BuildMacros.cmake b/cmake/Modules/BuildMacros.cmake
index 0908189b5..e7244d2bc 100644
--- a/cmake/Modules/BuildMacros.cmake
+++ b/cmake/Modules/BuildMacros.cmake
@@ -62,7 +62,7 @@ endmacro()
macro(build_library lib)
cmake_parse_arguments(ARG
- "SHARED;STATIC"
+ "SHARED;STATIC;NO_DEV"
"COMPONENT;"
"SOURCES;LINK_LIBRARIES;INSTALL_HEADERS;DEPENDS;INCLUDE_DIRS;DEFINITIONS;INSTALL_ROOT_DIR"
${ARGN}
@@ -166,10 +166,15 @@ macro(build_library lib)
if (${dir} STREQUAL src)
set(dir "")
endif()
+
+ set(COMPONENT ${ARG_COMPONENT})
+ if (NOT ARG_NO_DEV)
+ set(COMPONENT ${COMPONENT}-dev)
+ endif()
install(
FILES ${file}
DESTINATION include/${ARG_INSTALL_ROOT_DIR}/${dir}
- COMPONENT ${ARG_COMPONENT}-dev
+ COMPONENT ${COMPONENT}
)
endforeach()
endif()