blob: ddc62d9ef9aea6b971e30183c956c0d66904867b [file] [log] [blame]
Jeremy Mordkoff6f07e6f2016-09-07 18:56:51 -04001#
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##
21# DEPENDENCY ALERT
22# The submodule dependencies must be specified in the
23# .gitmodules.dep file at the top level (supermodule) directory
24# If this submodule depends other submodules remember to update
25# the .gitmodules.dep
26##
27
28cmake_minimum_required(VERSION 2.8)
29
30message(CMAKE_MODULE_PATH=${CMAKE_MODULE_PATH})
31
32##
33# DO NOT add any code before this and DO NOT
34# include this file anywhere else
35##
36include(rift_submodule)
37include(rift_python)
38
39##
40# Submodule specific includes will go here,
41# These are specified here, since these variables are accessed
42# from multiple sub directories. If the variable is subdirectory
43# specific it must be declared in the subdirectory.
44##
45
46##
47# Include the subdirs
48##
49set(subdirs
50 common
51 examples
52 models
53 rwcal
54 rwmon
55 rwcm
56 rwlaunchpad
Philip Joseph9bbec9d2017-03-29 17:11:32 +053057 rwprojectmano
Jeremy Mordkoff6f07e6f2016-09-07 18:56:51 -040058 )
59
60if (NOT RIFT_AGENT_BUILD STREQUAL "XML_ONLY")
61 list(APPEND subdirs confd_client)
62endif()
63
64rift_add_subdirs(SUBDIR_LIST ${subdirs})
65
66##
67# This macro adds targets for documentaion, unittests, code coverage and packaging
68##
69rift_add_submodule_targets(SUBMODULE_PACKAGE_NAME "rw.core.mano")
70
71# Workaround whatever mess rw.package is doing as it can't seem
72# to figure out that it should make a directory -before- making
73# symlinks..
74set(dir usr/lib64/python${RIFT_PYTHON3}/site-packages/gi/overrides)
75install(FILES
76 ${CMAKE_CURRENT_SOURCE_DIR}/.cpack-workaround
77 DESTINATION ${dir})
78
79if (RIFT_SUPPORT_PYTHON2)
80 set(dir usr/lib64/python${RIFT_PYTHON2}/site-packages/gi/overrides)
81
82 install(FILES
83 ${CMAKE_CURRENT_SOURCE_DIR}/.cpack-workaround
84 DESTINATION ${dir})
85endif()
86
87