# Copyright (c) 2021 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. # SET(VINE_TOOL "vine-tool") LINK_DIRECTORIES(${CMAKE_BINARY_DIR}) SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wall -fPIE") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -pie") INCLUDE_DIRECTORIES( ${CMAKE_SOURCE_DIR}/include ${VINE_LOGGER_PATH} ${fw_name_deps_INCLUDE_DIRS} ) FILE(GLOB VINE_TOOL_SRCS *.cpp) ADD_EXECUTABLE(${VINE_TOOL} ${VINE_TOOL_SRCS}) TARGET_LINK_LIBRARIES(${VINE_TOOL} ${TARGET_VINE} ${VINE_LOGGER} ${fw_name_deps_LIBRARIES} ) INSTALL(TARGETS ${VINE_TOOL} DESTINATION "${BIN_DIR}")