Add gitreview file for jellyfish branch
[apps/agl-service-unicens.git] / ucs2-lib / CMakeLists.txt
1
2 ###########################################################################
3 # Copyright 2015, 2016, 2017 IoT.bzh
4 #
5 # author: Fulup Ar Foll <fulup@iot.bzh>
6 #
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
10 #
11 #     http://www.apache.org/licenses/LICENSE-2.0
12 #
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 ###########################################################################
19
20 # Add target to project dependency list
21 PROJECT_TARGET_ADD(ucs2-lib)
22
23 # Define targets source files
24 ADD_LIBRARY(ucs2-lib STATIC
25  unicens/src/ucs_alm.c
26  unicens/src/ucs_amd.c
27  unicens/src/ucs_ams.c
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
35  unicens/src/ucs_cmd.c
36  unicens/src/ucs_dec.c
37  unicens/src/ucs_dl.c
38  unicens/src/ucs_eh.c
39  unicens/src/ucs_encoder.c
40  unicens/src/ucs_epm.c
41  unicens/src/ucs_exc.c
42  unicens/src/ucs_factory.c
43  unicens/src/ucs_fsm.c
44  unicens/src/ucs_gpio.c
45  unicens/src/ucs_i2c.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
51  unicens/src/ucs_mgr.c
52  unicens/src/ucs_misc.c
53  unicens/src/ucs_net.c
54  unicens/src/ucs_nodedis.c
55  unicens/src/ucs_nodeobserver.c
56  unicens/src/ucs_nsm.c
57  unicens/src/ucs_obs.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
63  unicens/src/ucs_pmp.c
64  unicens/src/ucs_pool.c
65  unicens/src/ucs_prog.c
66  unicens/src/ucs_rsm.c
67  unicens/src/ucs_rtm.c
68  unicens/src/ucs_scheduler.c
69  unicens/src/ucs_segmentation.c
70  unicens/src/ucs_smm.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
75  unicens/src/ucs_xrm.c
76  unicens/src/ucs_xrmpool.c
77  unicens/src/ucs_xrm_res.c)
78
79     # Expose Library Properties
80     SET_TARGET_PROPERTIES(ucs2-lib PROPERTIES OUTPUT_NAME ucs2net)
81
82     # Library dependencies from PKG_REQUIRED_LIST
83     TARGET_LINK_LIBRARIES(ucs2-lib ${link_libraries})
84
85     # Define properties to expose when others use this target
86     TARGET_INCLUDE_DIRECTORIES(ucs2-lib
87        PUBLIC
88         ${CMAKE_CURRENT_SOURCE_DIR}/unicens/inc
89         ${CMAKE_CURRENT_SOURCE_DIR}/cfg_agl
90     )
91