I am trying to compile a single .cpp
file in an otherwise header-only project as the BUILD_COMMAND
of my ExternalProject_Add
. Ideally, I'd like this build command to compile this one cpp file exactly as it's compiling everything else in the project, with all the associated flags, debugging info and so forth.
I can't seem to find how to make a build command which does this. Any ideas?