Fix CMakeLists.txt 82/98582/2 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable accepted/tizen_3.0_common accepted/tizen_3.0_ivi accepted/tizen_3.0_mobile accepted/tizen_3.0_tv accepted/tizen_3.0_wearable tizen_3.0 tizen_3.0.m2 tizen_3.0_tv accepted/tizen/3.0.m2/mobile/20170104.122007 accepted/tizen/3.0.m2/tv/20170104.122631 accepted/tizen/3.0.m2/wearable/20170104.122956 accepted/tizen/3.0/common/20161123.140603 accepted/tizen/3.0/ivi/20161123.083217 accepted/tizen/3.0/mobile/20161123.083116 accepted/tizen/3.0/tv/20161123.083144 accepted/tizen/3.0/wearable/20161123.083201 submit/tizen_3.0.m2/20170104.093749 submit/tizen_3.0/20161122.021326
authorJiwoong Im <jiwoong.im@samsung.com>
Fri, 18 Nov 2016 00:55:29 +0000 (09:55 +0900)
committerJiwoong Im <jiwoong.im@samsung.com>
Fri, 18 Nov 2016 04:12:47 +0000 (13:12 +0900)
To make extendible for adding source & header files.

Change-Id: I646f0b36af92a4b7e3b9151a3937c32b70990fcd
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
CMakeLists.txt
packaging/app-svc.spec

index ef06907..4fb780e 100644 (file)
@@ -4,6 +4,7 @@ SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
 PROJECT(appsvc C)
 SET(VERSION_MAJOR 0)
 SET(VERSION "${VERSION_MAJOR}.1.0")
+AUX_SOURCE_DIRECTORY(src SOURCES)
 
 ### Global setting ###
 
@@ -62,9 +63,8 @@ SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed")
 
 ### Build ###
 # aul
-add_library(appsvc SHARED
-               src/appsvc.c
-               )
+ADD_LIBRARY(appsvc SHARED ${SOURCES})
+
 TARGET_LINK_LIBRARIES(appsvc ${libpkgs_LDFLAGS})
 SET_TARGET_PROPERTIES(appsvc PROPERTIES SOVERSION ${VERSION_MAJOR})
 SET_TARGET_PROPERTIES(appsvc PROPERTIES VERSION ${VERSION})
@@ -77,7 +77,10 @@ CONFIGURE_FILE(appsvc.pc.in appsvc.pc @ONLY)
 INSTALL(TARGETS appsvc DESTINATION ${LIB_INSTALL_DIR} COMPONENT RuntimeLibraries)
 INSTALL(TARGETS ${AVATAR_NAME} DESTINATION bin)
 
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/appsvc.h DESTINATION include/appsvc)
+INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/include/ DESTINATION include/appsvc/
+       FILES_MATCHING
+       PATTERN "*.h"
+       )
 INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/appsvc.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
 
 # test
index 3724c0d..5611618 100644 (file)
@@ -67,4 +67,4 @@ cp %{SOURCE1001} .
 %manifest %{name}.manifest
 %{_libdir}/pkgconfig/appsvc.pc
 %{_libdir}/libappsvc.so
-%{_includedir}/appsvc/appsvc.h
+%{_includedir}/appsvc/*.h