mirror of
https://github.com/QuasarApp/FileServer.git
synced 2025-04-29 13:14:31 +00:00
init commit
This commit is contained in:
parent
9b197a851d
commit
0750c4b24e
1
CMake
Submodule
1
CMake
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit a10b5073fea0b0d6012ac7d6aee3b77a2c6cbf82
|
@ -6,7 +6,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.14)
|
cmake_minimum_required(VERSION 3.14)
|
||||||
project(RENAME_ME)
|
project(FileServer)
|
||||||
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()
|
||||||
|
1
DoxyStyle
Submodule
1
DoxyStyle
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit b3d27bf1bac532d6a2284cbcc9fb5134778c6440
|
@ -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 FileServer to Name of your new project.
|
||||||
|
|
||||||
1. Clone this repository
|
1. Clone this repository
|
||||||
2. Run ./init.sh NewProjectName
|
2. Run ./init.sh NewProjectName
|
||||||
|
@ -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 = FileServer
|
||||||
|
|
||||||
# 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
|
||||||
|
31
init.sh
31
init.sh
@ -1,31 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
echo "Project name: $1"
|
|
||||||
|
|
||||||
if [ $# -ne 1 ]
|
|
||||||
then
|
|
||||||
echo "You call this script wtth wrong arguments."
|
|
||||||
echo "Example for start script:"
|
|
||||||
echo "./init.sh MyCmakeProject"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
REPLACESTRING="s+RENAME_ME+$1+g"
|
|
||||||
echo $REPLACESTRING
|
|
||||||
|
|
||||||
find . -type f -exec sed -i $REPLACESTRING {} +
|
|
||||||
find . -type f -exec sed -i $REPLACESTRING {} +
|
|
||||||
#find . -type f -exec sed -i 's+http://example.com+https://example.com+g' {} +
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
git config -f .gitmodules --get-regexp '^submodule\..*\.path$' |
|
|
||||||
while read path_key path
|
|
||||||
do
|
|
||||||
url_key=$(echo $path_key | sed 's/\.path/.url/')
|
|
||||||
url=$(git config -f .gitmodules --get "$url_key")
|
|
||||||
git submodule add $url $path
|
|
||||||
done
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -18,7 +18,7 @@ set(CMAKE_CXX_STANDARD 17)
|
|||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
|
||||||
|
|
||||||
add_definitions(-DRENAME_ME_LIBRARY)
|
add_definitions(-DFileServer_LIBRARY)
|
||||||
|
|
||||||
|
|
||||||
find_package(Qt5 COMPONENTS Core REQUIRED)
|
find_package(Qt5 COMPONENTS Core REQUIRED)
|
||||||
|
@ -52,7 +52,7 @@ void tstMain::unitTests() {
|
|||||||
char * argv[] = {nullptr};
|
char * argv[] = {nullptr};
|
||||||
|
|
||||||
QCoreApplication app(argc, argv);
|
QCoreApplication app(argc, argv);
|
||||||
QCoreApplication::setApplicationName("testRENAME_ME");
|
QCoreApplication::setApplicationName("testFileServer");
|
||||||
QCoreApplication::setOrganizationName("QuasarApp");
|
QCoreApplication::setOrganizationName("QuasarApp");
|
||||||
|
|
||||||
auto path = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);
|
auto path = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user