Recursive CMake search for header and source files
问题 I am new to CMake and would like to ask if somebody can help in the following problem. I have C++ source and header files in their respective folders and now, I want to make a CMake text file that recursively searches for them. Currently, I am doing it in this way: CMAKE_MINIMUM_REQUIRED(VERSION 2.8) PROJECT(CarDetectorDAISY) file(GLOB_RECURSE SRCS *.cpp) file(GLOB_RECURSE HDRS *.h) ADD_EXECUTABLE(stereo_framework ${SRCS} ${HDRS}) TARGET_LINK_LIBRARIES(stereo_framework) This creates my