X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=scripts%2FCMakeLists.txt;h=c1f48e707de57b77e2469a4a4d06000de5de549f;hb=a123bb31906ef03ff813559aee426282416d729d;hp=34c37cfc7b13d7b906f962bf01d3ec8322899cd5;hpb=35343f762be7c6b00e0a23cacf7460f741de8bd3;p=src%2Fapp-framework-main.git diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt index 34c37cf..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_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()