[CMake] Addressing an external MS project as target

Floca Ralf Omar r.floca at dkfz-heidelberg.de
Mon Nov 10 05:39:32 EST 2008


Hello,
 
there is the following situation: I use CMake as build control system (Windows platform, MS Visual Studio) for my own project (A). A depends on a second project (B). The project-files of B are pre generated and not covered by my CMake-Scripts. I use "INCLUDE_EXTERNAL_MSPROJECT" to integrate B into my solution.
Until this point everything works fine. But is there any way to address included external projects (like B) as a target in a CMake script. I would need this to add dependencies between A and B (e.g. ADD_DEPENDENCIES(A B)), so that B would also be build when I want to build A.
 
In the documentation and the mailing list I have found no information how to do this. And it seems that INCLUDE_EXTERNAL_MSPROJECT has no possibilities to introduce a Target identifier (like ADD_CUSTOM_TARGET).
 
I am thankful for any clues or tips that could help me to represent the project dependency in my CMake scripts.
 
Kind regards,
 
Ralf Floca
 
 
------------------------------------------------------------------
Ralf Floca
DKFZ
German Cancer Research Center (Deutsches Krebsforschungszentrum) 
Member of the Helmholtz Association
E071 Research Group
Software Development for Integrated Diagnostics and Therapy (SIDT)
 
Im Neuenheimer Feld 280
D-69120 Heidelberg
 
Telefon: +49 (6221) 42 3021
E-Mail: r.floca at dkfz.de
Web: www.dkfz.de
------------------------------------------------------------------
 


More information about the CMake mailing list