From: Unsung Lee Date: Tue, 31 May 2022 08:50:52 +0000 (+0900) Subject: Move header files to the destination X-Git-Tag: accepted/tizen/unified/20220601.141537^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F45%2F275745%2F4;p=platform%2Fcore%2Fapi%2Fresource.git Move header files to the destination Change-Id: I328c8adb166cd8c8c412263b74f1debca82a8785 Signed-off-by: Unsung Lee --- 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