Last active
January 23, 2020 06:04
-
-
Save serenitii/18aaa6f12920b0bff5e9a86e377ff482 to your computer and use it in GitHub Desktop.
CMake 라이브러리 설정
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
# 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