diff options
Diffstat (limited to 'extras/libmemif/src')
-rw-r--r-- | extras/libmemif/src/CMakeLists.txt | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/extras/libmemif/src/CMakeLists.txt b/extras/libmemif/src/CMakeLists.txt index 09a2e4e6005..aced550ff5d 100644 --- a/extras/libmemif/src/CMakeLists.txt +++ b/extras/libmemif/src/CMakeLists.txt @@ -32,12 +32,15 @@ list(APPEND MEMIF_SOURCES include_directories(${HEADERS_DIR}) -add_vpp_library(${LIBMEMIF} - SOURCES ${MEMIF_SOURCES} - - INSTALL_HEADERS ${MEMIF_HEADERS} - - LINK_LIBRARIES ${CMAKE_THREAD_LIBS_INIT} - - COMPONENT libmemif -) +add_library(memif SHARED ${MEMIF_SOURCES}) +target_link_libraries(memif ${CMAKE_THREAD_LIBS_INIT}) +foreach(file ${MEMIF_HEADERS}) + get_filename_component(dir ${file} DIRECTORY) + install( + FILES ${file} + DESTINATION include/${lib}/${dir} + COMPONENT libmemif-dev + ) +endforeach() + +install(TARGETS memif DESTINATION lib COMPONENT libmemif) |