example: generic: Add dependent libs

Add dependent libs in the CMAke file of generic examples.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
This commit is contained in:
Wendy Liang
2016-11-10 16:54:32 -08:00
parent c9fe7d95d6
commit 22c0d5bb7a
3 changed files with 12 additions and 0 deletions
+2
View File
@@ -1,3 +1,5 @@
collect(PROJECT_LIB_DEPS metal)
add_subdirectory (system)
# vim: expandtab:ts=2:sw=2:smartindent
@@ -1 +1,6 @@
collect(PROJECT_LIB_DEPS xil)
collect(PROJECT_LIB_DEPS c)
collect(PROJECT_LIB_DEPS m)
add_subdirectory(zynqmp_amp_demo)
@@ -4,6 +4,11 @@ include_directories (${_list} ${CMAKE_CURRENT_SOURCE_DIR})
collector_list (_list PROJECT_LIB_DIRS)
link_directories (${_list})
collect(PROJECT_LIB_DEPS metal)
collect(PROJECT_LIB_DEPS xil)
collect(PROJECT_LIB_DEPS c)
collect(PROJECT_LIB_DEPS m)
collector_list (_deps PROJECT_LIB_DEPS)
set (_linker_script ${CMAKE_CURRENT_SOURCE_DIR}/lscript.ld)