Skip to content

Commit

Permalink
Add sdk include dirs and flags in test app
Browse files Browse the repository at this point in the history
  • Loading branch information
lukamac committed Feb 9, 2024
1 parent 7fe2ec1 commit 88b6d07
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,22 @@ 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)
board_postamble(nnx_test_app)
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)

Expand Down

0 comments on commit 88b6d07

Please sign in to comment.