This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.0) | |
project(project_name) | |
find_package(Boost 1.72.0) | |
add_executable(project_name *.cpp_file_name) | |
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake -D CMAKE_C_COMPILER="/usr/bin/gcc" -D CMAKE_CXX_COMPILER="/usr/bin/g++" | |
//in this scope I chose gcc compiler for C-files ang g++ for C++-files |