${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
#include "bbmySamplePackage_EXPORT.h"
#include "bbtkAtomicBlackBox.h"
#include "iostream"
-
+#include "myFierceClass.h"
+
namespace bbmySamplePackage
{
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
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
{