Removed installation of ping_vnfd_with_image.tar.gz and pong_vnfd_with_image.tar.gz
[osm/SO.git] / examples / ping_pong_ns / 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 # Author(s): Anil Gunturu
17 # Creation Date: 03/26/2014
18
19
20 cmake_minimum_required(VERSION 2.8)
21
22 configure_file(
23   ${CMAKE_CURRENT_SOURCE_DIR}/generate_packages.sh.in
24   ${CMAKE_CURRENT_BINARY_DIR}/generate_packages.sh
25   ESCAPE_QUOTES @ONLY
26   )
27
28 set(PACKAGE_OUTPUT
29   ${CMAKE_CURRENT_BINARY_DIR}/ping_pong_nsd.tar.gz
30   ${CMAKE_CURRENT_BINARY_DIR}/ping_vnfd.tar.gz
31   ${CMAKE_CURRENT_BINARY_DIR}/pong_vnfd.tar.gz
32   ${CMAKE_CURRENT_BINARY_DIR}/ping_pong_nsd_aws.tar.gz
33   ${CMAKE_CURRENT_BINARY_DIR}/ping_vnfd_aws.tar.gz
34   ${CMAKE_CURRENT_BINARY_DIR}/pong_vnfd_aws.tar.gz
35   ${CMAKE_CURRENT_BINARY_DIR}/ping_pong_nsd_with_epa.tar.gz
36   ${CMAKE_CURRENT_BINARY_DIR}/ping_vnfd_with_epa.tar.gz
37   ${CMAKE_CURRENT_BINARY_DIR}/pong_vnfd_with_epa.tar.gz)
38
39 add_custom_command(
40     OUTPUT ${PACKAGE_OUTPUT}
41     COMMAND ${CMAKE_CURRENT_BINARY_DIR}/generate_packages.sh
42     DEPENDS mano_yang rwcloud_yang ${CMAKE_CURRENT_SOURCE_DIR}/ping_pong_nsd.py
43   )
44
45 add_custom_target(ping_pong_pkg_gen ALL
46     DEPENDS mano_yang rwcloud_yang ${PACKAGE_OUTPUT}
47   )
48
49 install(
50     FILES ${PACKAGE_OUTPUT}
51     DESTINATION
52       usr/rift/mano/examples/ping_pong_ns
53       COMPONENT ${PKG_LONG_NAME}
54     )
55
56 rift_python_install_tree(
57   COMPONENT ${PKG_LONG_NAME}
58   FILES
59     rift/mano/examples/ping_pong_nsd.py
60     rift/mano/examples/start_traffic.py
61     rift/mano/examples/ping_set_rate.py
62   )
63
64 install(
65   PROGRAMS
66     rift/mano/examples/ping_config.py
67     stand_up_ping_pong
68   DESTINATION usr/bin
69   COMPONENT ${PKG_LONG_NAME}
70   )
71