diff options
author | christian linke <christian.linke@bmw.de> | 2013-01-07 13:32:52 +0100 |
---|---|---|
committer | christian linke <christian.linke@bmw.de> | 2013-01-07 13:32:52 +0100 |
commit | 8f43ba9159a4f9f5efbf9c2515f314cc58737d48 (patch) | |
tree | 574f176d227d12b602d8d6153b58fb69bddc2854 /cmake/FindNSM.cmake | |
parent | 0e0dd48074670493189ab28ff49fdd2cf298ff70 (diff) | |
download | audiomanager-8f43ba9159a4f9f5efbf9c2515f314cc58737d48.tar.gz |
* take away mandatory NSM dependency and ship NSM headers as fallback
Signed-off-by: christian linke <christian.linke@bmw.de>
Diffstat (limited to 'cmake/FindNSM.cmake')
-rw-r--r-- | cmake/FindNSM.cmake | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/cmake/FindNSM.cmake b/cmake/FindNSM.cmake new file mode 100644 index 0000000..df7b11e --- /dev/null +++ b/cmake/FindNSM.cmake @@ -0,0 +1,32 @@ +# Copyright (C) 2013, BMW AG +# +# This file is part of GENIVI Project AudioManager. +# +# Contributions are licensed to the GENIVI Alliance under one or more +# Contribution License Agreements. +# +# copyright +# This Source Code Form is subject to the terms of the +# Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with +# this file, You can obtain one at http://mozilla.org/MPL/2.0/. +# +# author Christian Linke, christian.linke@bmw.de BMW 2013 +# +# For further information see http://www.genivi.org/. +# + +FIND_PATH (NSM_INCLUDE_DIR NodeStateManager.h + DOC "The nodestatemanager include directory" +) + +IF(NSM_INCLUDE_DIR) + message(STATUS "Found NSM include: ${NSM_INCLUDE_DIR}") +ELSE(NSM_INCLUDE_DIR) + SET(NSM_FOUND "YES") + SET (NSM_INCLUDE_DIR "${CMAKE_SOURCE_DIR}/nodeStateManagerIncludes") + message(STATUS "Did not find NSM include, using own include dir: ${NSM_INCLUDE_DIR}") +ENDIF(NSM_INCLUDE_DIR) + +MARK_AS_ADVANCED( + NSM_INCLUDE_DIR +)
\ No newline at end of file |