23 lines
413 B
CMake
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})
|