From 218419aeebc7d33c3affc6c67ecc424c0cf38d93 Mon Sep 17 00:00:00 2001 From: Unsung Lee Date: Tue, 31 May 2022 17:50:52 +0900 Subject: [PATCH] Move header files to the destination Change-Id: I328c8adb166cd8c8c412263b74f1debca82a8785 Signed-off-by: Unsung Lee --- CMakeLists.txt | 6 +++++- packaging/capi-system-resource.spec | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6629ca7..ba8dbbb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,7 +11,8 @@ SET(PKG_MODULES libsyscommon ) -INCLUDE_DIRECTORIES(include) +SET(INC_DIR include) +INCLUDE_DIRECTORIES(${INC_DIR}) INCLUDE(FindPkgConfig) pkg_check_modules(${PROJECT_NAME} REQUIRED ${PKG_MODULES}) @@ -46,6 +47,9 @@ CONFIGURE_FILE( @ONLY ) INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig) +INSTALL( + DIRECTORY ${INC_DIR}/ DESTINATION /usr/include/system + FILES_MATCHING PATTERN "cpu-boosting*.h") ADD_SUBDIRECTORY(src/plugin) ADD_SUBDIRECTORY(tests) diff --git a/packaging/capi-system-resource.spec b/packaging/capi-system-resource.spec index 9ba758a..24a97ab 100644 --- a/packaging/capi-system-resource.spec +++ b/packaging/capi-system-resource.spec @@ -71,6 +71,7 @@ MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'` %license LICENSE.MIT %{_libdir}/pkgconfig/*.pc %{_libdir}/libcapi-system-resource.so +%{_includedir}/system/*.h %files plugin %manifest %{name}.manifest -- 2.34.1