Drop Boost dependency
Boost was only used for program option parsing. To avoid this huge dependency, this commit replaces boost::program_options with cxxopts, a header-only library with the same functionality. cxxopts is added as a submodule, and Boost is removed from the dependencies in the code and Travis configuration.
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
set(target anthem-app)
|
||||
|
||||
find_package(Boost 1.55.0 COMPONENTS program_options system filesystem REQUIRED)
|
||||
|
||||
file(GLOB core_sources "*.cpp")
|
||||
file(GLOB core_headers "*.h")
|
||||
|
||||
@@ -11,11 +9,10 @@ set(sources
|
||||
)
|
||||
|
||||
set(includes
|
||||
${Boost_INCLUDE_DIRS}
|
||||
${PROJECT_SOURCE_DIR}/lib/cxxopts/include
|
||||
)
|
||||
|
||||
set(libraries
|
||||
${Boost_LIBRARIES}
|
||||
anthem
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user