diff --git a/CMake b/CMake new file mode 160000 index 0000000..a10b507 --- /dev/null +++ b/CMake @@ -0,0 +1 @@ +Subproject commit a10b5073fea0b0d6012ac7d6aee3b77a2c6cbf82 diff --git a/CMakeLists.txt b/CMakeLists.txt index 9320654..cb7e174 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,7 @@ # cmake_minimum_required(VERSION 3.14) -project(RENAME_ME) +project(FileServer) if(TARGET ${PROJECT_NAME}) message("The ${PROJECT_NAME} arledy included in main Project") return() diff --git a/DoxyStyle b/DoxyStyle new file mode 160000 index 0000000..b3d27bf --- /dev/null +++ b/DoxyStyle @@ -0,0 +1 @@ +Subproject commit b3d27bf1bac532d6a2284cbcc9fb5134778c6440 diff --git a/README.md b/README.md index 0a44cbb..55fa6d1 100644 --- a/README.md +++ b/README.md @@ -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 FileServer to Name of your new project. 1. Clone this repository 2. Run ./init.sh NewProjectName diff --git a/doxygen.conf b/doxygen.conf index 4354d0f..2846184 100644 --- a/doxygen.conf +++ b/doxygen.conf @@ -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 = FileServer # 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 diff --git a/init.sh b/init.sh deleted file mode 100755 index a5ba5d1..0000000 --- a/init.sh +++ /dev/null @@ -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 - - - diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 71f9e8b..a21ea65 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -18,7 +18,7 @@ set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) -add_definitions(-DRENAME_ME_LIBRARY) +add_definitions(-DFileServer_LIBRARY) find_package(Qt5 COMPONENTS Core REQUIRED) diff --git a/tests/tstMain.cpp b/tests/tstMain.cpp index 9ac09a7..cf6d0c3 100644 --- a/tests/tstMain.cpp +++ b/tests/tstMain.cpp @@ -52,7 +52,7 @@ void tstMain::unitTests() { char * argv[] = {nullptr}; QCoreApplication app(argc, argv); - QCoreApplication::setApplicationName("testRENAME_ME"); + QCoreApplication::setApplicationName("testFileServer"); QCoreApplication::setOrganizationName("QuasarApp"); auto path = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);