Change systemd-devel package name
[platform/upstream/csr-framework.git] / src / framework / ui / popup / CMakeLists.txt
1 # Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
2 #
3 #    Licensed under the Apache License, Version 2.0 (the "License");
4 #    you may not use this file except in compliance with the License.
5 #    You may obtain a copy of the License at
6 #
7 #        http://www.apache.org/licenses/LICENSE-2.0
8 #
9 #    Unless required by applicable law or agreed to in writing, software
10 #    distributed under the License is distributed on an "AS IS" BASIS,
11 #    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 #    See the License for the specific language governing permissions and
13 #    limitations under the License.
14 #
15 #
16 # @file     CMakeLists.txt
17 # @author   Janusz Kozerski (j.kozerski@samsung.com)
18 # @version  1.0
19 #
20 PKG_CHECK_MODULES(${TARGET_CSR_POPUP}_DEP
21         REQUIRED
22         elementary
23         efl-extension
24         libsystemd
25         vconf
26         pkgmgr-info
27         capi-appfw-application
28         icu-i18n
29 )
30
31 INCLUDE_DIRECTORIES(
32         ${${TARGET_CSR_POPUP}_DEP_INCLUDE_DIRS}
33         .
34         ${PROJECT_SOURCE_DIR}/src/framework
35 )
36
37 SET(${TARGET_CSR_POPUP}_SRCS
38         main.cpp
39         logic.cpp
40         popup.cpp
41         popup-service.cpp
42         ecore-mainloop.cpp
43         package-info.cpp
44         ${PROJECT_SOURCE_DIR}/src/framework/ui/common.cpp
45 )
46
47 SET_SOURCE_FILES_PROPERTIES(${${TARGET_CSR_POPUP}_SRCS}
48         PROPERTIES
49                 COMPILE_FLAGS "-D_GNU_SOURCE -fPIE"
50 )
51
52 ADD_EXECUTABLE(${TARGET_CSR_POPUP} ${${TARGET_CSR_POPUP}_SRCS})
53
54 TARGET_LINK_LIBRARIES(${TARGET_CSR_POPUP}
55         ${${TARGET_CSR_POPUP}_DEP_LIBRARIES}
56         ${TARGET_CSR_COMMON}
57         -pie
58 )
59
60 INSTALL(TARGETS ${TARGET_CSR_POPUP} DESTINATION ${BIN_DIR})