X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=scripts%2FCMakeLists.txt;h=c1f48e707de57b77e2469a4a4d06000de5de549f;hb=a123bb31906ef03ff813559aee426282416d729d;hp=74ecec7a5a78c34ba27bcafd8f279d90b507baa4;hpb=e96fa2cd6b81784ad6fb6ba1794ac6e034486b97;p=src%2Fapp-framework-main.git diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt index 74ecec7..c1f48e7 100644 --- a/scripts/CMakeLists.txt +++ b/scripts/CMakeLists.txt @@ -1,5 +1,5 @@ ########################################################################### -# Copyright 2015 IoT.bzh +# Copyright (C) 2015-2020 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()