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

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 you

[CMake] SubDirs and Libraries

2006-10-04 Thread Peter Kahn
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

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