[CMake] Linker Include Path

2011-10-28 Thread Matthias Schweinoch
Hi all, I'm using cmake (2.8.5) to build a set of C++ libraries. I have a project directory structure which is basically organized like this: package/component/CMakeLists.txt package/component/inc/foo.hpp package/component/src/foo.cpp Boiled down, my CMakeLists.txt for this component

Re: [CMake] Linker Include Path

2011-10-28 Thread David Cole
Can you put a CMakeLists.txt in the xyz directory, like this? add_library(xyz xyz.c) And then in the src/CMakeLists file, do: add_subdirectory(xyz) ... add_library(src ${SOURCES}) target_link_libraries(src xyz) Or is there some reason that xyz.c must be in a different directory, but the same

Re: [CMake] Linker Include Path

2011-10-28 Thread Matthias Schweinoch
Sorry, never mind: Problem has resolved itself. The linker error was due to some other dependency. On 28/10/11 20:44, Matthias Schweinoch wrote: Hi all, I'm using cmake (2.8.5) to build a set of C++ libraries. I have a project directory structure which is basically organized like this: