<div dir="ltr">Hi,<div><br></div><div>My cross platform project has a main module and a custom library. The main module depends on the custom library. Both these projects need to be built with cmake. At present the option I find to set this is to using the "target_link_library(MyExe ${CMAKE_CURRENT_BINARY_DIR}/myLib.lib)". But this code makes my cmake file platform dependent, that is on windows I need to use the "MyLib.lib" in CMake and on Linux I need to use "MyLib.a" ! Is there a better alternative? (I went through the doc of find_library(), but it doesn't seem to be suitable in this scenatio)</div>
<div><br></div><div>Thanks,</div><div> Lloyd </div></div>