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 ADD_LIBRARY(${TARGET_CORE_MODULE_LIB} SHARED
17 ${PROJECT_SOURCE_DIR}/src/api_new/core_module.cpp
18 ${PROJECT_SOURCE_DIR}/src/api_new/runnable_widget_object.cpp
19 ${PROJECT_SOURCE_DIR}/src/api_new/runnable_widget_object_state.cpp
22 SET_TARGET_PROPERTIES(${TARGET_CORE_MODULE_LIB} PROPERTIES
23 # COMPILE_FLAGS "-include profiling_util.h"
24 OUTPUT_NAME ${TARGET_CORE_MODULE_LIB}
27 PKG_CHECK_MODULES(CORE_MODULE_DEP
34 PKG_CHECK_MODULES(SYS_CORE_MODULE_DEP
41 ${CORE_MODULE_DEP_INCLUDE_DIRS}
42 ${CMAKE_CURRENT_SOURCE_DIR}
45 INCLUDE_DIRECTORIES( SYSTEM ${SYS_CORE_MODULE_DEP_INCLUDE_DIRS})
47 TARGET_LINK_LIBRARIES(${TARGET_CORE_MODULE_LIB}
48 ${TARGET_WRT_ENGINE_STATIC}
49 ${WRT_ENGINE_DEPS_LIBRARIES}
50 ${SYS_WRT_ENGINE_DEPS_LIBRARIES}
51 ${TARGET_VIEW_MODULE_LIB}
52 ${CORE_MODULE_DEP_LIBRARIES}
53 ${SYS_CORE_MODULE_DEP_LIBRARIES}
56 INSTALL(TARGETS ${TARGET_CORE_MODULE_LIB}
58 PERMISSIONS OWNER_READ OWNER_WRITE
59 GROUP_READ GROUP_EXECUTE WORLD_READ
63 ${PROJECT_SOURCE_DIR}/src/api_new/core_module.h
64 ${PROJECT_SOURCE_DIR}/src/api_new/i_runnable_widget_object.h
65 DESTINATION include/${PROJECT_NAME}