Last active
August 2, 2023 06:16
-
-
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
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") | |
include_directories(${Boost_INCLUDE_DIR}) | |
link_directories(${Boost_LIBRARY_DIR}) | |
target_link_libraries(project_name ${Boost_LIBRARIES}) | |
install(TARGETS project_name RUNTIME DESTINATION bin) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Good job, man