Fix CompatibilityManager for share2 folder of compat
[platform/framework/native/installer.git] / CMakeLists.txt
1 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
2
3 SET (this_target osp-installer)
4
5 SET(CMAKE_EXECUTABLE_SUFFIX "")
6 SET(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_SOURCE_DIR}/output")
7
8 INCLUDE_DIRECTORIES(
9         inc
10         src/Context
11         src/Installer
12         src/Manager
13         src/XmlHandler
14         src/XmlHandler/Parser
15         src/Step
16         src/Util
17         /usr/include/glib-2.0
18         /usr/lib/glib-2.0/include
19         /usr/include/dlog
20         /usr/include/pkgmgr
21         /usr/include/appfw
22         /usr/include/osp
23         /usr/include/osp/app
24         /usr/include/osp/base
25         /usr/include/osp/io
26         /usr/include/osp/security
27         /usr/include/osp/system
28         /usr/include/libxml2
29         /usr/include/system
30         /usr/include/cert-svc
31         /usr/include/dpl-efl
32         /usr/include/appcore
33         /usr/include/vconf
34 )
35
36 SET (${this_target}_SOURCE_FILES
37         src/Context/DrmLicense.cpp
38         src/Context/InstallationContext.cpp
39         src/Context/InstallationContextData.cpp
40         src/Installer/DirectoryInstaller.cpp
41         src/Installer/GuestInstaller.cpp
42         src/Installer/IDEInstaller.cpp
43         src/Installer/Installer.cpp
44         src/Installer/PackageInstaller.cpp
45         src/Installer/PreloadedInstaller.cpp
46         src/Installer/RestorationInstaller.cpp
47         src/Manager/CompatibilityManager.cpp
48         src/Manager/ConfigurationManager.cpp
49         src/Manager/DatabaseManager.cpp
50         src/Manager/InstallerManager.cpp
51         src/Manager/PermissionManager.cpp
52         src/Manager/SignatureManager.cpp
53         src/Manager/SmackManager.cpp
54         src/Step/DrmStep.cpp
55         src/Step/IInstallationStep.cpp
56         src/Step/LicenseStep.cpp
57         src/Step/ManifestXmlStep.cpp
58         src/Step/PackageCheckStep.cpp
59         src/Step/RdsStep.cpp
60         src/Step/SignatureStep.cpp
61         src/Step/SystemCheckStep.cpp
62         src/Step/UninstallStep.cpp
63         src/Step/UnpackStep.cpp
64         src/XmlHandler/ManifestGenerator.cpp
65         src/XmlHandler/ManifestHandler.cpp
66         src/XmlHandler/SignatureHandler.cpp
67         src/XmlHandler/XmlAttribute.cpp
68         src/XmlHandler/XmlHandler.cpp
69         src/XmlHandler/XmlWriter.cpp
70         src/XmlHandler/PrivilegeHandler.cpp
71         src/XmlHandler/Parser/ManifestParser.cpp
72         src/XmlHandler/Parser/ManifestAccountsParser.cpp
73         src/XmlHandler/Parser/ManifestAppControlsParser.cpp
74         src/XmlHandler/Parser/ManifestLiveboxesParser.cpp
75         src/backend/backend.cpp
76         src/Util/InstallerUtil.cpp
77         )
78
79 ADD_EXECUTABLE (${this_target} ${${this_target}_SOURCE_FILES})
80
81 SET(CMAKE_C_FLAGS "${OSP_DEBUG_FLAGS} ${OSP_OPT_FLAGS} ${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} ${OSP_COMPILER_FLAGS}")
82 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fexceptions -fvisibility=hidden")
83 SET(CMAKE_CXX_FLAGS "${OSP_DEBUG_FLAGS} ${OSP_OPT_FLAGS} ${CMAKE_CXX_FLAGS} ${EXTRA_CFLAGS} ${OSP_COMPILER_FLAGS}")
84
85 TARGET_LINK_LIBRARIES(${this_target} "-L/usr/lib/osp -losp-appfw -lxml2 -lpkgmgr_installer -lpkgmgr_parser -lglib-2.0 -lapp2ext -ldl" -Wl,--allow-shlib-undefined)
86 TARGET_LINK_LIBRARIES(${this_target} "-L/usr/lib -lcert-svc-vcore -ldpl-efl -lcert-svc -lcapi-system-info -lappcore-common -lpkgmgr-info -lvconf -lcap")
87
88 ADD_SUBDIRECTORY(plugin)
89
90 INSTALL(TARGETS ${this_target} DESTINATION bin)