On 25.01.11 02:57:27, luxInteg wrote: > Greetings > > I am learning cmake > > consider my project with two directories dir1 and dir2 > > if I want to:- > move to dir1 and add a library libA in dir1 > move to dir2 and add a library libB in dir2 > move back to dir1 and add a test testA in dir1 > move back to dir2 and add a test testB to dir2 > > > (the moving back is because of the interdependencies of the tests with the > libraries i.e. testA reaquires libB etc)) > > how do I do this?
You don't. All you need is 2 CMakeLists.txt, one in dir1 with libA and testA targets and the other in dir2 with libB and testB targets. CMake as a declarative language (to a certain extent) does not depend on the order in which you declare targets and use them. Andreas -- Just to have it is enough. _______________________________________________ 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