Merge "CLI for OSM"
[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     rift/mano/dts/subscriber/ro_account.py
45   COMPONENT ${PKG_LONG_NAME}
46   PYTHON3_ONLY
47   )
48
49 rift_python_install_tree(
50   FILES
51     rift/mano/config_data/__init__.py
52     rift/mano/config_data/config.py
53   COMPONENT ${PKG_LONG_NAME}
54   PYTHON3_ONLY
55   )
56
57 rift_python_install_tree(
58   FILES
59     rift/mano/dts/__init__.py
60     rift/mano/dts/core.py
61     rift/mano/dts/subscriber/__init__.py
62     rift/mano/dts/subscriber/core.py
63     rift/mano/dts/subscriber/store.py
64     rift/mano/dts/subscriber/ns_subscriber.py
65     rift/mano/dts/subscriber/vnf_subscriber.py
66   COMPONENT ${PKG_LONG_NAME}
67   PYTHON3_ONLY
68   )
69
70 rift_python_install_tree(
71   FILES
72     rift/mano/tosca_translator/__init__.py
73     rift/mano/tosca_translator/translator_logging.conf
74     rift/mano/tosca_translator/compare_desc.py
75     rift/mano/tosca_translator/shell.py
76     rift/mano/tosca_translator/rwmano/tosca_translator.py
77     rift/mano/tosca_translator/rwmano/translate_inputs.py
78     rift/mano/tosca_translator/rwmano/__init__.py
79     rift/mano/tosca_translator/rwmano/translate_outputs.py
80     rift/mano/tosca_translator/rwmano/translate_node_templates.py
81     rift/mano/tosca_translator/rwmano/syntax/mano_parameter.py
82     rift/mano/tosca_translator/rwmano/syntax/mano_resource.py
83     rift/mano/tosca_translator/rwmano/syntax/__init__.py
84     rift/mano/tosca_translator/rwmano/syntax/mano_template.py
85     rift/mano/tosca_translator/rwmano/syntax/mano_output.py
86     rift/mano/tosca_translator/rwmano/tosca/tosca_nfv_vnf.py
87     rift/mano/tosca_translator/rwmano/tosca/__init__.py
88     rift/mano/tosca_translator/rwmano/tosca/tosca_config_primitives.py
89     rift/mano/tosca_translator/rwmano/tosca/tosca_network_port.py
90     rift/mano/tosca_translator/rwmano/tosca/tosca_network_network.py
91     rift/mano/tosca_translator/rwmano/tosca/tosca_compute.py
92     rift/mano/tosca_translator/rwmano/tosca/tosca_scaling_group.py
93     rift/mano/tosca_translator/rwmano/tosca/tosca_initial_config.py
94     rift/mano/tosca_translator/common/__init__.py
95     rift/mano/tosca_translator/common/utils.py
96     rift/mano/tosca_translator/common/exception.py
97     rift/mano/tosca_translator/custom/__init__.py
98     rift/mano/tosca_translator/custom/rwmano/__init__.py
99     rift/mano/tosca_translator/conf/translator.conf
100     rift/mano/tosca_translator/conf/__init__.py
101     rift/mano/tosca_translator/conf/config.py
102   COMPONENT ${PKG_LONG_NAME}
103   PYTHON3_ONLY
104   )
105
106 rift_python_install_tree(
107   FILES
108     rift/mano/utils/__init.py__
109     rift/mano/utils/compare_desc.py
110     rift/mano/utils/juju_api.py
111   COMPONENT ${PKG_LONG_NAME}
112   PYTHON3_ONLY
113   )
114
115 rift_python_install_tree(
116   FILES
117     rift/mano/yang_translator/__init__.py
118     rift/mano/yang_translator/translator_logging.conf
119     rift/mano/yang_translator/shell.py
120     rift/mano/yang_translator/compare_desc.py
121     rift/mano/yang_translator/conf/config.py
122     rift/mano/yang_translator/conf/translator.conf
123     rift/mano/yang_translator/conf/__init__.py
124     rift/mano/yang_translator/rwmano/yang_translator.py
125     rift/mano/yang_translator/rwmano/translate_descriptors.py
126     rift/mano/yang_translator/rwmano/__init__.py
127     rift/mano/yang_translator/rwmano/yang/yang_vld.py
128     rift/mano/yang_translator/rwmano/yang/yang_vdu.py
129     rift/mano/yang_translator/rwmano/yang/yang_vnfd.py
130     rift/mano/yang_translator/rwmano/yang/yang_nsd.py
131     rift/mano/yang_translator/rwmano/yang/__init__.py
132     rift/mano/yang_translator/rwmano/syntax/tosca_template.py
133     rift/mano/yang_translator/rwmano/syntax/tosca_resource.py
134     rift/mano/yang_translator/rwmano/syntax/__init__.py
135     rift/mano/yang_translator/custom/__init__.py
136     rift/mano/yang_translator/custom/rwmano/__init__.py
137     rift/mano/yang_translator/common/utils.py
138     rift/mano/yang_translator/common/exception.py
139     rift/mano/yang_translator/common/__init__.py
140   COMPONENT ${PKG_LONG_NAME}
141   PYTHON3_ONLY
142   )
143
144 set(TRANSLATOR_SCRIPTS
145   ${CMAKE_CURRENT_SOURCE_DIR}/rift/mano/tosca_translator/tosca-translator
146   ${CMAKE_CURRENT_SOURCE_DIR}/rift/mano/yang_translator/yang-translator)
147
148 install(
149   FILES ${TRANSLATOR_SCRIPTS}
150     DESTINATION
151       usr/bin
152     COMPONENT ${PKG_LONG_NAME}
153     )
154
155 set(subdirs
156   test
157   )
158
159 rift_add_subdirs(SUBDIR_LIST ${subdirs})