summaryrefslogtreecommitdiff
path: root/src/ui/popup-bin/CMakeLists.txt
blob: 285653a4f571210d1fe90cc60b8d87163f067fdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
#
#    Licensed under the Apache License, Version 2.0 (the "License");
#    you may not use this file except in compliance with the License.
#    You may obtain a copy of the License at
#
#        http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS,
#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#    See the License for the specific language governing permissions and
#    limitations under the License.
#
#
# @file     CMakeLists.txt
# @author   Janusz Kozerski (j.kozerski@samsung.com)
#
# @version  1.0
#

PKG_CHECK_MODULES(CERT_CHECKER_POPUP_DEP
    elementary
    libsystemd-journal
    libtzplatform-config
    REQUIRED)

set(CERT_CHECKER_POPUP_SRC_DIR ${PROJECT_SOURCE_DIR}/src/ui/popup-bin)

set(CERT_CHECKER_POPUP_SOURCES
    ${CERT_CHECKER_POPUP_SRC_DIR}/popup.cpp
    ${CERT_CHECKER_UI_PATH}/popup-runner.cpp
    ${CERT_CHECKER_SERVICE_PATH}/app.cpp
    # logs
    ${CERT_CHECKER_LOG_PATH}/log.cpp
    # dpl
    ${DPL_CORE_SRC_PATH}/assert.cpp
    ${DPL_CORE_SRC_PATH}/exception.cpp
    ${DPL_CORE_SRC_PATH}/serialization.cpp
    ${DPL_CORE_SRC_PATH}/errno_string.cpp
    ${DPL_CORE_SRC_PATH}/noncopyable.cpp
)

ADD_DEFINITIONS(${CERT_CHECKER_POPUP_DEP_CFLAGS})

INCLUDE_DIRECTORIES(
    ${CERT_CHECKER_POPUP_SRC_DIR}
    ${CERT_CHECKER_POPUP_DEP_INCLUDE_DIRS}
    ${CERT_CHECKER_SRC_PATH}/include/
    ${DPL_CORE_SRC_PATH}/include/
)

ADD_EXECUTABLE(${TARGET_CERT_CHECKER_POPUP}
    ${CERT_CHECKER_POPUP_SOURCES}
)

SET_TARGET_PROPERTIES(${TARGET_CERT_CHECKER_POPUP} PROPERTIES
    COMPILE_FLAGS
    -fpie
)

TARGET_LINK_LIBRARIES(${TARGET_CERT_CHECKER_POPUP}
    ${CERT_CHECKER_POPUP_DEP_LIBRARIES}
    -pie
)

INSTALL(TARGETS ${TARGET_CERT_CHECKER_POPUP} DESTINATION ${BIN_DIR})