Skip to content

Instantly share code, notes, and snippets.

@serenitii
Last active January 23, 2020 06:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save serenitii/18aaa6f12920b0bff5e9a86e377ff482 to your computer and use it in GitHub Desktop.
Save serenitii/18aaa6f12920b0bff5e9a86e377ff482 to your computer and use it in GitHub Desktop.
CMake 라이브러리 설정
# Boost, Flatbuffers, MySQL, ZooKeeper
# https://cliutils.gitlab.io/modern-cmake/
# https://pleiades.io/help/clion/installation-guide.html
# https://cmake.org/cmake/help/latest/module/FindBoost.html
# [Boost]
# set(Boost_USE_STATIC_RUNTIME ON)
set(Boost_USE_STATIC_LIBS ON) # only find static libs
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_DEBUG_LIBS OFF) # ignore debug libs and
set(Boost_USE_RELEASE_LIBS ON) # only find release libs
find_package(Boost REQUIRED COMPONENTS system filesystem)
if(Boost_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
endif()
target_link_libraries(${PROJECT_NAME} pthread dl ${Boost_LIBRARIES})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment