summaryrefslogtreecommitdiff
path: root/cmake/FindNSM.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/FindNSM.cmake')
-rw-r--r--cmake/FindNSM.cmake32
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