[script] add install target for lib CMakefile

This commit is contained in:
tangxifan 2022-08-24 19:47:01 -07:00
parent ab9d9650d4
commit 83600d2bdd
8 changed files with 14 additions and 18 deletions

View File

@ -32,3 +32,5 @@ foreach(testsourcefile ${EXEC_SOURCES})
# Make sure the library is linked to each test executable
target_link_libraries(${testname} libarchopenfpga)
endforeach(testsourcefile ${EXEC_SOURCES})
install(TARGETS libarchopenfpga DESTINATION bin)

View File

@ -32,3 +32,5 @@ foreach(testsourcefile ${EXEC_SOURCES})
# Make sure the library is linked to each test executable
target_link_libraries(${testname} libbusgroup)
endforeach(testsourcefile ${EXEC_SOURCES})
install(TARGETS libbusgroup DESTINATION bin)

View File

@ -32,3 +32,5 @@ foreach(testsourcefile ${EXEC_SOURCES})
# Make sure the library is linked to each test executable
target_link_libraries(${testname} libfabrickey)
endforeach(testsourcefile ${EXEC_SOURCES})
install(TARGETS libfabrickey DESTINATION bin)

View File

@ -32,3 +32,5 @@ foreach(testsourcefile ${EXEC_SOURCES})
# Make sure the library is linked to each test executable
target_link_libraries(${testname} libfpgabitstream)
endforeach(testsourcefile ${EXEC_SOURCES})
install(TARGETS libfpgabitstream DESTINATION bin)

View File

@ -11,3 +11,5 @@ add_library(libini STATIC
target_include_directories(libini PUBLIC ${LIB_INCLUDE_DIRS})
set_target_properties(libini PROPERTIES PREFIX "" LINKER_LANGUAGE CXX)
install(TARGETS libini DESTINATION bin)

View File

@ -35,10 +35,4 @@ target_link_libraries(test_shell libopenfpgashell)
add_executable(test_command_parser ${EXEC_TEST_CMD})
target_link_libraries(test_command_parser libopenfpgashell)
#Supress IPO link warnings if IPO is enabled
#get_target_property(READ_ARCH_USES_IPO read_arch_openfpga INTERPROCEDURAL_OPTIMIZATION)
#if (READ_ARCH_USES_IPO)
# set_target_properties(read_arch_openfpga PROPERTIES LINK_FLAGS ${IPO_LINK_WARN_SUPRESS_FLAGS})
#endif()
#install(TARGETS libarchopenfpga read_arch_openfpga DESTINATION bin)
install(TARGETS libopenfpgashell DESTINATION bin)

View File

@ -81,14 +81,4 @@ target_link_libraries(libopenfpgautil
libarchfpga
libvtrutil)
#Create the test executable
#add_executable(read_arch_openfpga ${EXEC_SOURCES})
#target_link_libraries(read_arch_openfpga libarchopenfpga)
#Supress IPO link warnings if IPO is enabled
#get_target_property(READ_ARCH_USES_IPO read_arch_openfpga INTERPROCEDURAL_OPTIMIZATION)
#if (READ_ARCH_USES_IPO)
# set_target_properties(read_arch_openfpga PROPERTIES LINK_FLAGS ${IPO_LINK_WARN_SUPRESS_FLAGS})
#endif()
#install(TARGETS libarchopenfpga read_arch_openfpga DESTINATION bin)
install(TARGETS libopenfpgautil DESTINATION bin)

View File

@ -34,3 +34,5 @@ foreach(testsourcefile ${EXEC_SOURCES})
# Make sure the library is linked to each test executable
target_link_libraries(${testname} libpcf)
endforeach(testsourcefile ${EXEC_SOURCES})
install(TARGETS libpcf DESTINATION bin)