<div>Hi, list!</div>
<div>I have a library target named 'TestLib', path is "./src/libs/testlib_src_dir'</div>
<div>And now I made a execute named 'TestApp', path is './src/app'</div>
<div> </div>
<div>I try to link TestLib using:</div>
<div>target_link_libraries(TestApp TestLib)</div>
<div> </div>
<div>My question:</div>
<div>How to get the 'TestLib' target's source direcory (want get './src/libs/testlib_src_dir')?</div>
<div> </div>
<div>I read the documents, and want to using:</div>
<div>get_target_properies(libdir TestLib XXX)</div>
<div>in TestApp's CMakeLists.txt. But I can't get what is the XXX name?</div>
<div> </div>
<div>For now, I have to using:</div>
<div>include_directory(../libs/testlib_src_dir) in TestApp's CMakeLists.txt.</div>
<div>But I thought there possible exist an better way to solved my problem.</div>
<div> </div>
<div>I need some tips, and want your help.</div>
<div>Thanks a lot!</div>
<div> </div>
<div>Sorry for my poor English. </div>
<div>English is not my native language.<br clear="all"><br>-- <br></div>
<div>Best Regards</div>
<div>Yuchen</div><br>