Re: [CMake] SubDirs and Libraries

2006-10-04 Thread Brad King
Peter Kahn wrote: > 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 >Ut

Re: [CMake] SubDirs and Libraries

2006-10-04 Thread Peter Kahn
I was using it as a variable ${LibName} that was my problem. Thanks. On 10/4/06, Brad King <[EMAIL PROTECTED]> wrote: Peter Kahn wrote: > 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

RE: [CMake] SubDirs and Libraries

2006-10-05 Thread James Mansion
I think you need a dependency declaration too don't you? I've seen VStudio 2k3 build out of order without. ># App/CMakeLists.txt >ADD_EXECUTABLE(myexe ...) >TARGET_LINK_LIBRARIES(myexe mylib) It seems actually a little more complicated in practice because you probably want mylib's headers (possi

Re: [CMake] SubDirs and Libraries

2006-10-05 Thread Brad King
James Mansion wrote: > I think you need a dependency declaration too don't you? > > I've seen VStudio 2k3 build out of order without. > >> # App/CMakeLists.txt >> ADD_EXECUTABLE(myexe ...) >> TARGET_LINK_LIBRARIES(myexe mylib) > > It seems actually a little more complicated in practice > because