Loading WebAssembly engine...
cmakefmt
Auto-formatter for CMake code (in pure C with no external dependencies).
Configuration (.cmake_format YAML)
Import Config...
Fetching format configuration...
Input CMake
Import Input CMake...
cmake_minimum_required( VERSION 3.10...3.25) project( demo C CXX ) option( ENABLE_FEATURE_A "Enable Feature A" ON) option( ENABLE_B "Enable B" OFF) option( ENABLE_AWESOME_FEATURE_C "Enable C" ON) if( APPLE ) set( CMAKE_OSX_DEPLOYMENT_TARGET "11.0.0" CACHE STRING "Minimum OS X version" ) message(STATUS "Configuring for macOS" ) endif() function( my_messy_function arg1 arg2 ) if(arg1 STREQUAL "FOO" ) message("Found FOO" ) else() message( "Not FOO" ) endif() endfunction() add_executable( demo_app main.c utils.c rendering.c ) target_link_libraries( demo_app PRIVATE m pthread )
Formatted Output
Copy Output