How to add ".o" file to executable
已回答
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 see this thread, for example: https://stackoverflow.com/questions/38609303/how-to-add-prebuilt-object-files-to-executable-in-cmake