Index: trunk/tmdmcreator/build/CMakeLists.txt
===================================================================
--- trunk/tmdmcreator/build/CMakeLists.txt	(revision 4)
+++ trunk/tmdmcreator/build/CMakeLists.txt	(revision 4)
@@ -0,0 +1,26 @@
+# CMAKE BUILD FILE FOR TmDmCreator 
+# (c) LUCIEN SCHREIBER CREALP 2013
+cmake_minimum_required(VERSION 2.6)
+
+PROJECT ("TmDmCreator")
+
+#search all source files
+FILE (GLOB_RECURSE SRC_FILES "../src/*.cpp")
+FILE (GLOB_RECURSE HEAD_FILES "../src/*.h")
+MESSAGE(${SRC_FILES})
+SOURCE_GROUP (source FILES ${SRC_FILES})
+SOURCE_GROUP (header FILES ${HEAD_FILES})
+
+# WXWIDGETS
+# DEFINE ALL INCLUDES AND SO ON
+SET(WXWINDOWS_USE_GL 0)
+INCLUDE ("../../../build/cmake/FindwxWidgets.cmake")
+
+ADD_EXECUTABLE(${CMAKE_PROJECT_NAME} ${HEAD_FILES} ${SRC_FILES})
+
+# SHOULD WE USE THE MT VERSION FOR DEFAULT 
+# COMPATIBILITY WITH < WINXP
+IF (WIN32)
+  INCLUDE ("cmake/Use_visualstudioMT.cmake")
+ENDIF (WIN32)
+
Index: trunk/tmdmcreator/build/update-shpimporter.py
===================================================================
--- trunk/tmdmcreator/build/update-shpimporter.py	(revision 4)
+++ trunk/tmdmcreator/build/update-shpimporter.py	(revision 4)
@@ -0,0 +1,69 @@
+#!/usr/bin/env python
+# encoding: utf-8
+"""
+update-tmdmcreator.py
+
+Created by Lucien Schreiber on 2013-02-15.
+Copyright (c) 2013 . All rights reserved.
+"""
+
+import sys
+import os
+from subprocess import *
+
+#Â compatibililty Python 2.7 and 3.0
+try:
+  from Tkinter import *
+except:
+  from tkinter import *
+
+def GetCmakeDirName():
+  pathname = os.path.dirname(sys.argv[0])        
+  return os.path.abspath(pathname)
+
+
+def updateSVN():
+  myPath = os.path.normpath(os.path.join(GetCmakeDirName(), ".."))
+  print ("Updating subversion in: {}".format(myPath))
+  try:
+    p = Popen("svn update", shell=True, cwd = myPath)
+    p.wait()
+  except:
+    print ("Error updating subversion in: {}".format(myPath))
+
+  # print version number
+  try:
+    p = Popen("svnversion", shell=True, cwd=myPath, stdout=PIPE, stderr=PIPE)
+    information = p.communicate()
+    myVersion = str(information[0])
+    myVersionAlone = myVersion[myVersion.find("'")+1:-3] 
+    print ("Updated version is: {}".format(myVersionAlone))
+  except:
+    print("Error getting version for {}".format(GetCmakeDirName()))
+
+
+def buildMacBook():
+  builddir = "/Users/lucien/DATA/PRJ/TOOLMAP2/bin_apps/shpimporter"
+  try:
+    p = Popen("cmake -GXcode " + GetCmakeDirName() + "  -DCMAKE_OSX_ARCHITECTURES:TEXT=x86_64 -DCMAKE_OSX_DEPLOYMENT_TARGET:TEXT=10.6 -DCMAKE_WXWINDOWS_WXCONFIG_EXECUTABLE:FILE=/Users/lucien/DATA/PROGRAMATION/_LIB/64/_LIBWXSVN/bin/wx-config", shell=True, cwd=builddir)
+    p.wait()
+  except:
+    print("Error creating makefile")
+
+
+
+if __name__ == '__main__':
+  root = Tk()
+  myContainer1 = Frame(root)
+  myContainer1.pack()
+
+  label = Label(myContainer1, text="TmDmCreator")
+  label.pack()
+
+  button3 = Button(myContainer1, text=("Update subversion"), command=updateSVN)
+  button3.pack()
+
+  button2 = Button(myContainer1, text="Configure MacBook", command=buildMacBook)
+  button2.pack()
+
+  root.mainloop()
Index: trunk/tmdmcreator/src/main.cpp
===================================================================
--- trunk/tmdmcreator/src/main.cpp	(revision 4)
+++ trunk/tmdmcreator/src/main.cpp	(revision 4)
@@ -0,0 +1,69 @@
+#include "wx/wxprec.h"
+#ifdef __BORLANDC__
+#pragma hdrstop
+#endif
+#ifndef WX_PRECOMP
+#include "wx/wx.h"
+#endif
+
+#include <wx/app.h>
+#include <wx/cmdline.h>
+#include <wx/dir.h>
+#include <wx/filename.h>
+
+#include "database.h"
+#include "silayer.h"
+
+
+
+static const wxCmdLineEntryDesc cmdLineDesc[] =
+{
+    { wxCMD_LINE_SWITCH, "h", "help", "show this help message",
+        wxCMD_LINE_VAL_NONE, wxCMD_LINE_OPTION_HELP },
+    { wxCMD_LINE_SWITCH, "v", "verbose", "Be more verbose" },
+    { wxCMD_LINE_NONE }
+};
+
+
+
+void PrintArray(const wxArrayString & array, const wxString & msg){
+    wxPrintf(msg + _T("\n"));
+    for (unsigned int i = 0; i< array.GetCount(); i++) {
+        wxPrintf(array[i] + _T("\n"));
+    }
+}
+
+
+
+int main(int argc, char **argv){
+    // debugging string for OSX
+    // this is needed for viewing string content with Xcode !!
+    wxString myTest = _T("Test debugging");
+    myTest.ToUTF8().data();
+    myTest.Len();
+    
+    wxApp::CheckBuildOptions(WX_BUILD_OPTIONS_SIGNATURE, "program");
+    wxInitializer initializer;
+    if ( !initializer )
+    {
+        fprintf(stderr, "Failed to initialize the wxWidgets library, aborting.");
+        return -1;
+    }
+    
+    wxString myLogoTxt = _T("*\n* TmDmCreator \n* Create SQL Command for ToolMap projects \n* (c) Copyright 2013 Lucien Schreiber - CREALP . All Rights Reserved. \n*\n");
+    wxCmdLineParser parser(cmdLineDesc, argc, argv);
+    parser.AddParam(_T("[ToolMap project file]"), wxCMD_LINE_VAL_STRING);
+    parser.AddParam(_T("[SHP directory]"), wxCMD_LINE_VAL_STRING);
+    parser.AddParam(_T("[rule files]"),wxCMD_LINE_VAL_STRING,  wxCMD_LINE_PARAM_MULTIPLE);
+    parser.SetLogo(myLogoTxt);
+    
+    if (parser.Parse() != 0) {
+        return 0;
+    }
+    
+    bool beVerbose = parser.Found("verbose");
+    
+    // cmd line is correct !!
+    wxPrintf(myLogoTxt);    
+    return 0;
+}
