- Timestamp:
- 02/15/13 23:15:19 (12 years ago)
- Location:
- trunk/tmdmcreator
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tmdmcreator/build/CMakeLists.txt
r4 r6 15 15 # DEFINE ALL INCLUDES AND SO ON 16 16 SET(WXWINDOWS_USE_GL 0) 17 INCLUDE (" ../../../build/cmake/FindwxWidgets.cmake")17 INCLUDE ("cmake/FindwxWidgets.cmake") 18 18 19 19 ADD_EXECUTABLE(${CMAKE_PROJECT_NAME} ${HEAD_FILES} ${SRC_FILES}) -
trunk/tmdmcreator/build/update-tmdmcreator.py
r5 r6 44 44 45 45 def buildMacBook(): 46 builddir = "/Users/lucien/DATA/PRJ/ TOOLMAP2/bin_apps/shpimporter"46 builddir = "/Users/lucien/DATA/PRJ/DATAMODEL/bin" 47 47 try: 48 48 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) -
trunk/tmdmcreator/src/main.cpp
r4 r6 1 /*************************************************************************** 2 TmDmCreator 3 Create SQL code for ToolMap project 4 ------------------- 5 copyright : (C) 2013 CREALP Lucien Schreiber 6 email : lucien.schreiber at crealp dot vs dot ch 7 ***************************************************************************/ 8 9 /*************************************************************************** 10 * * 11 * This program is free software; you can redistribute it and/or modify * 12 * it under the terms of the GNU General Public License as published by * 13 * the Free Software Foundation; either version 2 of the License, or * 14 * (at your option) any later version. * 15 * * 16 ***************************************************************************/ 1 17 #include "wx/wxprec.h" 2 18 #ifdef __BORLANDC__ … … 12 28 #include <wx/filename.h> 13 29 14 #include "database.h"15 #include "silayer.h"16 17 18 30 19 31 static const wxCmdLineEntryDesc cmdLineDesc[] = … … 22 34 wxCMD_LINE_VAL_NONE, wxCMD_LINE_OPTION_HELP }, 23 35 { wxCMD_LINE_SWITCH, "v", "verbose", "Be more verbose" }, 36 { wxCMD_LINE_PARAM, NULL, NULL, "[structure sql file]"}, 37 { wxCMD_LINE_PARAM, NULL, NULL, "[content txt file]"}, 38 { wxCMD_LINE_PARAM, NULL, NULL, "[result sql file]"}, 24 39 { wxCMD_LINE_NONE } 25 40 }; … … 45 60 wxApp::CheckBuildOptions(WX_BUILD_OPTIONS_SIGNATURE, "program"); 46 61 wxInitializer initializer; 47 if ( !initializer ) 48 { 62 if ( !initializer ){ 49 63 fprintf(stderr, "Failed to initialize the wxWidgets library, aborting."); 50 64 return -1; 51 65 } 52 66 53 wxString myLogoTxt = _T("*\n* TmDmCreator \n* Create SQL Commandfor ToolMap projects \n* (c) Copyright 2013 Lucien Schreiber - CREALP . All Rights Reserved. \n*\n");67 wxString myLogoTxt = _T("*\n* TmDmCreator \n* Create SQL file for ToolMap projects \n* (c) Copyright 2013 Lucien Schreiber - CREALP . All Rights Reserved. \n*\n"); 54 68 wxCmdLineParser parser(cmdLineDesc, argc, argv); 55 parser.AddParam(_T("[ToolMap project file]"), wxCMD_LINE_VAL_STRING);56 parser.AddParam(_T("[SHP directory]"), wxCMD_LINE_VAL_STRING);57 parser.AddParam(_T("[rule files]"),wxCMD_LINE_VAL_STRING, wxCMD_LINE_PARAM_MULTIPLE);58 69 parser.SetLogo(myLogoTxt); 59 60 70 if (parser.Parse() != 0) { 61 71 return 0; 62 72 } 63 73 64 bool beVerbose = parser.Found("verbose");65 66 74 // cmd line is correct !! 67 wxPrintf(myLogoTxt); 75 wxPrintf(myLogoTxt); 68 76 return 0; 69 77 }
Note: See TracChangeset
for help on using the changeset viewer.