On Wed, Feb 25, 2009 at 1:38 AM, Hendrik Sattler &lt;post@hendrik-sattler.de&gt; wrote:<br />debug and optimized keywords are followed by _one_ library. The help entry<br />defines this correctly.<br /><br />Thanks and sorry I missed that in the help.  cmake really is amazing, but I also find it massive.  The &quot;Mastering Cmake&quot; book is excellent, but if people write an even longer text with lots of tutorial examples I promise to buy it.<br /><br />I have now changed things around to do the following:<br />#Set in my find module.<br />set(ETK_LIBS   debug scl-d<br />                        optimized scl<br />                        debug libIpopt-mt-d<br />                        optimized libIpopt-mt) #in reality, there are about 20 libs<br /><br />#set in my cmakelists.txt for my project.<br />add_executable(hello2 ${hello2_SRCS})<br />target_link_libraries(hello2 ${ETK_LIBS })<br /><br />Is this the best way to setup long lists of libraries to link in?<br /><br />And is there any way for me to have separate lists that work for my custom build type that works in visual studio?  I want an MPI and heavily optimized build type that people can choose.