Skip to content

Instantly share code, notes, and snippets.

@AmatarYI
Last active August 2, 2023 06:16
Show Gist options
  • Save AmatarYI/1835aca442a40fc3d798f3b0449bd374 to your computer and use it in GitHub Desktop.
Save AmatarYI/1835aca442a40fc3d798f3b0449bd374 to your computer and use it in GitHub Desktop.
Some way to include Boost library with correct Boost.Asio working in KDevelop IDE. Manjaro
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")
include_directories(${Boost_INCLUDE_DIR})
link_directories(${Boost_LIBRARY_DIR})
target_link_libraries(project_name ${Boost_LIBRARIES})
install(TARGETS project_name RUNTIME DESTINATION bin)
@MCMisha
Copy link

MCMisha commented Jul 14, 2020

Good job, man

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment