You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the proper way to gather source files and generated artifacts (*.dll, *.lib, etc) from CPM modules my top-level CMake project depends on?
Due to the way CPM organizes source repositories and artifacts, it seems to be a bit difficult to reliably do things like copy *.dll files to where my main executable resides (for easier debugging, packaging, etc).
Some examples:
My top-level CMake project (main product) depends on a shared library generated by a child (CPM module), which must be bundled with the product when released.
The linker input file (*.lib) and source header files for the same shared library must also be released independently for use by third parties.
I have seen some solutions for CMake which involves...
Setting CMAKE_RUNTIME_OUTPUT_DIRECTORY in the parent; however, CPM overrides it.
Setting the same variable in the CPM modules; the result is the same.
My next idea was to set a cached variable in each child, e.g. something like this:
What is the proper way to gather source files and generated artifacts (*.dll, *.lib, etc) from CPM modules my top-level CMake project depends on?
Due to the way CPM organizes source repositories and artifacts, it seems to be a bit difficult to reliably do things like copy *.dll files to where my main executable resides (for easier debugging, packaging, etc).
Some examples:
I have seen some solutions for CMake which involves...
My next idea was to set a cached variable in each child, e.g. something like this:
My issues with this approach are:
Thank you for any assistance you can provide!
The text was updated successfully, but these errors were encountered: