Build several CDT C++ projects from commandline

后端 未结 5 1302
别跟我提以往
别跟我提以往 2020-11-28 20:13

What is the best solution to build several CDT C++ projects from the command line? The projects have references and so it is not possible to just build single projects.

5条回答
  •  一个人的身影
    2020-11-28 21:11

    We do this in our existing build.

    Put a makefile in all your external references and your toplevel project. In your "all" rule, have it run: make -C ./externalref1 make -C ./externalref2 etc

    we actually define the external dependencies in a variable: EXT_DEP = externalref1 externalref2 then use the subst (substitute) command to kick off all the sub-makes using the correct call.

提交回复
热议问题