Move header files to the destination 45/275745/4 accepted/tizen/unified/20220601.141537 submit/tizen/20220531.110301
authorUnsung Lee <unsung.lee@samsung.com>
Tue, 31 May 2022 08:50:52 +0000 (17:50 +0900)
committerUnsung Lee <unsung.lee@samsung.com>
Tue, 31 May 2022 11:01:37 +0000 (20:01 +0900)
Change-Id: I328c8adb166cd8c8c412263b74f1debca82a8785
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
CMakeLists.txt
packaging/capi-system-resource.spec

index 6629ca7..ba8dbbb 100644 (file)
@@ -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)
index 9ba758a..24a97ab 100644 (file)
@@ -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