Update CMake files to compile OpenAMP for Linux
[processor-sdk/open-amp.git] / apps / system / generic / machine / zynqmp_r5 / CMakeLists.txt
1 collect (APP_COMMON_SOURCES helper.c)
2 collect (APP_COMMON_SOURCES sys_init.c)
4 if (WITH_REMOTEPROC_MASTER)
5   message(FATAL_ERROR "Remoteproc master is not currently supported on ${MACHINE}/${SYSTEM}.")
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_SCRIPT "${_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)