something like this:
                  
                  
                  src/*.cpp
                  
                  
                  src/widgets/*.cpp
                  
                  
                  src/widgets/*.h
                  
                  
                  i want to cmake recursively include these files. so i use this line of code in cmakelists.txt:
                  
                  
                  include_directories(src)
                  
                  
                  file(GLOB SOURCES "src/*.cpp")
                  
                  
                  ADD_EXECUTABLE(test $SOURCES)
                  
                  
                  But it can't find them. why?
                  
                  
                
Manually is better because cmake need check if a file is added or removed
Обсуждают сегодня