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 SET(TARGET_WRT_CLIENT "wrt-client")
19 ${PROJECT_SOURCE_DIR}/src/wrt-client/wrt-client.cpp
22 PKG_CHECK_MODULES(CLIENT_DEP
28 ${PROJECT_SOURCE_DIR}/src/wrt-client
29 ${PROJECT_SOURCE_DIR}/src/api_new
30 ${CLIENT_DEP_INCLUDE_DIRS}
33 ADD_EXECUTABLE(${TARGET_WRT_CLIENT}
37 TARGET_LINK_LIBRARIES(${TARGET_WRT_CLIENT}
38 ${CLIENT_DEP_LIBRARIES}
39 ${TARGET_CORE_MODULE_LIB}
42 SET_TARGET_PROPERTIES(${TARGET_WRT_CLIENT} PROPERTIES
43 LINK_FLAGS "-Wl,--as-needed -Wl,--hash-style=both -Wl,--version-script=${PROJECT_SOURCE_DIR}/wrt-engine.map"
44 BUILD_WITH_INSTALL_RPATH ON
45 INSTALL_RPATH_USE_LINK_PATH ON
48 SET_TARGET_PROPERTIES(${TARGET_WRT_CLIENT} PROPERTIES
49 COMPILE_FLAGS "-include profiling_util.h" )
51 INSTALL(TARGETS ${TARGET_WRT_CLIENT} DESTINATION bin)