summaryrefslogtreecommitdiff
path: root/cmake/FindNSM.cmake
blob: df7b11e185e8ec4e8d671abd43c1aa45cc88edb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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
)