removing unneeded install targets for static libs (reported by Filipe)

master
Andre Puschmann 5 years ago
parent 627dac49b0
commit cccabdaf4f

@ -26,11 +26,9 @@ add_library(srslte_asn1 STATIC
liblte_m2ap.cc liblte_m2ap.cc
gtpc.cc gtpc.cc
) )
install(TARGETS srslte_asn1 DESTINATION ${LIBRARY_DIR})
# Install ASN1 utils # ASN1 utils
add_library(asn1_utils STATIC asn1_utils.cc) add_library(asn1_utils STATIC asn1_utils.cc)
install(TARGETS asn1_utils DESTINATION ${LIBRARY_DIR})
add_library(rrc_asn1 STATIC add_library(rrc_asn1 STATIC
rrc_asn1.cc rrc_asn1.cc
@ -40,25 +38,22 @@ add_library(rrc_asn1 STATIC
# Compile RRC ASN1 optimized for size # Compile RRC ASN1 optimized for size
target_compile_options(rrc_asn1 PRIVATE "-Os") target_compile_options(rrc_asn1 PRIVATE "-Os")
target_link_libraries(rrc_asn1 asn1_utils) target_link_libraries(rrc_asn1 asn1_utils)
install(TARGETS rrc_asn1 DESTINATION ${LIBRARY_DIR})
add_library(s1ap_asn1 STATIC add_library(s1ap_asn1 STATIC
s1ap_asn1.cc) s1ap_asn1.cc)
target_compile_options(s1ap_asn1 PRIVATE "-Os") target_compile_options(s1ap_asn1 PRIVATE "-Os")
target_link_libraries(s1ap_asn1 asn1_utils) target_link_libraries(s1ap_asn1 asn1_utils)
install(TARGETS s1ap_asn1 DESTINATION ${LIBRARY_DIR})
if (ENABLE_5GNR) if (ENABLE_5GNR)
# Install RRC NR ASN1 # RRC NR ASN1
add_library(rrc_nr_asn1 STATIC rrc_nr_asn1.cc) add_library(rrc_nr_asn1 STATIC rrc_nr_asn1.cc)
target_compile_options(rrc_nr_asn1 PRIVATE "-Os") target_compile_options(rrc_nr_asn1 PRIVATE "-Os")
target_link_libraries(rrc_nr_asn1 asn1_utils) target_link_libraries(rrc_nr_asn1 asn1_utils)
install(TARGETS rrc_nr_asn1 DESTINATION ${LIBRARY_DIR})
# Install NGAP ASN1 # NGAP ASN1
add_library(ngap_nr_asn1 STATIC ngap_nr_asn1.cc) add_library(ngap_nr_asn1 STATIC ngap_nr_asn1.cc)
target_compile_options(ngap_nr_asn1 PRIVATE "-Os") target_compile_options(ngap_nr_asn1 PRIVATE "-Os")
target_link_libraries(ngap_nr_asn1 asn1_utils) target_link_libraries(ngap_nr_asn1 asn1_utils)
install(TARGETS ngap_nr_asn1 DESTINATION ${LIBRARY_DIR})
endif(ENABLE_5GNR) endif(ENABLE_5GNR)

@ -58,6 +58,5 @@ add_executable(arch_select arch_select.cc)
target_include_directories(srslte_common PUBLIC ${SEC_INCLUDE_DIRS}) target_include_directories(srslte_common PUBLIC ${SEC_INCLUDE_DIRS})
target_link_libraries(srslte_common srslte_phy ${SEC_LIBRARIES}) target_link_libraries(srslte_common srslte_phy ${SEC_LIBRARIES})
install(TARGETS srslte_common DESTINATION ${LIBRARY_DIR})
add_subdirectory(test) add_subdirectory(test)

@ -53,10 +53,5 @@ set(srslte_srcs $<TARGET_OBJECTS:srslte_agc>
$<TARGET_OBJECTS:srslte_enb> $<TARGET_OBJECTS:srslte_enb>
) )
add_library(srslte_phy STATIC ${srslte_srcs}) add_library(srslte_phy STATIC ${srslte_srcs})
target_link_libraries(srslte_phy ${FFT_LIBRARIES}) target_link_libraries(srslte_phy pthread m ${FFT_LIBRARIES})
target_link_libraries(srslte_phy pthread m)
install(TARGETS srslte_phy DESTINATION ${LIBRARY_DIR})

@ -21,7 +21,6 @@
if(RF_FOUND) if(RF_FOUND)
add_library(srslte_radio STATIC radio.cc radio_multi.cc) add_library(srslte_radio STATIC radio.cc radio_multi.cc)
target_link_libraries(srslte_radio srslte_rf) target_link_libraries(srslte_radio srslte_rf)
install(TARGETS srslte_radio DESTINATION ${LIBRARY_DIR})
endif(RF_FOUND) endif(RF_FOUND)
add_subdirectory(test) add_subdirectory(test)

@ -35,4 +35,3 @@ endif(ENABLE_5GNR)
add_library(srslte_upper STATIC ${SOURCES}) add_library(srslte_upper STATIC ${SOURCES})
target_link_libraries(srslte_upper srslte_common srslte_asn1) target_link_libraries(srslte_upper srslte_common srslte_asn1)
install(TARGETS srslte_upper DESTINATION ${LIBRARY_DIR})

@ -24,6 +24,3 @@ add_library(srsenb_phy STATIC ${SOURCES})
if(ENABLE_GUI AND SRSGUI_FOUND) if(ENABLE_GUI AND SRSGUI_FOUND)
target_link_libraries(srsenb_phy ${SRSGUI_LIBRARIES}) target_link_libraries(srsenb_phy ${SRSGUI_LIBRARIES})
endif(ENABLE_GUI AND SRSGUI_FOUND) endif(ENABLE_GUI AND SRSGUI_FOUND)
install(TARGETS srsenb_phy DESTINATION ${LIBRARY_DIR})

@ -20,4 +20,3 @@
file(GLOB SOURCES "*.cc") file(GLOB SOURCES "*.cc")
add_library(srsenb_radio STATIC ${SOURCES}) add_library(srsenb_radio STATIC ${SOURCES})
install(TARGETS srsenb_radio DESTINATION ${LIBRARY_DIR})

@ -26,6 +26,3 @@ set(SOURCES enb_stack_lte.cc)
add_library(srsenb_stack STATIC ${SOURCES}) add_library(srsenb_stack STATIC ${SOURCES})
target_link_libraries(srsenb_stack) target_link_libraries(srsenb_stack)
install(TARGETS srsenb_stack DESTINATION ${LIBRARY_DIR})

@ -20,5 +20,3 @@
file(GLOB SOURCES "*.cc") file(GLOB SOURCES "*.cc")
add_library(srsenb_mac STATIC ${SOURCES}) add_library(srsenb_mac STATIC ${SOURCES})
install(TARGETS srsenb_mac DESTINATION ${LIBRARY_DIR})

@ -19,7 +19,4 @@
# #
set(SOURCES rrc.cc rrc_mobility.cc) set(SOURCES rrc.cc rrc_mobility.cc)
add_library(srsenb_rrc STATIC ${SOURCES}) add_library(srsenb_rrc STATIC ${SOURCES})
install(TARGETS srsenb_rrc DESTINATION ${LIBRARY_DIR})

@ -20,5 +20,3 @@
file(GLOB SOURCES "*.cc") file(GLOB SOURCES "*.cc")
add_library(srsenb_upper STATIC ${SOURCES}) add_library(srsenb_upper STATIC ${SOURCES})
install(TARGETS srsenb_upper DESTINATION ${LIBRARY_DIR})

@ -60,9 +60,6 @@ if (RPATH)
set_target_properties(srsmbms PROPERTIES INSTALL_RPATH ".") set_target_properties(srsmbms PROPERTIES INSTALL_RPATH ".")
endif (RPATH) endif (RPATH)
install(TARGETS srsepc DESTINATION ${RUNTIME_DIR})
install(TARGETS srsmbms DESTINATION ${RUNTIME_DIR})
######################################################################## ########################################################################
# Option to run command after build (useful for remote builds) # Option to run command after build (useful for remote builds)
######################################################################## ########################################################################
@ -74,3 +71,4 @@ else(NOT ${BUILDEPC_CMD} STREQUAL "")
endif (NOT ${BUILDEPC_CMD} STREQUAL "") endif (NOT ${BUILDEPC_CMD} STREQUAL "")
install(TARGETS srsepc DESTINATION ${RUNTIME_DIR}) install(TARGETS srsepc DESTINATION ${RUNTIME_DIR})
install(TARGETS srsmbms DESTINATION ${RUNTIME_DIR})

@ -20,5 +20,3 @@
file(GLOB SOURCES "*.cc") file(GLOB SOURCES "*.cc")
add_library(srsepc_hss STATIC ${SOURCES}) add_library(srsepc_hss STATIC ${SOURCES})
install(TARGETS srsepc_hss DESTINATION ${LIBRARY_DIR})

@ -20,4 +20,3 @@
file(GLOB SOURCES "*.cc") file(GLOB SOURCES "*.cc")
add_library(srsepc_mbms_gw STATIC ${SOURCES}) add_library(srsepc_mbms_gw STATIC ${SOURCES})
install(TARGETS srsepc_mbms_gw DESTINATION ${LIBRARY_DIR})

@ -20,5 +20,3 @@
file(GLOB SOURCES "*.cc") file(GLOB SOURCES "*.cc")
add_library(srsepc_mme STATIC ${SOURCES}) add_library(srsepc_mme STATIC ${SOURCES})
install(TARGETS srsepc_mme DESTINATION ${LIBRARY_DIR})

@ -20,4 +20,3 @@
file(GLOB SOURCES "*.cc") file(GLOB SOURCES "*.cc")
add_library(srsepc_sgw STATIC ${SOURCES}) add_library(srsepc_sgw STATIC ${SOURCES})
install(TARGETS srsepc_sgw DESTINATION ${LIBRARY_DIR})

@ -24,5 +24,3 @@ add_library(srsue_phy STATIC ${SOURCES})
if(ENABLE_GUI AND SRSGUI_FOUND) if(ENABLE_GUI AND SRSGUI_FOUND)
target_link_libraries(srsue_phy ${SRSGUI_LIBRARIES}) target_link_libraries(srsue_phy ${SRSGUI_LIBRARIES})
endif(ENABLE_GUI AND SRSGUI_FOUND) endif(ENABLE_GUI AND SRSGUI_FOUND)
install(TARGETS srsue_phy DESTINATION ${LIBRARY_DIR})

@ -23,8 +23,4 @@ add_subdirectory(rrc)
add_subdirectory(upper) add_subdirectory(upper)
set(SOURCES ue_stack_lte.cc) set(SOURCES ue_stack_lte.cc)
add_library(srsue_stack STATIC ${SOURCES}) add_library(srsue_stack STATIC ${SOURCES})
install(TARGETS srsue_stack DESTINATION ${LIBRARY_DIR})

@ -20,4 +20,3 @@
set(SOURCES demux.cc dl_harq.cc mac.cc mux.cc proc_bsr.cc proc_phr.cc proc_ra.cc proc_sr.cc ul_harq.cc) set(SOURCES demux.cc dl_harq.cc mac.cc mux.cc proc_bsr.cc proc_phr.cc proc_ra.cc proc_sr.cc ul_harq.cc)
add_library(srsue_mac STATIC ${SOURCES}) add_library(srsue_mac STATIC ${SOURCES})
install(TARGETS srsue_mac DESTINATION ${LIBRARY_DIR})

@ -19,7 +19,4 @@
# #
set(SOURCES rrc.cc rrc_procedures.cc rrc_meas.cc) set(SOURCES rrc.cc rrc_procedures.cc rrc_meas.cc)
add_library(srsue_rrc STATIC ${SOURCES}) add_library(srsue_rrc STATIC ${SOURCES})
install(TARGETS srsue_rrc DESTINATION ${LIBRARY_DIR})

@ -29,5 +29,3 @@ add_library(srsue_upper STATIC ${SOURCES})
if(HAVE_PCSC) if(HAVE_PCSC)
target_link_libraries(srsue_upper ${PCSCLITE_LIBRARY}) target_link_libraries(srsue_upper ${PCSCLITE_LIBRARY})
endif(HAVE_PCSC) endif(HAVE_PCSC)
install(TARGETS srsue_upper DESTINATION ${LIBRARY_DIR})

Loading…
Cancel
Save