Add SI95 transport support
[ric-plt/lib/rmr.git] / src / rmr / si / CMakeLists.txt
1
2 #
3 #==================================================================================
4 #       Copyright (c) 2019 Nokia 
5 #       Copyright (c) 2018-2019 AT&T Intellectual Property.
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
21
22 # for clarity: this generates object, not a lib as the CM command implies. We also tag
23 # them as rmr_si objects inasmuch as we might maintain the si code somewhere in this
24 # repo as well.
25 #
26 add_library( rmr_si_objects OBJECT 
27         src/rmr_si.c 
28
29         src/si95/siaddress.c
30         src/si95/sibldpoll.c
31         src/si95/sicbreg.c
32         src/si95/sicbstat.c
33         src/si95/siclose.c
34         src/si95/siconnect.c
35         src/si95/siestablish.c
36         src/si95/sigetadd.c
37         src/si95/sigetname.c
38         src/si95/siinit.c
39         src/si95/silisten.c
40         src/si95/sinew.c
41         src/si95/sinewses.c
42         src/si95/sipoll.c
43         src/si95/sircv.c
44         src/si95/sisend.c
45         src/si95/sisendt.c
46         src/si95/sishutdown.c
47         src/si95/siterm.c
48         src/si95/sitrash.c
49         src/si95/siwait.c
50 )
51
52 #if( need_ext )
53 #       add_dependencies( nano_objects si )             # force external things to build first
54 #endif()
55
56 target_include_directories (rmr_si_objects PUBLIC 
57         $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
58         $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../common/include>
59         $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../common/src>
60         $<INSTALL_INTERFACE:include>
61         PRIVATE src)
62