Last active
February 6, 2020 15:47
-
-
Save KowalskiThomas/2c63286c22e60fc8b241c1adca6518fc to your computer and use it in GitHub Desktop.
CMake Stuff
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
set(Boost_USE_STATIC_LIBS OFF) | |
set(Boost_USE_MULTITHREADED ON) | |
set(Boost_USE_STATIC_RUNTIME OFF) | |
find_package(Boost 1.45.0 COMPONENTS filesystem system REQUIRED) | |
if(Boost_FOUND) | |
include_directories(${Boost_INCLUDE_DIRS}) | |
endif() | |
target_link_libraries(main ${Boost_LIBRARIES}) |
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
set(THREADS_PREFER_PTHREAD_FLAG ON) | |
find_package(Threads REQUIRED) | |
target_link_libraries(target Threads::Threads) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment