Commit 9efb899f authored by ledig's avatar ledig
Browse files

added program options for Win

parent 182479b6
......@@ -71,11 +71,11 @@ template< typename T > bool WPreferences::getPreference( std::string prefName, T
// CONFIGURATION FILE
po::options_description configurationDescription( "OpenWalnut Preferences" );
#ifndef _WIN32
//#ifndef _WIN32
// TODO(wiebel): this does not link on windows at the moment. But it should!
configurationDescription.add_options()
( prefName.c_str(), po::value< T >() );
#endif
//#endif
std::string cfgFileName( "walnut.cfg" );
......
......@@ -28,7 +28,7 @@ SET(GUI_QT4_MOC_HDRS
QT4_WRAP_CPP(GUI_QT4_MOC_SRCS ${GUI_QT4_MOC_HDRS} )
FILE(GLOB GUI_QT4_SRC "*.cpp" "guiElements/*.cpp" "datasetbrowser/*.cpp" "ribbonMenu/*.cpp" "*.h" "guiElements/*.h" "datasetbrowser/*.h" "ribbonMenu/*.h" )
FILE(GLOB GUI_QT4_SRC "*.cpp" "guiElements/*.cpp" "datasetbrowser/*.cpp" "ribbonMenu/*.cpp" "events/*.cpp" "*.h" "guiElements/*.h" "datasetbrowser/*.h" "ribbonMenu/*.h" "events/*.h" )
IF( CMAKE_HOST_SYSTEM MATCHES Windows )
ADD_LIBRARY( guiqt4 ${GUI_QT4_SRC} ${GUI_QT4_MOC_SRCS} )
......
......@@ -63,13 +63,13 @@ bool WQt4Gui::parseOptions()
namespace po = boost::program_options; // since the namespace is far to big we use a shortcut here
po::options_description desc( "Allowed options" );
#ifndef _WIN32
//#ifndef _WIN32
// TODO(wiebel): this does not link on windows at the moment. But it should!
desc.add_options()
( "help,h", "Prints this help message" )
( "input,i", po::value< std::vector< std::string > >(), "Input data files that should be loaded automatically" )
( "timed-output,t", "Flag indicating if all log strings should have a time string preceding" );
#endif
//#endif
po::positional_options_description p;
p.add( "input", -1 );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment