mirror of
https://github.com/QuasarApp/CQtDeployerServer.git
synced 2025-05-05 16:49:34 +00:00
init commit
This commit is contained in:
parent
489e59f669
commit
e77fc72f61
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(RENAME_ME)
|
||||
project(CQtDeployerServer)
|
||||
if(TARGET ${PROJECT_NAME})
|
||||
message("The ${PROJECT_NAME} arledy included in main Project")
|
||||
return()
|
||||
@ -31,4 +31,4 @@ endif()
|
||||
initAll()
|
||||
|
||||
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")
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"binDir": "./../src/build/Debug/RENAME_MEEaxample",
|
||||
"binDir": "./../src/build/Debug/CQtDeployerServerEaxample",
|
||||
"clear": true,
|
||||
"libDir": "./../",
|
||||
"recursiveDepth": "10",
|
||||
|
@ -1,6 +1,6 @@
|
||||
# CMakeProject
|
||||
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
|
||||
2. Run ./init.sh NewProjectName
|
||||
|
@ -32,7 +32,7 @@ DOXYFILE_ENCODING = UTF-8
|
||||
# title of most generated pages and in a few other places.
|
||||
# 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
|
||||
# could be handy for archiving the generated documentation or if some version
|
||||
|
6
init.sh
6
init.sh
@ -10,15 +10,15 @@ then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
REPLACESTRING="s+RENAME_ME+$1+g"
|
||||
REPLACESTRING="s+CQtDeployerServer+$1+g"
|
||||
echo $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
|
||||
|
||||
git config -f .gitmodules --get-regexp '^submodule\..*\.path$' |
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
|
||||
add_definitions(-DRENAME_ME_LIBRARY)
|
||||
add_definitions(-DCQtDeployerServer_LIBRARY)
|
||||
|
||||
|
||||
find_package(QT NAMES Qt6 Qt5 COMPONENTS Core REQUIRED)
|
||||
|
@ -5,13 +5,13 @@
|
||||
//# of this license document, but changing it is not allowed.
|
||||
//#
|
||||
|
||||
#include "RENAME_ME.h"
|
||||
#include "CQtDeployerServer.h"
|
||||
|
||||
|
||||
namespace RENAME_ME {
|
||||
namespace CQtDeployerServer {
|
||||
|
||||
bool init() {
|
||||
initRENAME_MEResources();
|
||||
initCQtDeployerServerResources();
|
||||
return true;
|
||||
}
|
||||
|
@ -5,13 +5,13 @@
|
||||
//# 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();
|
||||
|
||||
};
|
6
src/Library/src/CQtDeployerServer.qrc
Normal file
6
src/Library/src/CQtDeployerServer.qrc
Normal file
@ -0,0 +1,6 @@
|
||||
<RCC>
|
||||
<qresource prefix="/">
|
||||
<file>CQtDeployerServerModule/qmldir</file>
|
||||
<file>CQtDeployerServerModule/CQtDeployerServer.qml</file>
|
||||
</qresource>
|
||||
</RCC>
|
3
src/Library/src/CQtDeployerServerModule/qmldir
Normal file
3
src/Library/src/CQtDeployerServerModule/qmldir
Normal file
@ -0,0 +1,3 @@
|
||||
module QuasarAppCreditsModule
|
||||
CQtDeployerServer 1.0 CQtDeployerServer.qml
|
||||
|
@ -5,16 +5,16 @@
|
||||
//# of this license document, but changing it is not allowed.
|
||||
//#
|
||||
|
||||
#ifndef RENAME_ME_GLOBAL_H
|
||||
#define RENAME_ME_GLOBAL_H
|
||||
#ifndef CQtDeployerServer_GLOBAL_H
|
||||
#define CQtDeployerServer_GLOBAL_H
|
||||
|
||||
#include <QtCore/qglobal.h>
|
||||
|
||||
#if defined(RENAME_ME_LIBRARY)
|
||||
# define RENAME_ME_EXPORT Q_DECL_EXPORT
|
||||
#if defined(CQtDeployerServer_LIBRARY)
|
||||
# define CQtDeployerServer_EXPORT Q_DECL_EXPORT
|
||||
#else
|
||||
# define RENAME_ME_EXPORT Q_DECL_IMPORT
|
||||
# define CQtDeployerServer_EXPORT Q_DECL_IMPORT
|
||||
#endif
|
||||
|
||||
#endif //RENAME_ME_GLOBAL_H
|
||||
#endif //CQtDeployerServer_GLOBAL_H
|
||||
|
@ -1,6 +0,0 @@
|
||||
<RCC>
|
||||
<qresource prefix="/">
|
||||
<file>RENAME_MEModule/qmldir</file>
|
||||
<file>RENAME_MEModule/RENAME_ME.qml</file>
|
||||
</qresource>
|
||||
</RCC>
|
@ -1,3 +0,0 @@
|
||||
module QuasarAppCreditsModule
|
||||
RENAME_ME 1.0 RENAME_ME.qml
|
||||
|
@ -29,7 +29,7 @@ set(PUBLIC_INCUDE_DIR ${PUBLIC_INCUDE_DIR} "${CMAKE_CURRENT_SOURCE_DIR}/units")
|
||||
|
||||
|
||||
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})
|
||||
|
||||
|
@ -59,7 +59,7 @@ void tstMain::unitTests() {
|
||||
char * argv[] = {nullptr};
|
||||
|
||||
QCoreApplication app(argc, argv);
|
||||
QCoreApplication::setApplicationName("testRENAME_ME");
|
||||
QCoreApplication::setApplicationName("testCQtDeployerServer");
|
||||
QCoreApplication::setOrganizationName("QuasarApp");
|
||||
|
||||
auto path = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);
|
||||
|
Loading…
x
Reference in New Issue
Block a user