]> Creatis software - creaImageIO.git/commitdiff
modifications for coherent installation
authorFrederic Cervenansky <Frederic.Cervenansky@creatis.insa-lyon.fr>
Fri, 5 Nov 2010 16:00:33 +0000 (16:00 +0000)
committerFrederic Cervenansky <Frederic.Cervenansky@creatis.insa-lyon.fr>
Fri, 5 Nov 2010 16:00:33 +0000 (16:00 +0000)
CMakeLists.txt
appli/TestWxGimmickReaderDialog/CMakeLists.txt
appli/TestWxSimpleView/CMakeLists.txt
src/CMakeLists.txt
src/creaImageIOGimmick.cpp
src/creaImageIOSettings.cpp
src/creaImageIOWxTreeView.cpp

index b23075b74488969ee1854b60b3aceaec2919351f..24ab59edbd70799818fcc35bda8830d6fc96b863 100644 (file)
@@ -27,6 +27,7 @@ IF (crea_FOUND)
 ENDIF(crea_FOUND)
 
 
+message("link directory ${GDCM_INCLUDE_DIR}")
 
 
 SET(USE_GDCM_VTK ON)
index b24e87fb29ba39fc43521f1148945333da6d1e4f..33f48ec2b3cc477f19d4a423b7c0df16817634f2 100644 (file)
@@ -1,11 +1,11 @@
 
 IF(WIN32)
-  ADD_EXECUTABLE(TestWxGimmickReaderDialog WIN32 main)  
-  SET_TARGET_PROPERTIES(TestWxGimmickReaderDialog PROPERTIES LINK_FLAGS /subsystem:console )
+  ADD_EXECUTABLE(creaImageIOApp WIN32 main)  
+  SET_TARGET_PROPERTIES(creaImageIOApp PROPERTIES LINK_FLAGS /subsystem:console )
 ELSE(WIN32)
-  ADD_EXECUTABLE(TestWxGimmickReaderDialog MACOSX_BUNDLE main)
+  ADD_EXECUTABLE(creaImageIOApp MACOSX_BUNDLE main)
 ENDIF(WIN32)
 
-TARGET_LINK_LIBRARIES(         TestWxGimmickReaderDialog creaImageIO  )
+TARGET_LINK_LIBRARIES(         creaImageIOApp creaImageIO  )
 
-INSTALL_TARGETS(/bin/ TestWxGimmickReaderDialog )
+INSTALL_TARGETS(/bin/ creaImageIOApp )
index 14c7f48bbab0fe0530e735af57c3f644f5140581..01b7662af74dce28b1996dfe87ff6c288b4b0479 100644 (file)
@@ -1,11 +1,11 @@
 
 IF(WIN32)
-  ADD_EXECUTABLE(TestWxSimpleDlg WIN32 main)  
-  SET_TARGET_PROPERTIES(TestWxSimpleDlg PROPERTIES LINK_FLAGS /subsystem:console )
+  ADD_EXECUTABLE(creaGimmickApp WIN32 main)  
+  SET_TARGET_PROPERTIES(creaGimmickApp PROPERTIES LINK_FLAGS /subsystem:console )
 ELSE(WIN32)
-  ADD_EXECUTABLE(TestWxSimpleDlg MACOSX_BUNDLE main)
+  ADD_EXECUTABLE(creaGimmickApp MACOSX_BUNDLE main)
 ENDIF(WIN32)
 
-TARGET_LINK_LIBRARIES(         TestWxSimpleDlg creaImageIO  )
+TARGET_LINK_LIBRARIES(         creaGimmickApp creaImageIO  )
 
-INSTALL_TARGETS(/bin/ TestWxSimpleDlg )
+INSTALL_TARGETS(/bin/ creaGimmickApp )
index 19f21247240ee570b415d0670c1456b6d150f7c0..fdc5e1ec5817a3c74e268a9311c94bc26480fcbc 100644 (file)
@@ -310,10 +310,10 @@ SET(${LIBRARY_NAME}_ADDITIONAL_USE_FILE
   CREA_ADVANCED_INSTALL_LIBRARY_FOR_CMAKE(${LIBRARY_NAME})
 IF (WIN32)
        SET(INPUT_DATA_DIR ${PROJECT_SOURCE_DIR}/src/data)
-       SET(OUTPUT_DATA_DIR ${PROJECT_BINARY_DIR}/bin/share/gimmick)
+       SET(OUTPUT_DATA_DIR ${PROJECT_BINARY_DIR}/bin/share/creaImageIO)
 ELSE (WIN32)
        SET(INPUT_DATA_DIR ${PROJECT_SOURCE_DIR}/src/data)
-       SET(OUTPUT_DATA_DIR ${PROJECT_BINARY_DIR}/share/gimmick)
+       SET(OUTPUT_DATA_DIR ${PROJECT_BINARY_DIR}/share/creaImageIO)
 ENDIF (WIN32)
 CREA_CPDIR(${INPUT_DATA_DIR} ${OUTPUT_DATA_DIR})
 
index 806cd6b79383e6ac3bfb6b8244aeb91dd728990c..c473a330082381b73fa714e384d9e20769740579 100644 (file)
@@ -62,14 +62,14 @@ namespace creaImageIO
     CreateUserSettingsDirectory();
     // Sets the current directory to the home dir
     mCurrentDirectory =  GetHomeDirectory();
-    mSynchronizer= new Synchronizer(GetUserSettingsDirectory()+"share/gimmick/");
+    mSynchronizer= new Synchronizer(GetUserSettingsDirectory()+"share/creaImageIO/");
 
     mSettings  = new Settings(mCurrentDirectory);
        
     std::string dbpath = GetLocalDatabasePath();
 
     // Create or open local database
-    std::string dpath= mCurrentDirectory + "/.gimmick/share/gimmick/" + mLocalDescpName;
+    std::string dpath= mCurrentDirectory + "/.creaImageIO/share/creaImageIO/" + mLocalDescpName;
        
     boost::algorithm::replace_all( dpath,
                                   INVALID_FILE_SEPARATOR , 
@@ -186,7 +186,7 @@ namespace creaImageIO
     if (mUserSettingsDirectory.size()==0) 
       {
        mUserSettingsDirectory = GetHomeDirectory();
-       mUserSettingsDirectory += "/.gimmick/";
+       mUserSettingsDirectory += "/.creaImageIO/";
        boost::algorithm::replace_all( mUserSettingsDirectory, 
                                       INVALID_FILE_SEPARATOR , 
                                       VALID_FILE_SEPARATOR);
@@ -202,7 +202,7 @@ namespace creaImageIO
     if (mLocalDatabasePath.size()==0) 
       {
        mLocalDatabasePath = GetUserSettingsDirectory();
-       mLocalDatabasePath += "share/gimmick/";
+       mLocalDatabasePath += "share/creaImageIO/";
        mLocalDatabasePath += mLocalDBName;
        mLocalDatabasePath +=".sqlite3";
        boost::algorithm::replace_all( mLocalDatabasePath,
@@ -259,7 +259,7 @@ namespace creaImageIO
                                       VALID_FILE_SEPARATOR);
        setDir+="share/";
        boost::filesystem::create_directory( setDir );
-       setDir+="gimmick/";
+       setDir+="creaImageIO/";
        boost::filesystem::create_directory( setDir );
        setDir+=mLocalDescpName;
 
@@ -277,14 +277,14 @@ namespace creaImageIO
 // The following stuff works on Linux, NOT CHECKED on Windows // JPR
                
 #if defined(_WIN32)            
-               path+="/bin/share/gimmick/";
+               path+="/bin/share/creaImageIO/";
 #endif
 
 #if defined (LINUX)
-               path+="/../share/gimmick/";
+               path+="/../share/creaImageIO/";
 #endif 
 #if defined(__APPLE__)
-               path+="/../../../../share/gimmick/";
+               path+="/../../../../share/creaImageIO/";
 #endif 
 
 
index 080a164c7bb3accc5d81ebcaedc6d032b7c22f49..fd7cdd5d080aa86de375a0db6512f5d626a87aaa 100644 (file)
@@ -16,7 +16,7 @@ namespace creaImageIO
     Settings::Settings(const std::string i_path)
     {
         //need to position path in user directory first.
-        m_SettingsFileName = i_path + "\\.gimmick\\share\\gimmick\\app.config";
+        m_SettingsFileName = i_path + "\\.creaImageIO\\share\\creaImageIO\\app.config";
         //Test if Settings File exist
         if(!boost::filesystem::exists(m_SettingsFileName) )
         {
index db67f8bcc07f7b2ee1afddffb5366f65a0de0f6d..85cf0003940312a7346e703c0a002c452a75a1fa 100644 (file)
@@ -847,11 +847,11 @@ namespace creaImageIO
            if(sel.size()>1&&levelName.at(levelName.size()-1)!='s')
              {
                out<<" "<<levelName;
-               out<<"s to .gimmick?";
+               out<<"s to .creaImageIO?";
              }
            else
              {
-               out<<" "<<GetTreeHandler()->GetTree().GetLevelDescriptor(mLastLevel).GetName()<<" to .gimmick?";
+               out<<" "<<GetTreeHandler()->GetTree().GetLevelDescriptor(mLastLevel).GetName()<<" to .creaImageIO?";
              }
            if (wxMessageBox(crea::std2wx(out.str()),
                             _T("Remove Files"),