misc: added run-cmake.sh.
[profile/ivi/genivi/genivi-audio-manager.git] / cmake / FindNSM.cmake
1 # Copyright (C) 2013, BMW AG
2 #
3 # This file is part of GENIVI Project AudioManager.
4
5 # Contributions are licensed to the GENIVI Alliance under one or more
6 # Contribution License Agreements.
7
8 # copyright
9 # This Source Code Form is subject to the terms of the
10 # Mozilla Public License, v. 2.0. If a  copy of the MPL was not distributed with
11 # this file, You can obtain one at http://mozilla.org/MPL/2.0/.
12
13 # author Christian Linke, christian.linke@bmw.de BMW 2013
14 #
15 # For further information see http://www.genivi.org/.
16 #
17
18 FIND_PATH (NSM_INCLUDE_DIR NodeStateManager.h
19            DOC "The nodestatemanager include directory"
20 )
21
22 IF(NSM_INCLUDE_DIR)
23     message(STATUS "Found NSM include: ${NSM_INCLUDE_DIR}")
24 ELSE(NSM_INCLUDE_DIR)
25     SET(NSM_FOUND "YES")
26     SET (NSM_INCLUDE_DIR "${CMAKE_SOURCE_DIR}/nodeStateManagerIncludes")
27     message(STATUS "Did not find NSM include, using own include dir: ${NSM_INCLUDE_DIR}")
28 ENDIF(NSM_INCLUDE_DIR)
29
30 MARK_AS_ADVANCED(
31   NSM_INCLUDE_DIR
32 )