1 # Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
16 # @file CMakeLists.txt
17 # @author Janusz Kozerski (j.kozerski@samsung.com)
22 PKG_CHECK_MODULES(WRT_POPUP_RUNNER_LIB_DEP
28 set(WRT_POPUP_RUNNER_LIB_SRC_DIR ${PROJECT_SOURCE_DIR}/src/wrt-popup/ace/popup-runner)
30 set(WRT_POPUP_RUNNER_LIB_SOURCES
31 ${WRT_POPUP_RUNNER_LIB_SRC_DIR}/popup-runner.cpp
34 ADD_DEFINITIONS(${WRT_POPUP_RUNNER_LIB_DEP_CFLAGS})
37 ${WRT_POPUP_RUNNER_LIB_SRC_DIR}
38 ${WRT_POPUP_RUNNER_LIB_DEP_INCLUDE_DIRS}
41 ADD_LIBRARY(${TARGET_POPUP_ACE_RUNNER_LIB} SHARED
42 ${WRT_POPUP_RUNNER_LIB_SOURCES}
45 SET_TARGET_PROPERTIES(${TARGET_POPUP_ACE_RUNNER_LIB} PROPERTIES
49 SET_TARGET_PROPERTIES(${TARGET_POPUP_ACE_RUNNER_LIB} PROPERTIES
50 SOVERSION ${CMAKE_PROJECT_API_VERSION}
51 VERSION ${CMAKE_PROJECT_VERSION}
54 target_link_libraries(${TARGET_POPUP_ACE_RUNNER_LIB}
55 ${WRT_POPUP_RUNNER_LIB_DEP_LIBRARIES}
56 ${WRT_POPUP_RUNNER_LIB_DEP_LDFLAGS}
59 INSTALL(TARGETS ${TARGET_POPUP_ACE_RUNNER_LIB}
63 INSTALL(FILES ${WRT_POPUP_RUNNER_LIB_SRC_DIR}/popup-runner.h
64 DESTINATION ${DESTINATION_HEADERS_WRT_POPUP_RUNNER}