meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
makefile:cmake [2020/04/14 12:58] – cmake renamed to makefile:cmake niziakmakefile:cmake [2023/07/24 21:14] niziak
Line 3: Line 3:
 [[https://cmake.org/Wiki/CMake_Useful_Variables]] [[https://cmake.org/Wiki/CMake_Useful_Variables]]
 [[http://www.vtk.org/Wiki/CMake_Cross_Compiling#Setting_up_the_system_and_toolchain]] [[http://www.vtk.org/Wiki/CMake_Cross_Compiling#Setting_up_the_system_and_toolchain]]
 +
 +==== verbose build ====
 +
 +=== Method 1 ===
 +
 +<file cmake CMakeList.txt>
 +set(CMAKE_VERBOSE_MAKEFILE ON)
 +</file>
 +
 +=== Method 2 ===
 +
 +<code bash>make VERBOSE=1</code>
 +
 +=== Method 3 ===
 +
 +<code bash>cmake -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON $path_to_project_source</code>
 +
 +
 +==== multiline strings ====
 +
 +Use 2 space indentation
 +<code>
 +message(STATUS "This is a very long
 +  message spanning on
 +  several lines
 +")
 +</code>
  
 ==== add all *.c files ==== ==== add all *.c files ====