I am setting up my first CMakeLists.txt and I can’t figure out the following:
- How can I make
CMakeLists.txtread only from the files included inside the (eg.)src/folder, wheresrc/is a folder inside the same directoryCMakeLists.txtis? - Can I include an entire folder in
add_library(), which only contains.hppfiles? - Should I add
${PROJECT_NAME}inadd_library(<name>)or something else? - How can I determine the minimum CMake and C++ version for my project?
Thanks in advance!