Chris Foster wrote: > Mateusz: You may find the example layout I've attached useful if you're not > needing to do code generation (just delete all the stuff to do with > hello2.cpp).
Yes, it's very helpful ineed. However, I'm generating some config headers (porting autotools' approach: project.h.in -> project.h) but as I've learned CMake can do the job well. > You might also consider pulling definitions from the > subdirectories into the base CMakeLists.txt using something like > > get_directory_property(libA_srcs DIRECTORY libA DEFINITION srcs) > > rather than pushing them from the subdirectories into the base scope with > set(... PARENT_SCOPE) Interesting trick. Thanks! Best regards, -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake