qt4 support
diff --git a/wscript b/wscript
index 5d38675..302ecfc 100644
--- a/wscript
+++ b/wscript
@@ -11,7 +11,7 @@
opt.add_option('--test', action='store_true',default=False,dest='_test',help='''build unit tests''')
opt.add_option('--yes',action='store_true',default=False) # for autoconf/automake/make compatibility
- opt.load('compiler_cxx boost ccnx protoc ice_cxx')
+ opt.load('compiler_cxx boost ccnx protoc ice_cxx qt4')
def configure(conf):
conf.load("compiler_cxx")
@@ -33,6 +33,12 @@
conf.fatal ("Cannot find SSL libraries")
conf.load ('ccnx')
+
+ conf.load('protoc')
+ conf.load('ice_cxx')
+
+ conf.load('qt4')
+
conf.load('boost')
conf.check_boost(lib='system test iostreams filesystem regex thread')
@@ -53,9 +59,6 @@
if conf.options._test:
conf.env.TEST = 1
- conf.load('protoc')
- conf.load('ice_cxx')
-
conf.write_config_header('src/config.h')
def build (bld):
@@ -130,3 +133,11 @@
use = "BOOST CCNX SSL SQLITE3 ICE common database ccnxx",
includes = ['include', 'src'],
)
+
+ qt = bld (
+ target = "gui",
+ features = "qt4 cxx cxxprogram",
+ source = "filesystemwatcher/filesystemwatcher.cpp filesystemwatcher/filesystemwatcher.ui filesystemwatcher/main.cpp",
+ includes = "filesystemwatcher src include .",
+ use = "QTCORE QTGUI"
+ )