0

It is possible to add .obj files to linker as in Compile and add an object file from a binary with CMake

for example:

target_link_libraries(
    myProgram 
    ${CMAKE_CURRENT_SOURCE_DIR}/libs/obj.o
)

but is there possibility to add all .obj from a given directory, for example with wildcard *.obj?

I have many .obj files from external dependencies and manually adding every each of them looks too tedious.

pawrok
  • 11
  • 4

0 Answers0