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
cmake [2020/04/14 12:57] niziakprogramming:cmake [2024/05/22 12:00] (current) – ↷ Page moved from makefile:cmake to programming:cmake 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 ====