I am writing an Excel file builder in C++.
I have everything I need working, but I still rely on an external empty .xlsx file which I unzip, iterate through, and add
To link the object file into the exectuable, add it to the list of source files in add_executable() instead of trying to add it to target_link_libraries().
For generating the object file in the first place, see add_custom_command(). In this case, you will want to use its form which specifies an OUTPUT parameter.