${${BBTK_PACKAGE_NAME}_BINARY_DIR}/PlugPackage.bat
COPYONLY
)
- INSTALL ( FILES ${${BBTK_PACKAGE_NAME}_BINARY_DIR}/bbtkPackage DESTINATION "." )
+ INSTALL ( FILES ${${BBTK_PACKAGE_NAME}_BINARY_DIR}/bbtkPackage DESTINATION "." )
INSTALL ( FILES ${${BBTK_PACKAGE_NAME}_BINARY_DIR}/PlugPackage.bat DESTINATION "." )
+ ELSE(WIN32)
+ CONFIGURE_FILE(
+ ${BBTK_CMAKE_DIR}/PlugPackage.sh.in
+ ${${BBTK_PACKAGE_NAME}_BINARY_DIR}/PlugPackage.sh
+ COPYONLY
+ )
+ INSTALL ( FILES ${${BBTK_PACKAGE_NAME}_BINARY_DIR}/bbtkPackage DESTINATION "share/bbtk" )
+ INSTALL ( FILES ${${BBTK_PACKAGE_NAME}_BINARY_DIR}/PlugPackage.sh DESTINATION "share/bbtk" )
ENDIF (WIN32)
+
#---------------------------------------------------------------------------
ELSE(NOT BBTK_CORE_PACKAGE)
SET(${BBTK_PACKAGE_NAME}_BINARY_DIR ${PROJECT_BINARY_DIR})
}
delete res;
+ std::string bbs_path;
#ifdef _WIN32
- std::string bbs_path = path + "/bbs";
+ bbs_path = path + "/bbs";
+ XMLNode BBSPATH = BB.addChild((XMLCSTR)"bbs_path");
+ BBSPATH.addText((XMLCSTR)bbs_path.c_str());
+ Utilities::replace(bbs_path, INVALID_FILE_SEPARATOR, VALID_FILE_SEPARATOR);
+ mBbs_paths.push_back(bbs_path);
#else
- std::string bbs_path = path + "/share/bbtk/bbs" ;
-#endif
+ bbs_path = path + "/share/bbtk/bbs" ;
XMLNode BBSPATH = BB.addChild((XMLCSTR)"bbs_path");
BBSPATH.addText((XMLCSTR)bbs_path.c_str());
Utilities::replace(bbs_path, INVALID_FILE_SEPARATOR, VALID_FILE_SEPARATOR);
mBbs_paths.push_back(bbs_path);
-#ifdef _WIN32
- std::string pack_path = path + "/bin";
-#else
- std::string pack_path = path ;
+ bbs_path = path + "/../../share/bbtk/bbs" ;
+ BBSPATH = BB.addChild((XMLCSTR)"bbs_path");
+ BBSPATH.addText((XMLCSTR)bbs_path.c_str());
+ Utilities::replace(bbs_path, INVALID_FILE_SEPARATOR, VALID_FILE_SEPARATOR);
+ mBbs_paths.push_back(bbs_path);
+
#endif
+
+ std::string pack_path;
+#ifdef _WIN32
+ pack_path = path + "/bin";
XMLNode PACKPATH = BB.addChild((XMLCSTR)"package_path");
PACKPATH.addText((XMLCSTR)pack_path.c_str());
Utilities::replace(pack_path,INVALID_FILE_SEPARATOR,VALID_FILE_SEPARATOR);
mPackage_paths.push_back(pack_path);
-#ifdef _WIN32
pack_path = path + "/RelWithDebInfo";
PACKPATH = BB.addChild((XMLCSTR)"package_path");
PACKPATH.addText((XMLCSTR)pack_path.c_str());
Utilities::replace(pack_path,INVALID_FILE_SEPARATOR,VALID_FILE_SEPARATOR);
mPackage_paths.push_back(pack_path);
+
pack_path = path + "/Debug";
PACKPATH = BB.addChild((XMLCSTR)"package_path");
PACKPATH.addText((XMLCSTR)pack_path.c_str());
Utilities::replace(pack_path,INVALID_FILE_SEPARATOR,VALID_FILE_SEPARATOR);
mPackage_paths.push_back(pack_path);
+
pack_path = path + "/Release";
PACKPATH = BB.addChild((XMLCSTR)"package_path");
PACKPATH.addText((XMLCSTR)pack_path.c_str());
Utilities::replace(pack_path,INVALID_FILE_SEPARATOR,VALID_FILE_SEPARATOR);
mPackage_paths.push_back(pack_path);
+#else
+ pack_path = path ;
+ XMLNode PACKPATH = BB.addChild((XMLCSTR)"package_path");
+ PACKPATH.addText((XMLCSTR)pack_path.c_str());
+ Utilities::replace(pack_path,INVALID_FILE_SEPARATOR,VALID_FILE_SEPARATOR);
+ mPackage_paths.push_back(pack_path);
+
+ pack_path = path+"/../../lib64/creatools" ;
+ PACKPATH = BB.addChild((XMLCSTR)"package_path");
+ PACKPATH.addText((XMLCSTR)pack_path.c_str());
+ Utilities::replace(pack_path,INVALID_FILE_SEPARATOR,VALID_FILE_SEPARATOR);
+ mPackage_paths.push_back(pack_path);
+
+#endif
+
+
+#ifdef _WIN32
#endif