[CMake] SubDirs and Libraries

Peter Kahn citizenkahn at gmail.com
Wed Oct 4 17:36:20 EDT 2006


What is the standard way of having cmake access libaries built on the
same subdir level?

I have a project with two subdirs: Util and App.   Util builds a
library called 'utillib'.  Ap builds a
library and an exe (aplib, and ap.exe).
Main\
    CMakeLists.tst
    Util\CMakeLists.txt
    App\CmakeLists.txt

If I define the utillib in Main\Util\CMakeLists.txt  how can the
Main\App\CMakeLists.txt use it?  Should I define something in
Main\CMakeLists.txt first and then populate it when Main\Util builds?

Thanks for the help...
-- 
Peter Kahn
citizenkahn at gmail.com
citizenkahn at jabber80.com, pkahnpie1 at AIM, skype: citizenkahn


More information about the CMake mailing list