19 lines
474 B
CMake
19 lines
474 B
CMake
cmake_minimum_required(VERSION 3.20)
|
|
|
|
project(
|
|
hello
|
|
VERSION 0.1.0
|
|
LANGUAGES CXX)
|
|
|
|
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
|
|
|
|
include(ExportCompileCommands)
|
|
|
|
configure_file("${PROJECT_SOURCE_DIR}/include/version.h.in"
|
|
"${PROJECT_BINARY_DIR}/include/version.h")
|
|
|
|
add_executable(hello src/main.cpp src/null.cpp)
|
|
target_compile_features(hello PUBLIC cxx_std_20)
|
|
|
|
target_include_directories(hello PRIVATE "${PROJECT_BINARY_DIR}/include")
|