RIFT OSM R1 Initial Submission
[osm/SO.git] / common / python / CMakeLists.txt
1 # Creation Date: 2016/1/12
2 # RIFT_IO_STANDARD_CMAKE_COPYRIGHT_HEADER(END)
3
4 cmake_minimum_required(VERSION 2.8)
5
6
7 rift_python_install_tree(
8   FILES
9     rift/mano/__init__.py
10     rift/mano/ncclient.py
11   COMPONENT ${PKG_LONG_NAME}
12   PYTHON3_ONLY
13   )
14
15 rift_python_install_tree(
16   FILES
17     rift/mano/cloud/__init__.py
18     rift/mano/cloud/accounts.py
19     rift/mano/cloud/config.py
20     rift/mano/cloud/operdata.py
21   COMPONENT ${PKG_LONG_NAME}
22   PYTHON3_ONLY
23   )
24
25 rift_python_install_tree(
26   FILES
27     rift/mano/config_agent/operdata.py
28     rift/mano/config_agent/__init__.py
29     rift/mano/config_agent/config.py
30   COMPONENT ${PKG_LONG_NAME}
31   PYTHON3_ONLY
32   )
33
34
35 rift_python_install_tree(
36   FILES
37     rift/mano/dts/__init__.py
38     rift/mano/dts/core.py
39     rift/mano/dts/subscriber/__init__.py
40     rift/mano/dts/subscriber/core.py
41     rift/mano/dts/subscriber/store.py
42     rift/mano/dts/subscriber/ns_subscriber.py
43     rift/mano/dts/subscriber/vnf_subscriber.py
44   COMPONENT ${PKG_LONG_NAME}
45   PYTHON3_ONLY
46   )
47
48 rift_python_install_tree(
49   FILES
50     rift/mano/config_data/__init__.py
51     rift/mano/config_data/config.py
52   COMPONENT ${PKG_LONG_NAME}
53   PYTHON3_ONLY
54   )
55
56 rift_python_install_tree(
57   FILES
58     rift/mano/dts/__init__.py
59     rift/mano/dts/core.py
60     rift/mano/dts/subscriber/__init__.py
61     rift/mano/dts/subscriber/core.py
62     rift/mano/dts/subscriber/store.py
63     rift/mano/dts/subscriber/ns_subscriber.py
64     rift/mano/dts/subscriber/vnf_subscriber.py
65   COMPONENT ${PKG_LONG_NAME}
66   PYTHON3_ONLY
67   )
68
69 rift_python_install_tree(
70   FILES
71     rift/mano/tosca_translator/__init__.py
72     rift/mano/tosca_translator/translator_logging.conf
73     rift/mano/tosca_translator/compare_desc.py
74     rift/mano/tosca_translator/shell.py
75     rift/mano/tosca_translator/rwmano/tosca_translator.py
76     rift/mano/tosca_translator/rwmano/translate_inputs.py
77     rift/mano/tosca_translator/rwmano/__init__.py
78     rift/mano/tosca_translator/rwmano/translate_outputs.py
79     rift/mano/tosca_translator/rwmano/translate_node_templates.py
80     rift/mano/tosca_translator/rwmano/syntax/mano_parameter.py
81     rift/mano/tosca_translator/rwmano/syntax/mano_resource.py
82     rift/mano/tosca_translator/rwmano/syntax/__init__.py
83     rift/mano/tosca_translator/rwmano/syntax/mano_template.py
84     rift/mano/tosca_translator/rwmano/syntax/mano_output.py
85     rift/mano/tosca_translator/rwmano/tosca/tosca_nfv_vnf.py
86     rift/mano/tosca_translator/rwmano/tosca/__init__.py
87     rift/mano/tosca_translator/rwmano/tosca/tosca_config_primitives.py
88     rift/mano/tosca_translator/rwmano/tosca/tosca_network_port.py
89     rift/mano/tosca_translator/rwmano/tosca/tosca_network_network.py
90     rift/mano/tosca_translator/rwmano/tosca/tosca_compute.py
91     rift/mano/tosca_translator/rwmano/tosca/tosca_scaling_group.py
92     rift/mano/tosca_translator/rwmano/tosca/tosca_initial_config.py
93     rift/mano/tosca_translator/common/__init__.py
94     rift/mano/tosca_translator/common/utils.py
95     rift/mano/tosca_translator/common/exception.py
96     rift/mano/tosca_translator/custom/__init__.py
97     rift/mano/tosca_translator/custom/rwmano/__init__.py
98     rift/mano/tosca_translator/conf/translator.conf
99     rift/mano/tosca_translator/conf/__init__.py
100     rift/mano/tosca_translator/conf/config.py
101   COMPONENT ${PKG_LONG_NAME}
102   PYTHON3_ONLY
103   )
104
105 rift_python_install_tree(
106   FILES
107     rift/mano/utils/__init.py__
108     rift/mano/utils/compare_desc.py
109     rift/mano/utils/juju_api.py
110   COMPONENT ${PKG_LONG_NAME}
111   PYTHON3_ONLY
112   )
113
114 rift_python_install_tree(
115   FILES
116     rift/mano/yang_translator/__init__.py
117     rift/mano/yang_translator/translator_logging.conf
118     rift/mano/yang_translator/shell.py
119     rift/mano/yang_translator/compare_desc.py
120     rift/mano/yang_translator/conf/config.py
121     rift/mano/yang_translator/conf/translator.conf
122     rift/mano/yang_translator/conf/__init__.py
123     rift/mano/yang_translator/rwmano/yang_translator.py
124     rift/mano/yang_translator/rwmano/translate_descriptors.py
125     rift/mano/yang_translator/rwmano/__init__.py
126     rift/mano/yang_translator/rwmano/yang/yang_vld.py
127     rift/mano/yang_translator/rwmano/yang/yang_vdu.py
128     rift/mano/yang_translator/rwmano/yang/yang_vnfd.py
129     rift/mano/yang_translator/rwmano/yang/yang_nsd.py
130     rift/mano/yang_translator/rwmano/yang/__init__.py
131     rift/mano/yang_translator/rwmano/syntax/tosca_template.py
132     rift/mano/yang_translator/rwmano/syntax/tosca_resource.py
133     rift/mano/yang_translator/rwmano/syntax/__init__.py
134     rift/mano/yang_translator/custom/__init__.py
135     rift/mano/yang_translator/custom/rwmano/__init__.py
136     rift/mano/yang_translator/common/utils.py
137     rift/mano/yang_translator/common/exception.py
138     rift/mano/yang_translator/common/__init__.py
139   COMPONENT ${PKG_LONG_NAME}
140   PYTHON3_ONLY
141   )
142
143 set(TRANSLATOR_SCRIPTS
144   ${CMAKE_CURRENT_SOURCE_DIR}/rift/mano/tosca_translator/tosca-translator
145   ${CMAKE_CURRENT_SOURCE_DIR}/rift/mano/yang_translator/yang-translator)
146
147 install(
148   FILES ${TRANSLATOR_SCRIPTS}
149     DESTINATION
150       usr/bin
151     COMPONENT ${PKG_LONG_NAME}
152     )
153
154 set(subdirs
155   test
156   )
157
158 rift_add_subdirs(SUBDIR_LIST ${subdirs})