X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=CMakeLists.txt;h=c2511af6a873d39f2de3047786e85ae8ccde5bd2;hb=refs%2Fheads%2F1.0;hp=b76abb3776d0dcff11a77d7b3de960e6e16324a5;hpb=eab449dec6b13464db5277c54ac23fc30d896353;p=src%2Fapp-framework-main.git diff --git a/CMakeLists.txt b/CMakeLists.txt index b76abb3..c2511af 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,21 +16,30 @@ # limitations under the License. ########################################################################### -cmake_minimum_required(VERSION 2.8) +project(afm-main C) -project("afm-main" LANGUAGES "C") +cmake_minimum_required(VERSION 2.8) include(GNUInstallDirs) macro(setc name value) if(NOT DEFINED ${name}) - set(${name} "${value}") + set(${name} ${value}) endif(NOT DEFINED ${name}) endmacro(setc) +SET(PROJECT_NAME "AFM Main") +SET(PROJECT_PRETTY_NAME "Application Framework Main") +SET(PROJECT_DESCRIPTION "Secured Application framework") +SET(PROJECT_VERSION "1.0") +SET(PROJECT_URL "https://github.com/iotbzh/afm-main") + +setc(USE_LIBZIP 1) +setc(USE_SIMULATION 1) + setc(afm_name "aglfwk") -setc(afm_confdir "${CMAKE_INSTALL_FULL_SYSCONFDIR}/${afm_name}") -setc(afm_datadir "${CMAKE_INSTALL_FULL_DATADIR}/${afm_name}") +setc(afm_confdir "${CMAKE_INSTALL_SYSCONFDIR}/${afm_name}") +setc(afm_datadir "${CMAKE_INSTALL_DATADIR}/${afm_name}") setc(afm_appdir "${afm_datadir}/applications") setc(afm_icondir "${afm_datadir}/icons") setc(afm_prefix "urn:agl:") @@ -50,7 +59,10 @@ defstr(FWK_ICON_DIR "${afm_icondir}") defstr(FWK_APP_DIR "${afm_appdir}") defstr(FWK_USER_APP_DIR "${afm_user_appdir}") defstr(WGTPKG_TRUSTED_CERT_DIR "${wgtpkg_trusted_cert_dir}") +defstr(FWK_LAUNCH_CONF "${afm_confdir}/afm-launch.conf") add_subdirectory(src) +add_subdirectory(conf) +add_subdirectory(scripts)