Top 1,000 Features Creators Resources Blog Explorer Download
GitHub icon

CMake

< >

CMake is an open source application created in 2000.

#485on PLDB 24Years Old
Download source code:
git clone https://gitlab.kitware.com/cmake/cmake

Try now: Riju

CMake is cross-platform free and open-source software for managing the build process of software using a compiler-independent method. It supports directory hierarchies and applications that depend on multiple libraries. It is used in conjunction with native build environments such as make, Apple's Xcode, and Microsoft Visual Studio. Read more on Wikipedia...


Example from Compiler Explorer:
project(default) add_compile_options(-Werror -Wall -Wextra -g) add_executable(output.s example.cpp)
Example from Riju:
message("Hello, world!")
Example from hello-world:
message("Hello World")
# Hello World in CMake message(STATUS "Hello World!")
Example from Linguist:
cmake_minimum_required(VERSION 2.6) enable_testing() set(CMAKE_BUILD_TYPE debug) include_directories("/usr/local/include") find_library(ssl_LIBRARY NAMES ssl PATHS "/usr/local/lib") add_custom_command(OUTPUT "ver.c" "ver.h" COMMAND ./ver.sh) add_executable(foo foo.c bar.c baz.c ver.c) target_link_libraries(foo ${ssl_LIBRARY})

View source

- Build the next great programming language About Acknowledgements Extensions Day 628 Donate feedback@pldb.io