Hi&nbsp; list<br>&nbsp; I am using cmake as a tool for generating Linux makefiles.<br><br>I read the documentation and made a CmakeLists.txt file.<br>but when I do a cmake . , I get&nbsp; errors<br><br>here is the CmakeLists.txt file <br>----------------------<br>PROJECT(myproject)<br>SET_TARGET_PROPERTIES(HelloWorld PROPERTIES LINKER_LANGUAGE CXX)<br>INCLUDE_DIRECTORIES(../dcmtk-3.5.4/dcmnet/apps&nbsp; ../dcmtk-3.5.4/dcmnet/include ../dcmtk-3.5.4/dcmdata/include ../dcmtk-3.5.4/dcmdata ../dcmtk-3.5.4/ofstd/include ../dcmtk-3.5.4/config/include)<br>ADD_DEFINITIONS(-DHAVE_CONFIG_H -DNDEBUG -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L)<br>LINK_DIRECTORIES(../dcmtk-3.5.4/dcmnet/libsrc ../dcmtk-3.5.4/dcmdata/libsrc ../dcmtk-3.5.4/ofstd/libsrc ../dcmtk-3.5.4/dcmtls/libsrc)<br>TARGET_LINK_LIBRARIES(HelloWorld dcmnet dcmdata ofstd z wrap dcmtls dl m rt pthread nsl)<br>ADD_EXECUTABLE(HelloWorld
 HelloWorld.cpp)<br>--------------------<br><br>and here are the errors<br>--------------------<br>CMake Error: Attempt to add link library "dcmnet" to target "HelloWorld" which is not built by this project.<br>CMake Error: Attempt to add link library "dcmdata" to target "HelloWorld" which is not built by this project.<br>....<br>---------------------<br><br>Agreed that I am linking to a library that's not built by CMake. But shouldn't I be allowed to do it?<br><br>Could anyone please help me on this.<br>I am using cmake version 2.4-patch 6 on Fedora Core 6<br><br>Regards<br>Abhijeet<br><br><br><p>&#32;

<hr size=1><a href="http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&sid=396545367">Food fight?</a> Enjoy some healthy debate<br>in the <a href="http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&sid=396545367">Yahoo! Answers Food & Drink Q&A.</a>