有什么区别:
FILE(GLOB CLASSES_FILES RELATIVE ${CLASSES} [^.]*.cc)
FILE(GLOB HANDLERS_FILES RELATIVE ${HANDLERS} [^.]*.c)
ADD_LIBRARY(deti_boot_lib SHARED ${CLASSES_FILES}
${HANDLERS_FILES})
和
ADD_LIBRARY(deti_boot_lib SHARED ${CLASSES}/BroadcastSecurityManager.cc
${CLASSES}/Decoder.cc
${CLASSES}/Logger.cc
${CLASSES}/Encoder.cc
${CLASSES}/Codeword.cc
${CLASSES}/RandPerm.cc
${CLASSES}/Symbol.cc
${CLASSES}/ReceiverSecurityManager.cc
${HANDLERS}/file_handler.c
${HANDLERS}/lt_handler.c
${HANDLERS}/network_handler.c
${HANDLERS}/time_handler.c)
第二个有效,而第一个没有。我想我得到了文件通信的工作原理。这应该有效!