diff --git a/dap-sdk/core/test/CMakeLists.txt b/dap-sdk/core/test/CMakeLists.txt index 17abd9a9b7513c98675aa272a835c2a2352ee13b..06e68949d64e673af4cead93a47a0146dee2cfa2 100755 --- a/dap-sdk/core/test/CMakeLists.txt +++ b/dap-sdk/core/test/CMakeLists.txt @@ -7,7 +7,11 @@ file(GLOB SRCS *.c) if(UNIX) - file(GLOB PLATROFM_DEP_SRC unix/*.c unix/*.h) +if (OFF_CORE_CELLFRAME_SDK_TESTS_OFF MATCHES "network-monitor") + file(GLOB PLATROFM_DEP_SRC unix/dap_cpu*.c unix/dap_process*.c unix/dap_cpu*.h unix/dap_process*.h) + else() + file(GLOB PLATROFM_DEP_SRC unix/*.c unix/*.h) + endif() endif() add_executable(${PROJECT_NAME} ${SRCS} ${PLATROFM_DEP_SRC}) diff --git a/dap-sdk/core/test/main.c b/dap-sdk/core/test/main.c index 71b896bce01bbc74615efd4a12a71a5992908ee9..d2235436396155c2686b16acb4da487484814767 100755 --- a/dap-sdk/core/test/main.c +++ b/dap-sdk/core/test/main.c @@ -5,7 +5,7 @@ #include "dap_circular_test.h" #include "dap_process_mem_test.h" #include "dap_cpu_monitor_test.h" -#ifndef DDAP_NETWORK_MONITOR_TEST_OFF +#ifndef DAP_NETWORK_MONITOR_TEST_OFF #include "dap_network_monitor.h" #include "dap_network_monitor_test.h" #endif