I have an external project that provides source files that I want to use to build an executable. I currently have something like the below:
ExternalProject(myproj)
add_executable(myexecutable source.c) # source.c is provided by myproj
add_depedencies(myexecutable myproj)
It errors and complains that it can't find source.c because it hasn't downloaded the external project yet. Is there a way to tell CMake that source.c comes from the external project?