1
0
This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
modern_cpp_tutorial/CMakeLists.txt

23 lines
413 B
CMake

cmake_minimum_required(VERSION 3.20)
project(
hello
VERSION 0.1
LANGUAGES CXX)
set(SOURCES src/main.cpp)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS
ON
CACHE INTERNAL "")
if(CMAKE_EXPORT_COMPILE_COMMANDS)
set(CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES
${CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES})
endif()
add_executable(hello ${SOURCES})