Skip to content

Instantly share code, notes, and snippets.

View CMakeLists.txt
# Setup project #
cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
project(name VERSION 1.0 LANGUAGES CXX C)
# Build types #
set(default_build_type "Release")
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
message(STATUS "Setting build type to '${default_build_type}' as none was specified.")