I am setting up my first CMakeLists.txt
and I can’t figure out the following:
- How can I make
CMakeLists.txt
read only from the files included inside the (eg.)src/
folder, wheresrc/
is a folder inside the same directoryCMakeLists.txt
is? - Can I include an entire folder in
add_library()
, which only contains.hpp
files? - 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!