cmake_minimum_required(VERSION 3.5.1) project(Lab2) set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread") set(SOURCE_FILES main.cpp) add_executable(Lab2 ${SOURCE_FILES})