I want to use regular expression to add all files to add_library, but it does not work.
I tried this :
add_library(8021qbg SHARED
        8021QBG/"*.h"
        8021QBG/"*.cpp"
        )
And get this:
CMake Error at CMakeLists.txt:128 (add_library):
  Cannot find source file:
    8021QBG/"*.h"
  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx
I tried this:
file(GLOB 8021x
        8021x/"*.h"
        8021x/"*.cpp"
        )
add_library(8021x SHARED
        ${8021x}
        )
And at compiling make command does not see sources to compile.
I want to build shared library using something not to write down every source file (regular expression, I suppose).
How to do it?
 
     
    