<div dir="ltr">Hi there !<div><br></div><div style>I&#39;m quite new to CMake, so please forgive me if the question seems obvious.</div><div style>My project has lines like :</div><div style><br></div><div style><div>link_directories(/path/to/libA/)</div>
<div>add_library(my_project SHARED my_file.cpp)</div><div>target_link_libraries(my_project A)</div><div><br></div><div style>I browsed help and googled a few, but I still wonder how I could set &quot;/path/to/libA/&quot; to be different according to targets.</div>
<div style>Something like &quot;/path/to/libA/Foo/&quot; for some targets &quot;/path/to/libA/Bar/&quot; for others.</div><div style>But my targets are not the basic &quot;Release/Debug/...&quot; ones, more diverse.</div>
<div style><br></div><div style>Info : I&#39;m working with VS2008, but trying CMake for Mac/Linux/iOS ports.</div><div style><br></div><div style>Thanks</div><div style>Domé</div><div><br></div></div></div>