Skip to content

Commit

Permalink
lib: Add include directory to open_amp-static target
Browse files Browse the repository at this point in the history
Include a header directory in the open_amp-static target, enabling
building and linking static library using CMake subdirectory.

Signed-off-by: Taras Zaporozhets <zaporozhets.taras@gmail.com>
  • Loading branch information
zaporozhets authored and arnopo committed Jan 4, 2024
1 parent 88ab928 commit 1957ed2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/CMakeLists.txt
Expand Up @@ -61,6 +61,7 @@ else (WITH_ZEPHYR)
if (WITH_STATIC_LIB)
set (_lib ${OPENAMP_LIB}-static)
add_library (${_lib} STATIC ${_sources})
target_include_directories(${_lib} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
install (TARGETS ${_lib} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
set_target_properties (${_lib} PROPERTIES
OUTPUT_NAME "${OPENAMP_LIB}"
Expand Down

0 comments on commit 1957ed2

Please sign in to comment.