How to generate CMakeLists.txt?

前端 未结 7 1819
借酒劲吻你
借酒劲吻你 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:40

    I am of the opinion that you need not use an automated script for generating CMakeLists.Txt as it is a very simple task to write one, after you have understood the basic procedure. Yeah I do agree that understanding the procedure to write one as given in CMake Wiki is also difficult as it is too much detailed.

    A very basic example showing how to write CMakeLists.txt is shown here, which I think will be of use to everyone, even someone who is going to write CMakeLists.txt for the first time.

提交回复
热议问题