Hi,<br><br>I need to be able to specify directories that the linker will search to be able to find libraries it is to link against. For this, the solution I've found is LINK_DIRECTORIES().<br><br>Next, I need to be able to specify library files that the executable will link against. I have no idea how to do this part. This needs to be portable, so the only logical way I can think of doing this is to use IF() conditionals for each different compiler/platform I intend to support. For example (pseudocode):<br>
<br><span style="font-family: courier new,monospace;">IF( platform is windows )</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> LINK_LIBRARIES( a.lib, b.lib, c.lib )</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">ELSEIF( platform is linux )</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> LINK_LIBRARIES( a.o, b.o, c.o )</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">ENDIF()</span><br><br>This could get really messy, so I'm not sure how you guys would typically handle this situation. Thanks for reading.<br>