In my CMakeLists I have the following code segment
add_library(myModule MODULE)
install(
TARGETS myModule
LIBRARY DESTINATION lib
RUNTIME DESTINATION bin
)
add _library(mySharedLib SHARED)
install(
TARGETS mySharedLib
LIBRARY DESTINATION lib
RUNTIME DESTINATION bin
)
If I now install these libraries, then mySharedLib
is put to LIBRARY
on linux and RUNTIME
on windows (as expected by the documentation in https://cmake.org/cmake/help/latest/command/install.html#installing-targets
However the myModule
dll is installed to LIBRARY
on linux and windows.
Shouldn’t this also be installed to RUNTIME
in windows since it is still a dll file?