How to generate CMakeLists.txt?

前端 未结 7 1738
借酒劲吻你
借酒劲吻你 2021-01-30 10:23

I need some pointers/advice on how to automatically generate CMakeLists.txt files for CMake. Does anyone know of any existing generators? I\'ve checked the ones listed in the CM

7条回答
  •  攒了一身酷
    2021-01-30 10:54

    I think that you are doing this upside down.

    When using CMake, you are supposed to write the CMakeLists.txt yourself. Typically, you don't need to handle different compilers as CMake has knowledge about them. However, if you must, you can add code in the CMakeFiles to do different things depending on the tool you are using.

提交回复
热议问题