Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
cmake_minimum_required(VERSION 3.16)
project(
${PROJECT_NAME}building
VERSION 0.1.0
DESCRIPTION "Code building"
LANGUAGES CXX
)
# CMake modules support is still in development and
# 3.16 doesn't have it anyway so have to work around
if(CMAKE_COMPILER_IS_GNUCXX MATCHES 1)
execute_process(COMMAND ${CMAKE_CXX_COMPILER}
-dumpversion OUTPUT_VARIABLE GCC_VERSION)
if(GCC_VERSION VERSION_LESS 11)
message(FATAL_ERROR "${PROJECT_NAME} requires g++11 or greater.")
else()
message( "Enable modules" )
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fmodules-ts")
set(MODULES_SUPPORTED 1)
endif ()
endif()
message( "=== Add ${PROJECT_NAME} examples ===" )
add_subdirectory(examples)
message( "=== Add ${PROJECT_NAME} labs ===" )
add_subdirectory(labs)
message( "=== Add ${PROJECT_NAME} tests ===" )
add_subdirectory(tests)