X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=CMakeLists.txt;h=dc7f4828098d6800549d01f9884fac64663e909d;hb=refs%2Fchanges%2F23%2F15423%2F3;hp=87373de40845bf69f54ebe65d85dba1af63d31de;hpb=f97f8d24a1971117bbd4057ca0cd00776bcccb39;p=src%2Fapp-framework-main.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 87373de..dc7f482 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,6 +32,7 @@ set(PROJECT_URL "https://gerrit.automotivelinux.org/gerrit/gitweb?p=src/app-fram set(USE_LIBZIP ON CACHE BOOL "should try to use libzip?") set(USE_SIMULATION OFF CACHE BOOL "if set simulates security manager and smack") set(USE_SDK OFF CACHE BOOL "if set, avoids installating system runtime files") +set(ALLOW_NO_SIGNATURE OFF CACHE BOOL "if set, widgets without signature are accepted") set(SIMULATE_SECMGR OFF CACHE BOOL "if set, the security manager is simulated") set(SIMULATE_SMACK OFF CACHE BOOL "if set, the smack environment is simulated") @@ -69,6 +70,12 @@ add_definitions( -DSYSTEMD_UNITS_ROOT="${systemd_units_root}" -DAFM_VERSION="${PROJECT_VERSION}" ) +if(ALLOW_NO_SIGNATURE) + add_definitions(-DDEFAULT_ALLOW_NO_SIGNATURE=1) +else(ALLOW_NO_SIGNATURE) + add_definitions(-DDEFAULT_ALLOW_NO_SIGNATURE=0) +endif(ALLOW_NO_SIGNATURE) + add_subdirectory(src) add_subdirectory(conf)