How to write CMakeLists.txt on my own?

How to write CMakeLists.txt on my own? What are the rules and commands to be used? I am getting a few errors when I do it on my own.

Hi @EE18D504_SINDHURA_C,
if you are using CMake as a tool without requiring ITK the question is more appropriate for the CMake mailing lists.

In any case, the CMake documentation is a valuable resource to learn CMake.

HTH

1 Like

For simple examples on how to write CMakeLists.txt files for ITK projects, you can refer to the ITK examples, for example this one or pretty much any other example in this git repository.

1 Like