2 ###########################################################################
3 # Copyright 2015, 2016, 2017 IoT.bzh
5 # author: Fulup Ar Foll <fulup@iot.bzh>
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
18 ###########################################################################
20 # Add target to project dependency list
21 PROJECT_TARGET_ADD(ucs2-lib)
23 # Define targets source files
24 ADD_LIBRARY(ucs2-lib STATIC
28 unicens/src/ucs_amsmessage.c
29 unicens/src/ucs_amspool.c
30 unicens/src/ucs_amtp.c
31 unicens/src/ucs_attach.c
32 unicens/src/ucs_base.c
33 unicens/src/ucs_bc_diag.c
34 unicens/src/ucs_class.c
39 unicens/src/ucs_encoder.c
42 unicens/src/ucs_factory.c
44 unicens/src/ucs_gpio.c
46 unicens/src/ucs_inic.c
47 unicens/src/ucs_inic_res.c
48 unicens/src/ucs_jobs.c
49 unicens/src/ucs_lldpool.c
50 unicens/src/ucs_message.c
52 unicens/src/ucs_misc.c
54 unicens/src/ucs_nodedis.c
55 unicens/src/ucs_nodeobserver.c
58 unicens/src/ucs_pmchannel.c
59 unicens/src/ucs_pmcmd.c
60 unicens/src/ucs_pmevent.c
61 unicens/src/ucs_pmfifo.c
62 unicens/src/ucs_pmfifos.c
64 unicens/src/ucs_pool.c
65 unicens/src/ucs_prog.c
68 unicens/src/ucs_scheduler.c
69 unicens/src/ucs_segmentation.c
71 unicens/src/ucs_sys_diag.c
72 unicens/src/ucs_telqueue.c
73 unicens/src/ucs_timer.c
74 unicens/src/ucs_transceiver.c
76 unicens/src/ucs_xrmpool.c
77 unicens/src/ucs_xrm_res.c)
79 # Expose Library Properties
80 SET_TARGET_PROPERTIES(ucs2-lib PROPERTIES OUTPUT_NAME ucs2net)
82 # Library dependencies from PKG_REQUIRED_LIST
83 TARGET_LINK_LIBRARIES(ucs2-lib ${link_libraries})
85 # Define properties to expose when others use this target
86 TARGET_INCLUDE_DIRECTORIES(ucs2-lib
88 ${CMAKE_CURRENT_SOURCE_DIR}/unicens/inc
89 ${CMAKE_CURRENT_SOURCE_DIR}/cfg_agl