1 ###########################################################################
2 # Copyright 2015, 2016, 2017 IoT.bzh
4 # author: Fulup Ar Foll <fulup@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 set(PROJECT_NAME unicens-agent)
22 set(PROJECT_VERSION "0.1")
23 set(PROJECT_PRETTY_NAME "Unicens Agent")
24 set(PROJECT_DESCRIPTION "Expose MicroChip UnicensV2 through AGL AppFw")
25 set(PROJECT_URL "https://github.com/iotbzh/unicens-agent")
26 set(PROJECT_ICON "icon.png")
27 set(PROJECT_AUTHOR "Fulup, Ar Foll")
28 set(PROJECT_AUTHOR_MAIL "fulup@iot.bzh")
29 set(PROJECT_LICENCE "Apache-V2")
30 set(PROJECT_LANGUAGES,"C")
32 # Where are stored default templates files from submodule or subtree app-templates in your project tree
33 # relative to the root project directory
34 set(PROJECT_APP_TEMPLATES_DIR "conf.d/templates")
36 # Compilation Mode (DEBUG, RELEASE)
37 # ----------------------------------
38 set(CMAKE_BUILD_TYPE "DEBUG")
40 # Compiler selection if needed. Overload the detected compiler.
41 # -----------------------------------------------
42 set (gcc_minimal_version 4.9)
43 #set(CMAKE_C_COMPILER "gcc")
44 #set(CMAKE_CXX_COMPILER "g++")
46 # PKG_CONFIG required packages
47 # -----------------------------
48 set (PKG_REQUIRED_LIST
56 # LANG Specific compile flags set for all build types
57 # set(CMAKE_C_FLAGS "")
58 # set(CMAKE_CXX_FLAGS "")
60 # Define CONTROL_CDEV_NAME should match MOST driver values
61 # ---------------------------------------------------------
62 add_compile_options(-DCONTROL_CDEV_TX="/dev/inic-usb-ctx")
63 add_compile_options(-DCONTROL_CDEV_RX="/dev/inic-usb-crx")
65 # Print a helper message when every thing is finished
66 # ----------------------------------------------------
67 set(CLOSING_MESSAGE "Test with: afb-daemon --ldpaths=. --port=1234 --workdir=.. --roothttp=./htdocs --tracereq=common --token='' --verbose")
69 # (BUG!!!) as PKG_CONFIG_PATH does not work [should be an env variable]
70 # ---------------------------------------------------------------------
71 set(INSTALL_PREFIX $ENV{HOME}/opt)
72 set(CMAKE_PREFIX_PATH ${CMAKE_INSTALL_PREFIX}/lib64/pkgconfig ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig)
73 set(LD_LIBRARY_PATH ${CMAKE_INSTALL_PREFIX}/lib64 ${CMAKE_INSTALL_PREFIX}/lib)
75 # Optional dependencies order
76 # ---------------------------
77 #set(EXTRA_DEPENDENCIES_ORDER)
79 # Optional Extra global include path
80 # -----------------------------------
81 # set(EXTRA_INCLUDE_DIRS)
83 # Optional extra libraries
84 # -------------------------
85 # set(EXTRA_LINK_LIBRARIES)
87 # Optional force binding installation
88 # ------------------------------------
89 # set(BINDINGS_INSTALL_PREFIX PrefixPath )
91 # Optional force widget prefix generation
92 # ------------------------------------------------
93 # set(WIDGET_PREFIX DestinationPath)
95 # Optional Widget entry point file.
96 # ---------------------------------------------------------
97 # This is the file that will be executed, loaded,...
98 # at launch time by the application framework
100 # set(WIDGET_ENTRY_POINT EntryPoint_Path)
102 # Optional Widget Mimetype specification
103 # --------------------------------------------------
105 # - application/x-executable
106 # - application/vnd.agl.url
107 # - application/vnd.agl.service
108 # - application/vnd.agl.native
110 # - application/vnd.agl.qml
111 # - application/vnd.agl.qml.hybrid
112 # - application/vnd.agl.html.hybrid
114 set(WIDGET_TYPE application/vnd.agl.service)
116 # Optional force binding Linking flag
117 # ------------------------------------
118 # set(BINDINGS_LINK_FLAG LinkOptions )