[CMake] regarding linking functionality and overloading in cmake

Leila Baghdadi baghdadi at phenogenomics.ca
Wed Jun 22 16:57:05 EDT 2011


hi everyone,

I have been trying to use cmake to build ctsim(need to add my own code to it later) and finally managed to do it however I have difficulty understanding why my puny solution works!

I have 3 different directories (a,b,c) in ctsim , so I set up cmake files in each one and built liba.so and so on,

now I am trying to build the executable cstim by linking to the above three libraries and I kept getting an error, regarding an overloading function in directory a,

I thought that using TARGET_LINK_LIBRARIES(target a b c) would address that but instead I had to add the source code with the overloading function from directory a into the list of source codes for the ctsim executable,

does that make sense? 

any thought 

thanks

Leila

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110622/88a5c19d/attachment.htm>


More information about the CMake mailing list