ADD_DEFINITIONS("-DLIBPREFIX=\"${LIB_INSTALL_DIR}\"")
# Local include directories
-INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/inc
- ${CMAKE_SOURCE_DIR}/common/inc)
+INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/inc)
# build app2ext library
SET(APP2EXT "app2ext")
-SET(app2ext_src_dir "${CMAKE_SOURCE_DIR}/src")
-SET(libapp2ext_SOURCES
- ${app2ext_src_dir}/app2ext_interface.c
- ${CMAKE_SOURCE_DIR}/common/src/app2ext_utils.c)
+AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/src APP2EXT_SRCS)
-ADD_LIBRARY(${APP2EXT} SHARED ${libapp2ext_SOURCES})
+ADD_LIBRARY(${APP2EXT} SHARED ${APP2EXT_SRCS})
SET_TARGET_PROPERTIES(${APP2EXT} PROPERTIES SOVERSION ${VERSION_MAJOR})
SET_TARGET_PROPERTIES(${APP2EXT} PROPERTIES VERSION ${VERSION})
SET_TARGET_PROPERTIES(${APP2EXT} PROPERTIES COMPILE_FLAGS ${CFLAGS} "-fPIC")
INSTALL(TARGETS ${APP2EXT} DESTINATION ${LIB_INSTALL_DIR} COMPONENT RuntimeLibraries)
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/app2sd.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/inc/app2ext_interface.h DESTINATION include)
+INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/inc/ DESTINATION include)
IF(TIZEN_FEATURE_APP2SD_PLUGIN)
ADD_SUBDIRECTORY(test)