1 ###########################################################################
2 # Copyright 2015 IoT.bzh
4 # author: José Bollo <jose.bollo@iot.bzh>
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 ###########################################################################
21 cmake_minimum_required(VERSION 2.8)
23 include(GNUInstallDirs)
25 macro(setc name value)
26 if(NOT DEFINED ${name})
28 endif(NOT DEFINED ${name})
32 setc(USE_SIMULATION 1)
34 setc(afm_name "aglfwk")
35 setc(afm_confdir "${CMAKE_INSTALL_FULL_SYSCONFDIR}/${afm_name}")
36 setc(afm_datadir "${CMAKE_INSTALL_FULL_DATADIR}/${afm_name}")
37 setc(afm_appdir "${afm_datadir}/applications")
38 setc(afm_icondir "${afm_datadir}/icons")
39 setc(afm_prefix "urn:agl:")
40 setc(afm_prefix_permission "${afm_prefix}perm:")
41 setc(afm_prefix_plugin "${afm_prefix}plugin:")
42 setc(afm_user_appdir "app-data")
43 setc(wgtpkg_trusted_cert_dir "${afm_confdir}/certs")
45 macro(defstr name value)
46 add_definitions(-D${name}="${value}")
49 defstr(FWK_CONFIG_DIR "${afm_confdir}")
50 defstr(FWK_PREFIX_PERMISSION "${afm_prefix_permission}")
51 defstr(FWK_PREFIX_PLUGIN "${afm_prefix_plugin}")
52 defstr(FWK_ICON_DIR "${afm_icondir}")
53 defstr(FWK_APP_DIR "${afm_appdir}")
54 defstr(FWK_USER_APP_DIR "${afm_user_appdir}")
55 defstr(WGTPKG_TRUSTED_CERT_DIR "${wgtpkg_trusted_cert_dir}")
58 add_subdirectory(conf)