Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #1.РАЗАРХИВИРОВАТЬ БИБЛИОТЕКУ
- #2.ОТКРЫТЬ POWERSHELL ИЗ ПАПКИ И ВЫПОЛНИТЬ:
- # b2 link=static runtime-link=static --prefix=F:\boost install
- #№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№
- cmake_minimum_required(VERSION 3.11 FATAL_ERROR)
- project(sorts CXX)
- set(CMAKE_CXX_STANDARD 20)
- # Set Boost options
- set(Boost_USE_STATIC_LIBS ON)
- set(Boost_USE_MULTITHREADED ON)
- set(Boost_USE_STATIC_RUNTIME ON)
- set(BOOST_ROOT "F:/boost") #где дирректория буста
- set(BOOST_INCLUDEDIR "F:/boost/include/boost-1_86") #где дирректория буста инклюдов
- ##ВАЖНО!!!! ЕСЛИ КОМПИЛЯТОР MINGW
- if(MINGW)
- link_libraries(ws2_32 wsock32)
- endif()
- # Find Boost ИСКАТЬ БУСТ
- find_package(Boost 1.86.0 REQUIRED)
- if(Boost_FOUND)
- add_executable(exerce main.cpp)
- # Include Boost headers
- include_directories(${BOOST_INCLUDEDIR}) #ДЛЯ ПОИСКА КОМПИЛЯЦИИ
- include_directories(${BOOST_ROOT})#ДЛЯ ПОИСКА КОМПИЛЯЦИИ
- # Link against Boost libraries
- target_link_libraries(exerce ${Boost_LIBRARIES})
- endif()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement