How to add ".o" file to executable
Answered
I need to add a .o file that contains functions to my project. I'm not sure how I should go about doing so. I tried adding the .o file into the add_executable region of CMakeLists and putting the .o file into the project directory though this didn't work.
Please sign in to leave a comment.
Please see this thread, for example: https://stackoverflow.com/questions/38609303/how-to-add-prebuilt-object-files-to-executable-in-cmake