smtk-import: partially revert and complete 6963b52d

6963b52d introduced a cmake option, COMMANDLINE to enable building a
pure command line version of smtk2ssrf importer, but then the
 #define COMMANDLINE=1 forces building CLI mode.

This patch allows building GUI or CLI versions depending on selection of
the COMMANDLINE option.

Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com>
This commit is contained in:
Salvador Cuñat 2017-06-16 16:40:47 +02:00 committed by Dirk Hohndel
parent 5f5e52fb46
commit 6e2e363c57
2 changed files with 7 additions and 2 deletions

View file

@ -5,7 +5,6 @@
#include "smrtk2ssrfc_window.h"
#include <QApplication>
#include <QDebug>
#define COMMANDLINE 1
extern "C" void smartrak_import(const char *file, struct dive_table *table);