a1b24fe409b38725e6a67819ef7946884cf9ec75
[osm/SO.git] / rwcal / plugins / yang / CMakeLists.txt
1
2 #   Copyright 2016 RIFT.IO Inc
3 #
4 #   Licensed under the Apache License, Version 2.0 (the "License");
5 #   you may not use this file except in compliance with the License.
6 #   You may obtain a copy of the License at
7 #
8 #       http://www.apache.org/licenses/LICENSE-2.0
9 #
10 #   Unless required by applicable law or agreed to in writing, software
11 #   distributed under the License is distributed on an "AS IS" BASIS,
12 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 #   See the License for the specific language governing permissions and
14 #   limitations under the License.
15 #
16
17
18 ##
19 # Parse the yang files
20 ##
21
22 include(rift_yang)
23
24 set(source_yang_files rwcal.yang)
25
26 rift_generate_python_log_yang(
27     LOG_CATEGORY_NAME rw-cal-log
28     START_EVENT_ID 63000
29     OUT_YANG_FILE_VAR rw_cal_log_file
30     )
31
32 rift_add_yang_target(
33   TARGET rwcal_yang
34   YANG_FILES
35     ${source_yang_files}
36     ${rw_cal_log_file}
37   COMPONENT ${PKG_LONG_NAME}
38   DEPENDS
39     mano-types_yang
40   LIBRARIES
41     rwschema_yang_gen
42     rwyang
43     rwlog
44     rwlog-mgmt_yang_gen
45     mano-types_yang_gen
46 )