From 88b6d0702d0b18465a25dc8c1915d0000380616b Mon Sep 17 00:00:00 2001 From: Luka Macan Date: Thu, 8 Feb 2024 13:45:54 +0100 Subject: [PATCH] Add sdk include dirs and flags in test app --- test/app/CMakeLists.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/app/CMakeLists.txt b/test/app/CMakeLists.txt index 0da6378..e948791 100644 --- a/test/app/CMakeLists.txt +++ b/test/app/CMakeLists.txt @@ -33,10 +33,10 @@ add_subdirectory(../.. pulp-nnx) if ($ENV{ACCELERATOR} STREQUAL ne16) get_target_property(PULP_NNX_SRCS pulp-nnx SOURCES) list(TRANSFORM PULP_NNX_SRCS PREPEND "../../") - target_sources(nnx_test_app PUBLIC ${PULP_NNX_SRCS}) + target_sources(nnx_test_app PRIVATE ${PULP_NNX_SRCS}) get_target_property(PULP_NNX_INC_DIRS pulp-nnx INCLUDE_DIRECTORIES) - target_include_directories(nnx_test_app PUBLIC ${PULP_NNX_INC_DIRS}) + target_include_directories(nnx_test_app PRIVATE ${PULP_NNX_INC_DIRS}) add_compile_definitions(NNX_ACCELERATOR="ne16") add_compile_definitions(NNX_NE16) @@ -44,11 +44,11 @@ if ($ENV{ACCELERATOR} STREQUAL ne16) elseif ($ENV{ACCELERATOR} STREQUAL neureka) include(cmake/pulp-sdk-siracusa.cmake) - get_target_property(PULP_SDK_INC_DIRS pulp-sdk INCLUDE_DIRECTORIES) - message(STATUS ${PULP_SDK_INC_DIRS}) + target_include_directories(nnx_test_app PRIVATE ${PULP_SDK_INCLUDES}) + target_compile_options(nnx_test_app PRIVATE ${PULP_SDK_COMPILE_FLAGS}) - target_include_directories(nnx_test_app PUBLIC ${PULP_SDK_INCLUDES}) - target_compile_options(nnx_test_app PUBLIC ${PULP_SDK_COMPILE_FLAGS}) + target_include_directories(pulp-nnx PRIVATE ${PULP_SDK_INCLUDES}) + target_compile_options(pulp-nnx PRIVATE ${PULP_SDK_COMPILE_FLAGS}) target_link_libraries(nnx_test_app PUBLIC pulp-nnx pulp-sdk)