Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,21 @@ endif ()

# Get Boost

find_package(Boost COMPONENTS program_options thread REQUIRED)
include_directories(${Boost_INCLUDE_DIR})
link_directories(${Boost_LIBRARY_DIR})
FetchContent_Declare(
boostorg
GIT_REPOSITORY https://github.com/boostorg/boost.git
GIT_TAG master
)

FetchContent_GetProperties(boostorg)
if (NOT boostorg_POPULATED)
FetchContent_Populate(boostorg)
add_subdirectory(${boostorg_SOURCE_DIR} ${boostorg_BINARY_DIR})
endif ()

set(BOOST_ENABLE_CMAKE ON)

include_directories(${boostorg_SOURCE_DIR})

add_definitions(-Wno-unused-variable)
add_definitions(-Wno-unused-parameter)
Expand Down