CMake: how best to build multiple (optional) subprojects?

后端 未结 6 2076
说谎
说谎 2021-02-18 16:23

Imagine an overall project with several components:

  • basic
  • io
  • web
  • app-a
  • app-b
  • app-c

Now, let\'s say web

6条回答
  •  故里飘歌
    2021-02-18 17:02

    You can use ADD_SUBDIRECTORY for this!

    https://cmake.org/cmake/help/v3.11/command/add_subdirectory.html

提交回复
热议问题