Skip to content

Commit

Permalink
[lib] rename lib to namemanager as a unified library to provide namin…
Browse files Browse the repository at this point in the history
…g support on FPGA modules
  • Loading branch information
tangxifan committed Sep 15, 2023
1 parent 322c675 commit af67b02
Show file tree
Hide file tree
Showing 12 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion libs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ add_subdirectory(libfabrickey)
add_subdirectory(libfpgabitstream)
add_subdirectory(libpcf)
add_subdirectory(libbusgroup)
add_subdirectory(libionamemap)
add_subdirectory(libnamemanager)
add_subdirectory(libtileconfig)
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.9)

project("libionamemap")
project("libnamemanager")

file(GLOB_RECURSE EXEC_SOURCES test/*.cpp)
file(GLOB_RECURSE LIB_SOURCES src/*/*.cpp)
Expand All @@ -11,14 +11,14 @@ files_to_dirs(LIB_HEADERS LIB_INCLUDE_DIRS)
list(REMOVE_ITEM LIB_SOURCES ${EXEC_SOURCES})

#Create the library
add_library(libionamemap STATIC
add_library(libnamemanager STATIC
${LIB_HEADERS}
${LIB_SOURCES})
target_include_directories(libionamemap PUBLIC ${LIB_INCLUDE_DIRS})
set_target_properties(libionamemap PROPERTIES PREFIX "") #Avoid extra 'lib' prefix
target_include_directories(libnamemanager PUBLIC ${LIB_INCLUDE_DIRS})
set_target_properties(libnamemanager PROPERTIES PREFIX "") #Avoid extra 'lib' prefix

#Specify link-time dependancies
target_link_libraries(libionamemap
target_link_libraries(libnamemanager
libarchopenfpga
libopenfpgautil
libopenfpgashell
Expand All @@ -31,7 +31,7 @@ foreach(testsourcefile ${EXEC_SOURCES})
get_filename_component(testname ${testsourcefile} NAME_WE)
add_executable(${testname} ${testsourcefile})
# Make sure the library is linked to each test executable
target_link_libraries(${testname} libionamemap)
target_link_libraries(${testname} libnamemanager)
endforeach(testsourcefile ${EXEC_SOURCES})

install(TARGETS libionamemap DESTINATION bin)
install(TARGETS libnamemanager DESTINATION bin)
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion openfpga/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ target_link_libraries(libopenfpga
libpcf
libvtrutil
libbusgroup
libionamemap
libnamemanager
libtileconfig
libpugixml
libvpr)
Expand Down

0 comments on commit af67b02

Please sign in to comment.