14 lines
334 B
CMake
14 lines
334 B
CMake
cmake_minimum_required(VERSION 3.16)
|
|
project(hello_cpp LANGUAGES CXX)
|
|
|
|
# Set C++ standard
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
# Define the executable
|
|
add_executable(hello_app src/main.cpp)
|
|
|
|
# Optional: Link libraries if needed
|
|
# find_package(Boost REQUIRED)
|
|
# target_link_libraries(hello_app Boost::boost)
|