Advertisement
Patrickquinn1212

cmake reference

Oct 8th, 2022 (edited)
2,817
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 0.40 KB | None | 0 0
  1. cmake_minimum_required(VERSION 3.13)  # CMake version check
  2. project(simple_example)               # Create project "simple_example"
  3. set(CMAKE_CXX_STANDARD 14)            # Enable c++14 standard
  4.  
  5. # Add main.cpp file of project root directory as source file
  6. set(SOURCE_FILES main.cpp)
  7.  
  8. # Add executable target with source files listed in SOURCE_FILES variable
  9. add_executable(simple_example ${SOURCE_FILES})
  10.  
Tags: make
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement