[Recovery] StepRecoverIcons
[platform/core/appfw/app-installers.git] / src / common / CMakeLists.txt
1 # Target - sources
2 SET(SRCS
3   app_installer.cc
4   context_installer.cc
5   pkgmgr_interface.cc
6   pkgmgr_registration.cc
7   pkgmgr_signal.cc
8   recovery_file.cc
9   security_registration.cc
10   step/step_backup_icons.cc
11   step/step_backup_manifest.cc
12   step/step_unzip.cc
13   step/step_create_icons.cc
14   step/step_check_old_certificate.cc
15   step/step_check_signature.cc
16   step/step_configure.cc
17   step/step_copy.cc
18   step/step_copy_backup.cc
19   step/step_copy_storage_directories.cc
20   step/step_create_storage_directories.cc
21   step/step_generate_xml.cc
22   step/step_recover_icons.cc
23   step/step_recover_manifest.cc
24   step/step_recovery.cc
25   step/step_register_app.cc
26   step/step_old_manifest.cc
27   step/step_open_recovery_file.cc
28   step/step_parse.cc
29   step/step_remove_icons.cc
30   step/step_remove_files.cc
31   step/step_revoke_security.cc
32   step/step_register_security.cc
33   step/step_unregister_app.cc
34   step/step_update_app.cc
35   step/step_update_security.cc
36   utils/file_util.cc
37   utils/string_util.cc
38 )
39 # Target - definition
40 ADD_LIBRARY(${TARGET_LIBNAME_COMMON} SHARED ${SRCS})
41 # Target - includes
42 TARGET_INCLUDE_DIRECTORIES(${TARGET_LIBNAME_COMMON} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/../")
43 # Target - deps
44 APPLY_PKG_CONFIG(${TARGET_LIBNAME_COMMON} PUBLIC
45   PKGMGR_DEPS
46   PKGMGR_INFO_DEPS
47   PKGMGR_PARSER_DEPS
48   PKGMGR_INSTALLER_DEPS
49   SECURITY_MANAGER_DEPS
50   TZPLATFORM_CONFIG_DEPS
51   LIBXML_DEPS
52   CERT_SVC_DEPS_VCORE
53   MINIZIP_DEPS
54   ZLIB_DEPS
55   PRIVILEGE_CHECKER_DEPS
56   Boost
57 )
58
59 # Extra
60 SET_TARGET_PROPERTIES(${TARGET_LIBNAME_COMMON} PROPERTIES VERSION ${VERSION})
61 SET_TARGET_PROPERTIES(${TARGET_LIBNAME_COMMON} PROPERTIES SOVERSION ${VERSION_MAJOR})
62
63 # Install
64 INSTALL(TARGETS ${TARGET_LIBNAME_COMMON} DESTINATION ${LIB_INSTALL_DIR})