]> Creatis software - crea.git/commitdiff
Going on ...
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Thu, 7 Apr 2011 16:50:49 +0000 (16:50 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Thu, 7 Apr 2011 16:50:49 +0000 (16:50 +0000)
appli/creaNewProject/NewProject/CMakeLists.txt.in
appli/creaNewProject/NewProject/bbtk_mySamplePackage_PKG/src/bbmySamplePackagemySampleBox1.h
appli/creaNewProject/creaNewProject.cpp

index 50c9f5dfe1a1e9e4023277d0760384bc22a5194b..18050998f713e99303df21a5c5ce90f2b0e41eb6 100644 (file)
@@ -139,11 +139,21 @@ SET(BBTK_DOC_BUILD_PATH
      ${PROJECT_BINARY_DIR}/doc
    )
 #==================================
- # USER! : Hands off!
-# ADD_SUBDIRECTORY
+# USER! : Hands off!
+# ADD SUB DIRECTORIES
+# ----------------
 ADD_SUBDIRECTORY(lib)
 ADD_SUBDIRECTORY(appli)
 ADD_SUBDIRECTORY(doc)
 ADD_SUBDIRECTORY(data)
 ADD_SUBDIRECTORY(install)
 #==================================
+
+#-----------------------------------
+# This one is just a sample.
+# USER : you may comment out this line
+ADD_SUBDIRECTORY(bbtk_mySamplePackage_PKG)
+#==================================
+# This one is the default empty package,
+# created with the same name than the Project.
+# USER : you may use it
index a1c2928d9914245bd41fa6c3b489feb2287afb48..9bae5a433ca8a75a2684381299ed04255b5ed4ad 100644 (file)
@@ -4,7 +4,8 @@
 #include "bbmySamplePackage_EXPORT.h"
 #include "bbtkAtomicBlackBox.h"
 #include "iostream"
-
+#include "myFierceClass.h"
 namespace bbmySamplePackage
 {
 
index d12400d4218ffdcad9accd6019fec309a8ba799f..93cfd5c9d70f085434f9b5cefd39221331a6d58a 100644 (file)
@@ -53,6 +53,7 @@ execGUICreateNewPackage = "bbi " + execGUICreateNewPackage;
                system ( command2.c_str() );
                wxMessageBox(_T("New Project created !"),_T("creaNewProject"),
                                wxOK | wxICON_INFORMATION);
+
                 // Create a Package at the same time.   JPR
                
                /// \TODO rewrite, according to new trick
@@ -92,6 +93,12 @@ execGUICreateNewPackage = "bbi " + execGUICreateNewPackage;
                std::string bbCreatePackage("bbCreatePackage ");
                bbCreatePackage += nomDirectory + " " + crea::wx2std(name) + " " + author + " " + crea::wx2std(description);
                system (bbCreatePackage.c_str());
+               
+               std::string add;
+               add = "echo 'ADD_SUBDIRECTORY(bbtk_" + crea::wx2std(name)  + "_PKG)' >> " + nomDirectory + "/CMakeLists.txt";
+               std::cout << add << std::endl;
+               system(add.c_str());
+               
        }
        else
        {