Fix CMakeLists and spec files 28/91028/2 accepted/tizen/common/20161011.061058 accepted/tizen/ivi/20161011.233936 accepted/tizen/mobile/20161011.233927 accepted/tizen/tv/20161011.233933 accepted/tizen/wearable/20161011.233930 submit/tizen/20161010.222621
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 5 Oct 2016 10:14:32 +0000 (19:14 +0900)
committerHwanKyu Jhun <h.jhun@samsung.com>
Fri, 7 Oct 2016 01:03:15 +0000 (18:03 -0700)
Change-Id: Ie54d22d8a973357feb300d03ab98c9d17672c7dd
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
CMakeLists.txt
packaging/capi-appfw-app-manager.spec

index dd5de74..968364d 100644 (file)
@@ -1,10 +1,7 @@
 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
 
 PROJECT(capi-appfw-app-manager C)
-SET(SOURCES src/app_context.c
-       src/app_info.c
-       src/app_manager_event.c
-       src/app_manager.c)
+AUX_SOURCE_DIRECTORY(src SOURCES)
 
 INCLUDE(FindPkgConfig)
 pkg_check_modules(PKGS REQUIRED
@@ -37,10 +34,10 @@ SET(PC_PREFIX ${CMAKE_INSTALL_PREFIX})
 CONFIGURE_FILE(capi-appfw-app-manager.pc.in ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}.pc @ONLY)
 
 INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${LIB_INSTALL_DIR})
-INSTALL(FILES ${INC_DIR}/app_context.h DESTINATION include/appfw)
-INSTALL(FILES ${INC_DIR}/app_manager_extension.h DESTINATION include/appfw)
-INSTALL(FILES ${INC_DIR}/app_manager.h DESTINATION include/appfw)
-INSTALL(FILES ${INC_DIR}/app_info.h DESTINATION include/appfw)
+
+INSTALL(DIRECTORY ${INC_DIR}/ DESTINATION include/appfw
+       FILES_MATCHING
+       PATTERN "${INC_DIR}/*.h")
 
 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
 
index d37e372..485f226 100644 (file)
@@ -54,10 +54,7 @@ rm -rf %{buildroot}
 %license LICENSE
 
 %files devel
-%{_includedir}/appfw/app_context.h
-%{_includedir}/appfw/app_manager_extension.h
-%{_includedir}/appfw/app_manager.h
-%{_includedir}/appfw/app_info.h
+%{_includedir}/appfw/*.h
 %{_libdir}/libcapi-appfw-app-manager.so
 %{_libdir}/pkgconfig/*.pc