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

20 lines
492 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.20)
project(
hello
2023-10-11 18:49:32 +00:00
VERSION 0.1.0
LANGUAGES CXX)
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
include(ExportCompileCommands)
2023-10-11 18:49:32 +00:00
configure_file("${PROJECT_SOURCE_DIR}/include/version.h.in"
"${PROJECT_BINARY_DIR}/include/version.h")
2023-10-18 18:29:41 +00:00
add_executable(hello src/main.cpp src/null.cpp src/constexp.cpp)
2023-10-11 18:49:32 +00:00
target_compile_features(hello PUBLIC cxx_std_20)
target_include_directories(hello PRIVATE "${PROJECT_BINARY_DIR}/include")