Building subproject requiring installed files of another subproject with cmake -


i wonder if possible without magic tricks build in 1 super project 2 subprojects 1 requires files installation of another?

as example: there project a needs file b project b generated @ installation process. both projects cmake-based.

real example: i've tried build kcoreaddons extra-cmake-modules (both available here). kcoreaddons requires cmake files generated @ installation step of extra-cmake-modules.

is possible? approach?

edit

let me simplify go right point:

my project (let's call project x) needs project a needs installed before can used.

i've added project a externalproject_add download, configure, build , install steps project x. problem find script project a cannot find when run cmake in fresh clean build directory. that's obvious project a built , installed @ build step of project x. if make project a optional project x project a installed , next time run cmake project x, project a found.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -