X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=scripts%2FCMakeLists.txt;h=fb939d1471fd2f06e5555b42d7c799b2fa416775;hb=2a319cf90daa6e3b01e8139923f7073e1c9bcf28;hp=74ecec7a5a78c34ba27bcafd8f279d90b507baa4;hpb=e96fa2cd6b81784ad6fb6ba1794ac6e034486b97;p=src%2Fapp-framework-main.git diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt index 74ecec7..fb939d1 100644 --- a/scripts/CMakeLists.txt +++ b/scripts/CMakeLists.txt @@ -1,5 +1,5 @@ ########################################################################### -# Copyright 2015 IoT.bzh +# Copyright (C) 2015-2019 IoT.bzh # # author: José Bollo # @@ -18,5 +18,13 @@ cmake_minimum_required(VERSION 2.8) -install(PROGRAMS afm-util DESTINATION ${CMAKE_INSTALL_FULL_BINDIR}) +if(NOT USE_SDK) + configure_file(afm-util.in afm-util) + install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/afm-util DESTINATION ${CMAKE_INSTALL_BINDIR}) + install(PROGRAMS afm-install DESTINATION ${CMAKE_INSTALL_BINDIR}) + if(AGL_DEVEL) + configure_file(afm-debug.in afm-debug) + install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/afm-debug DESTINATION ${CMAKE_INSTALL_BINDIR}) + endif() +endif()