mity / acutest

Simple header-only C/C++ unit testing facility.
MIT License
346 stars 96 forks source link

Remove header specification from add_executable in CMake #50

Closed vdimir closed 4 years ago

vdimir commented 4 years ago

Do we actually need pass header to add_executable ?

mity commented 4 years ago

I believe it allows CMake-generated Makefiles/project files to track dependencies. With it, when you change the header and type make, the executable shall rebuild because it's known to depend on the header.

vdimir commented 4 years ago

I believe it allows CMake-generated Makefiles/project files to track dependencies. With it, when you change the header and type make, the executable shall rebuild because it's known to depend on the header.

Got it, thanks. I close PR.