<div dir="ltr"><div><div>I create a DLL and import library via custom commands, but for my purposes right now, I need these libraries to be treated as if they were generated with add_library() (for the project I am workingon where I get transitive dependencies);<br><br></div>I read this<br><br><a href="http://stackoverflow.com/questions/31274577/custom-target-as-a-target-library-in-cmake">http://stackoverflow.com/questions/31274577/custom-target-as-a-target-library-in-cmake</a><br><br></div>but I am not sure if this will invoke the MS linker tools and wreal havoc with the specialized build of the DLL.  Also, this is for a DLL, not a static archive, so in the line<br><br><pre style="margin:0px 0px 1em;padding:5px;border:0px none;font-size:13px;overflow:auto;width:auto;max-height:600px;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;word-wrap:normal;color:rgb(34,36,38);font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;word-spacing:0px;background-color:rgb(238,238,238)"><code style="margin:0px;padding:0px;border:0px none;font-size:13px;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;white-space:inherit;background-color:rgb(238,238,238)">add_library(lib2 STATIC IMPORTED GLOBAL)<br><br></code></pre><pre style="margin:0px 0px 1em;padding:5px;border:0px none;font-size:13px;overflow:auto;width:auto;max-height:600px;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;word-wrap:normal;color:rgb(34,36,38);font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;word-spacing:0px;background-color:rgb(238,238,238)"><code style="margin:0px;padding:0px;border:0px none;font-size:13px;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;white-space:inherit;background-color:rgb(238,238,238)">would I change STATIC to SHARED?<br><br></code></pre><pre style="margin:0px 0px 1em;padding:5px;border:0px none;font-size:13px;overflow:auto;width:auto;max-height:600px;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;word-wrap:normal;color:rgb(34,36,38);font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;word-spacing:0px;background-color:rgb(238,238,238)"><code style="margin:0px;padding:0px;border:0px none;font-size:13px;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;white-space:inherit;background-color:rgb(238,238,238)">Thanks,<br><br></code></pre><pre style="margin:0px 0px 1em;padding:5px;border:0px none;font-size:13px;overflow:auto;width:auto;max-height:600px;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;word-wrap:normal;color:rgb(34,36,38);font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;word-spacing:0px;background-color:rgb(238,238,238)"><code style="margin:0px;padding:0px;border:0px none;font-size:13px;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;white-space:inherit;background-color:rgb(238,238,238)">Tom<br></code></pre><br><br></div>