CMake: Zynq: generic: update to use xil,metal lib
[processor-sdk/open-amp.git] / cmake / options.cmake
index 1a747fa9be5268e37c081ede19af744791ef5bb7..358d8508bb1464929b2352e808007a983ab7cffb 100644 (file)
@@ -34,7 +34,13 @@ endif (WITH_REMOTEPROC_MASTER)
 # Select which components are in the openamp lib
 option (WITH_PROXY          "Build with proxy(access device controlled by other processor)" ON)
 option (WITH_APPS           "Build with sample applicaitons" OFF)
+option (WITH_PROXY_APPS     "Build with proxy sample applicaitons" OFF)
 if (WITH_APPS)
+  if (WITH_PROXY)
+    set (WITH_PROXY_APPS ON)
+  elseif ("${PROJECT_SYSTEM}" STREQUAL "linux")
+    set (WITH_PROXY_APPS ON)
+  endif (WITH_PROXY)
   option (WITH_BENCHMARK    "Build benchmark app" OFF)
 endif (WITH_APPS)
 option (WITH_OBSOLETE       "Build obsolete system libs" OFF)
@@ -50,5 +56,11 @@ if (WITH_BENCHMARK)
   set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DOPENAMP_BENCHMARK_ENABLE")
 endif (WITH_BENCHMARK)
 
+option (WITH_STATIC_LIB "Build with a static library" ON)
+
+if ("${PROJECT_SYSTEM}" STREQUAL "linux")
+  option (WITH_SHARED_LIB "Build with a shared library" ON)
+endif ("${PROJECT_SYSTEM}" STREQUAL "linux")
+
 message ("-- C_FLAGS : ${CMAKE_C_FLAGS}")
 # vim: expandtab:ts=2:sw=2:smartindent