]> Creatis software - bbtkGEditor.git/commitdiff
no message
authordavila <>
Tue, 21 Sep 2010 17:39:11 +0000 (17:39 +0000)
committerdavila <>
Tue, 21 Sep 2010 17:39:11 +0000 (17:39 +0000)
appli/bbEditor/CMakeLists.txt
lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx

index 69c2a4f88d6b54f3eac5791b355ce4a24cdbebfd..06762ffbee034399a274f47bcc84994f17569191 100644 (file)
@@ -23,6 +23,7 @@ ENDIF(BBTK_USE_WXWIDGETS AND WIN32)
 
  
 TARGET_LINK_LIBRARIES(bbEditor 
+                               crea
                                bbsWxGUIEditorGraphic
                                bbsKernelEditorGraphic
                                bbsVtkGUIEditorGraphic
index 4cc563cef3efb88da608d0c39fa8a3185632ee30..f5027edffc143c987cdaec8fc42480bb09f3fe8e 100644 (file)
@@ -35,6 +35,7 @@ Version:   $Revision$
 
 #include "bbtkwxGUIEditorGraphicBBS.h"
 #include "creaWx.h"
+#include "creaSystem.h"
 
 #include <InterpreterBBS.h>
 
@@ -349,13 +350,20 @@ namespace bbtk
                tempFile.open(filename.c_str());
                tempFile << script;
                tempFile.close();
-               
-               std::string command = "\"";
 
+               std::string command = "\""+ crea::System::GetExecutablePath();
+
+               
+#ifdef MACOSX
+               command += separator + "../../../bbi.app/Contents/MacOS";
+#endif
+               
                #ifdef WIN32
                        command += "\"";
                #endif
-
+               
+               /*              
+               
                //command += ConfigurationFile::GetInstance().Get_bin_path();
 //EED          command +="C:/temp/bbtkBIN/RelWithDebInfo//";
 //EED          command +="C:/Program Files/CreaTools/bbtk-0.9.5/bin";
@@ -367,8 +375,9 @@ namespace bbtk
                    command +=".";
                        command += separator + "bbi\" ";
                #endif
+ */
+               command += separator + "bbi\" ";
                command += "\""+filename + "\"";
-
                #ifdef WIN32
                        command += "\"";
                #endif