for a c++ project, I can use
aux_source_directory
to add all the cpp files; however this command does not include header files; anyway to add header files?
for a c++ project, I can use
aux_source_directory
to add all the cpp files; however this command does not include header files; anyway to add header files?
You can use the file
command to add all the files that you want, like
file(GLOB SOURCES
your-folder/*.hxx
your-folder/*.cxx
)
add_executable(yourProj ${SOURCES})