[CMake] Build application suite with dependency checking but single shared libraries without it

felix felix.schwitzer at gmx.at
Sun Dec 1 16:25:42 EST 2013


I think your use case is a common one. You can split up all things in
different projects and use
a superproject and using ExternalProject, but maybe that needs a big rework
of your project structure.

I have in my repository also a lot of libraries and some applications and
use the export command to
allow other projects to import the library. Let me explain with a example
what I mean. Suppose I have
a structure like
- lib1
- lib2
- myapp
where myapp depends on lib1 and lib2, lib2 depends on lib1.
When generating lib1 export the cmake-configuration and then in lib2 simply
use

set(lib1_DIR "../lib1)
find_package(lib1 REQUIRED)

regards
Felix



--
View this message in context: http://cmake.3232098.n2.nabble.com/Build-application-suite-with-dependency-checking-but-single-shared-libraries-without-it-tp7586228p7586232.html
Sent from the CMake mailing list archive at Nabble.com.


More information about the CMake mailing list