Add CMake depends to check OpenAMP dependencies
authorWendy Liang <jliang@xilinx.com>
Fri, 27 May 2016 20:43:30 +0000 (13:43 -0700)
committerWendy Liang <jliang@xilinx.com>
Thu, 13 Oct 2016 05:01:41 +0000 (22:01 -0700)
Introduce depends.cmake to check dependencies for
OpenAMP library.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
CMakeLists.txt
cmake/depends.cmake [new file with mode: 0644]

index df4503af3f31653fd2fdfe0edabda8913c53a862..33717c821a6fc209e06feb78d5d9cbaf15edbbcf 100644 (file)
@@ -17,6 +17,7 @@ include (CheckIncludeFiles)
 include (CheckCSourceCompiles)
 include (collect)
 include (options)
 include (CheckCSourceCompiles)
 include (collect)
 include (options)
+include (depends)
 enable_testing ()
 
 set (OPENAMP_ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
 enable_testing ()
 
 set (OPENAMP_ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
diff --git a/cmake/depends.cmake b/cmake/depends.cmake
new file mode 100644 (file)
index 0000000..aee3db7
--- /dev/null
@@ -0,0 +1,5 @@
+find_package (Libmetal REQUIRED)
+collect (PROJECT_INC_DIRS "${LIBMETAL_INCLUDE_DIR}")
+collect (PROJECT_LIB_DIRS "${LIBMETAL_LIB_DIR}")
+
+# vim: expandtab:ts=2:sw=2:smartindent