Migrate boost unit test to google test with cmake (ctest)
[anna.git] / example / http / client / SConscript
index 063b5a1..c7b411b 100644 (file)
@@ -1,7 +1,9 @@
 Import ('env')
 
 # Process #################################################################
-pName = "example_http_client"
+#pName = "example_<module>_<process>"
+bnames = Dir('..').abspath.rsplit('/', 2)
+pName = "example_" + bnames[-2] + "_" + bnames[-1]
 pPath = pName.replace("_", "/") + "/"
 
 # Anna modules ############################################################
@@ -18,13 +20,13 @@ anna_rlibs = list(anna_libs)
 anna_rlibs.reverse()
 
 # Libraries ###############################################################
-# To avoid other libraries accumulation (boost testing, i.e.):
+# To avoid other libraries accumulation:
 localEnv = env.Clone()
 
 anna_library = { 'LIBS' : anna_rlibs }
 localEnv.MergeFlags (anna_library)
 
-system_library = { 'LIBS' : [ 'xml2', 'rt' ] }
+system_library = { 'LIBS' : [ 'xml2', 'rt', 'pthread' ] }
 localEnv.MergeFlags (system_library)
 
 localEnv.Append(LIBPATH = anna_libpaths)