[CMake] Executable depending on all source files

Russell Wallace russell.wallace at gmail.com
Sat Aug 25 05:38:12 EDT 2012


How do you specify that an executable depends on all source files in a
directory? I've tried doing it like:

add_executable(foo src/*.cc)

but that only seems to pick up the first source file?


More information about the CMake mailing list