init commit

This commit is contained in:
Andrei Yankovich 2021-03-20 11:33:03 +03:00
parent 489e59f669
commit e77fc72f61
16 changed files with 33 additions and 33 deletions

View File

@ -6,7 +6,7 @@
# #
cmake_minimum_required(VERSION 3.14) cmake_minimum_required(VERSION 3.14)
project(RENAME_ME) project(CQtDeployerServer)
if(TARGET ${PROJECT_NAME}) if(TARGET ${PROJECT_NAME})
message("The ${PROJECT_NAME} arledy included in main Project") message("The ${PROJECT_NAME} arledy included in main Project")
return() return()
@ -31,4 +31,4 @@ endif()
initAll() initAll()
addDoc(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/doxygen.conf) addDoc(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/doxygen.conf)
addDeployFromCustomFile("RENAME_ME" "${CMAKE_CURRENT_SOURCE_DIR}/Deploy/RENAME_ME.json") addDeployFromCustomFile("CQtDeployerServer" "${CMAKE_CURRENT_SOURCE_DIR}/Deploy/CQtDeployerServer.json")

View File

@ -1,5 +1,5 @@
{ {
"binDir": "./../src/build/Debug/RENAME_MEEaxample", "binDir": "./../src/build/Debug/CQtDeployerServerEaxample",
"clear": true, "clear": true,
"libDir": "./../", "libDir": "./../",
"recursiveDepth": "10", "recursiveDepth": "10",

View File

@ -1,6 +1,6 @@
# CMakeProject # CMakeProject
Template repository for cmake project Template repository for cmake project
Fork me and replase RENAME_ME to Name of your new project. Fork me and replase CQtDeployerServer to Name of your new project.
1. Clone this repository 1. Clone this repository
2. Run ./init.sh NewProjectName 2. Run ./init.sh NewProjectName

View File

@ -32,7 +32,7 @@ DOXYFILE_ENCODING = UTF-8
# title of most generated pages and in a few other places. # title of most generated pages and in a few other places.
# The default value is: My Project. # The default value is: My Project.
PROJECT_NAME = RENAME_ME PROJECT_NAME = CQtDeployerServer
# The PROJECT_NUMBER tag can be used to enter a project or revision number. This # The PROJECT_NUMBER tag can be used to enter a project or revision number. This
# could be handy for archiving the generated documentation or if some version # could be handy for archiving the generated documentation or if some version

View File

@ -10,15 +10,15 @@ then
exit 1 exit 1
fi fi
REPLACESTRING="s+RENAME_ME+$1+g" REPLACESTRING="s+CQtDeployerServer+$1+g"
echo $REPLACESTRING echo $REPLACESTRING
find . -not -path '*/\.*' -type f -exec sed -i $REPLACESTRING {} + find . -not -path '*/\.*' -type f -exec sed -i $REPLACESTRING {} +
find . -not -path '*/\.*' -type f -exec sed -i $REPLACESTRING {} + find . -not -path '*/\.*' -type f -exec sed -i $REPLACESTRING {} +
find src -type d -name '*RENAME_ME*' -exec sh -c 'x="{}"; NEWSTR=$(echo "$x" | sed "s/RENAME_ME/'$1'/"); mv "$x" "$NEWSTR"' \; find src -type d -name '*CQtDeployerServer*' -exec sh -c 'x="{}"; NEWSTR=$(echo "$x" | sed "s/CQtDeployerServer/'$1'/"); mv "$x" "$NEWSTR"' \;
find src -type f -name '*RENAME_ME*' -exec sh -c 'x="{}"; NEWSTR=$(echo "$x" | sed "s/RENAME_ME/'$1'/"); mv "$x" "$NEWSTR"' \; find src -type f -name '*CQtDeployerServer*' -exec sh -c 'x="{}"; NEWSTR=$(echo "$x" | sed "s/CQtDeployerServer/'$1'/"); mv "$x" "$NEWSTR"' \;
set -e set -e
git config -f .gitmodules --get-regexp '^submodule\..*\.path$' | git config -f .gitmodules --get-regexp '^submodule\..*\.path$' |

View File

@ -7,7 +7,7 @@
cmake_minimum_required(VERSION 3.14) cmake_minimum_required(VERSION 3.14)
add_definitions(-DRENAME_ME_LIBRARY) add_definitions(-DCQtDeployerServer_LIBRARY)
find_package(QT NAMES Qt6 Qt5 COMPONENTS Core REQUIRED) find_package(QT NAMES Qt6 Qt5 COMPONENTS Core REQUIRED)

View File

@ -5,13 +5,13 @@
//# of this license document, but changing it is not allowed. //# of this license document, but changing it is not allowed.
//# //#
#include "RENAME_ME.h" #include "CQtDeployerServer.h"
namespace RENAME_ME { namespace CQtDeployerServer {
bool init() { bool init() {
initRENAME_MEResources(); initCQtDeployerServerResources();
return true; return true;
} }

View File

@ -5,13 +5,13 @@
//# of this license document, but changing it is not allowed. //# of this license document, but changing it is not allowed.
//# //#
#include "RENAME_ME_global.h" #include "CQtDeployerServer_global.h"
namespace RENAME_ME { namespace CQtDeployerServer {
inline void initRENAME_MEResources() { Q_INIT_RESOURCE(RENAME_ME); } inline void initCQtDeployerServerResources() { Q_INIT_RESOURCE(CQtDeployerServer); }
bool RENAME_ME_EXPORT init(); bool CQtDeployerServer_EXPORT init();
}; };

View File

@ -0,0 +1,6 @@
<RCC>
<qresource prefix="/">
<file>CQtDeployerServerModule/qmldir</file>
<file>CQtDeployerServerModule/CQtDeployerServer.qml</file>
</qresource>
</RCC>

View File

@ -0,0 +1,3 @@
module QuasarAppCreditsModule
CQtDeployerServer 1.0 CQtDeployerServer.qml

View File

@ -5,16 +5,16 @@
//# of this license document, but changing it is not allowed. //# of this license document, but changing it is not allowed.
//# //#
#ifndef RENAME_ME_GLOBAL_H #ifndef CQtDeployerServer_GLOBAL_H
#define RENAME_ME_GLOBAL_H #define CQtDeployerServer_GLOBAL_H
#include <QtCore/qglobal.h> #include <QtCore/qglobal.h>
#if defined(RENAME_ME_LIBRARY) #if defined(CQtDeployerServer_LIBRARY)
# define RENAME_ME_EXPORT Q_DECL_EXPORT # define CQtDeployerServer_EXPORT Q_DECL_EXPORT
#else #else
# define RENAME_ME_EXPORT Q_DECL_IMPORT # define CQtDeployerServer_EXPORT Q_DECL_IMPORT
#endif #endif
#endif //RENAME_ME_GLOBAL_H #endif //CQtDeployerServer_GLOBAL_H

View File

@ -1,6 +0,0 @@
<RCC>
<qresource prefix="/">
<file>RENAME_MEModule/qmldir</file>
<file>RENAME_MEModule/RENAME_ME.qml</file>
</qresource>
</RCC>

View File

@ -1,3 +0,0 @@
module QuasarAppCreditsModule
RENAME_ME 1.0 RENAME_ME.qml

View File

@ -29,7 +29,7 @@ set(PUBLIC_INCUDE_DIR ${PUBLIC_INCUDE_DIR} "${CMAKE_CURRENT_SOURCE_DIR}/units")
add_executable(${CURRENT_PROJECT} ${SOURCE_CPP}) add_executable(${CURRENT_PROJECT} ${SOURCE_CPP})
target_link_libraries(${CURRENT_PROJECT} PRIVATE Qt::Test RENAME_ME) target_link_libraries(${CURRENT_PROJECT} PRIVATE Qt::Test CQtDeployerServer)
target_include_directories(${CURRENT_PROJECT} PUBLIC ${PUBLIC_INCUDE_DIR}) target_include_directories(${CURRENT_PROJECT} PUBLIC ${PUBLIC_INCUDE_DIR})

View File

@ -59,7 +59,7 @@ void tstMain::unitTests() {
char * argv[] = {nullptr}; char * argv[] = {nullptr};
QCoreApplication app(argc, argv); QCoreApplication app(argc, argv);
QCoreApplication::setApplicationName("testRENAME_ME"); QCoreApplication::setApplicationName("testCQtDeployerServer");
QCoreApplication::setOrganizationName("QuasarApp"); QCoreApplication::setOrganizationName("QuasarApp");
auto path = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation); auto path = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);