区分两个CMAKE件。我无法理解为什么一个人无法工作

时间:2015-09-02 16:48:30

标签: c++ cmake

有什么区别:

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)

第二个有效,而第一个没有。我想我得到了文件通信的工作原理。这应该有效!

0 个答案:

没有答案