Patrick Lühne
e01506f9ff
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.
23 lines
432 B
CMake
23 lines
432 B
CMake
set(target anthem-app)
|
|
|
|
file(GLOB core_sources "*.cpp")
|
|
file(GLOB core_headers "*.h")
|
|
|
|
set(sources
|
|
${core_sources}
|
|
${core_headers}
|
|
)
|
|
|
|
set(includes
|
|
${PROJECT_SOURCE_DIR}/lib/cxxopts/include
|
|
)
|
|
|
|
set(libraries
|
|
anthem
|
|
)
|
|
|
|
add_executable(${target} ${sources})
|
|
target_include_directories(${target} PRIVATE ${includes})
|
|
target_link_libraries(${target} PRIVATE ${libraries})
|
|
set_target_properties(${target} PROPERTIES OUTPUT_NAME anthem)
|