CMakeExample/CMakeLists.txt

17 lines
420 B
CMake

# Specify the minimum version of CMake required
cmake_minimum_required(VERSION 3.10)
# Set the project name and version
project(MyProject VERSION 1.0)
# Specify the C++ standard
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
# Include the header files
include_directories(include)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# Add the executable
add_executable(MyProject src/main.cpp src/HelloWorld.cpp)