aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorthecharlesblake2017-10-16 14:15:25 +0100
committerthecharlesblake2017-10-26 14:51:33 +0100
commit9101c98f951e7b104e6969fd5984379ca04745ea (patch)
tree71a154d956da31c55c13402bb8b2f04c6aa36a01 /CMakeLists.txt
parentMove setup classes to legacy (diff)
downloadmetasol-9101c98f951e7b104e6969fd5984379ca04745ea.tar.gz
metasol-9101c98f951e7b104e6969fd5984379ca04745ea.zip

Add demo command line parsing

Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b292ab7..9fa09c3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -10,7 +10,7 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
## source files ###############################################################
###############################################################################
-set(sources src/main/main.cpp)
+set(sources src/main/main.cpp src/main/command_line_helper.cpp src/main/command_line_helper.h)
set(sources_test src/test/main_test.cpp)
###############################################################################
@@ -20,7 +20,10 @@ set(sources_test src/test/main_test.cpp)
set(Boost_USE_STATIC_LIBS OFF)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
-find_package(Boost 1.63.0 REQUIRED COMPONENTS log)
+
+set(boost_components log program_options)
+
+find_package(Boost 1.63.0 REQUIRED COMPONENTS ${boost_components})
if(Boost_FOUND)
include_directories(${Boost_INCLUDE_DIRS})