Apps: Zynq: Update to use libmetal I/O and device
[processor-sdk/open-amp.git] / apps / system / generic / machine / zynq7 / CMakeLists.txt
1 collect (APP_COMMON_SOURCES helper.c)
2 collect (APP_COMMON_SOURCES sys_init.c)
4 if (WITH_REMOTEPROC_MASTER)
5   set (_linker_script "${CMAKE_CURRENT_SOURCE_DIR}/linker_master.ld")
6 else (WITH_REMOTEPROC_MASTER)
7   set (_linker_script "${CMAKE_CURRENT_SOURCE_DIR}/linker_remote.ld")
8 endif (WITH_REMOTEPROC_MASTER)
10 set_property (GLOBAL PROPERTY APP_LINKER_OPT "-Wl,-build-id=none -specs=${CMAKE_CURRENT_SOURCE_DIR}/Xilinx.spec -T\"${_linker_script}\"")
12 find_library(LIBXIL_LIB NAMES xil PATHS ${CMAKE_FIND_ROOT_PATH})
13 get_filename_component(LIBXIL_LIB_DIR ${LIBXIL_LIB} DIRECTORY)
14 collect(PROJECT_LIB_DIRS ${LIBXIL_LIB_DIR})
16 collect(PROJECT_LIB_DEPS xil)
17 collect(PROJECT_LIB_DEPS c)
18 collect(PROJECT_LIB_DEPS m)