Skip to content

Instantly share code, notes, and snippets.

@KowalskiThomas
Last active February 6, 2020 15:47
Show Gist options
  • Save KowalskiThomas/2c63286c22e60fc8b241c1adca6518fc to your computer and use it in GitHub Desktop.
Save KowalskiThomas/2c63286c22e60fc8b241c1adca6518fc to your computer and use it in GitHub Desktop.
CMake Stuff
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})
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