Commit 45dd5ef9 authored by Volker Krause's avatar Volker Krause
Browse files

Initial commit of the itinerary management application

parents
---
Checks: 'clang-diagnostic-*,-clang-diagnostic-gnu-zero-variadic-macro-arguments,-clang-diagnostic-unknown-warning-option,clang-analyzer-*,bugprone-*,misc-*,modernize-*,performance-*,readability-*,-readability-implicit-bool-conversion,-readability-magic-numbers,-readability-uppercase-literal-suffix,-readability-isolate-declaration,-readability-named-parameter,-modernize-avoid-c-arrays'
FormatStyle: none
CheckOptions:
- key: readability-implicit-bool-conversion.AllowIntegerConditions
value: '1'
- key: readability-implicit-bool-conversion.AllowPointerConditions
value: '1'
- key: misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
value: '1'
...
*.kdev4
*~
*.rej
*.orig
*.out
CMakeLists.txt.user
callgrind.*
heaptrack.*
*.qmlc
*.fail
build
// kate: space-indent on; indent-width 4; remove-trailing-spaces modified;
cmake_minimum_required(VERSION 3.5)
project(KOSMIndoorMap VERSION 0.0.1)
find_package(ECM 5.59 REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
include(ECMAddTests)
include(ECMGenerateHeaders)
include(ECMQtDeclareLoggingCategory)
include(ECMSetupVersion)
include(FeatureSummary)
include(KDEInstallDirs)
include(KDECMakeSettings)
include(GenerateExportHeader)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
ecm_setup_version(PROJECT VARIABLE_PREFIX KOSMINDOORMAP
VERSION_HEADER kosmindoormap_version.h
PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KOSMIndoorMapConfigVersion.cmake"
)
find_package(Qt5 5.11 REQUIRED COMPONENTS Test Quick Widgets)
find_package(KPublicTransport REQUIRED)
find_package(ZLIB REQUIRED)
if (EXISTS "${CMAKE_SOURCE_DIR}/.git")
add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x060000)
add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x060000)
endif()
add_definitions(-DQT_NO_FOREACH)
add_subdirectory(src)
add_subdirectory(autotests)
add_subdirectory(tests)
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/kosmindoormap_version.h DESTINATION ${KDE_INSTALL_INCLUDEDIR} COMPONENT Devel)
This diff is collapsed.
#!/bin/bash
find "$@" -name '*.h' -o -name '*.cpp' -o -name '*.qml' -o -name '*.java'| grep -v /3rdparty/ | while read FILE; do
if grep -qiE "Copyright \(C\) [0-9, -]{4,} " "$FILE" ; then continue; fi
thisfile=`basename $FILE`
authorName=`git config user.name`
authorEmail=`git config user.email`
thisYear=`date +%Y`
cat <<EOF > "$FILE".tmp
/*
Copyright (C) $thisYear $authorName <$authorEmail>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
EOF
cat "$FILE" >> "$FILE".tmp
mv "$FILE".tmp "$FILE"
done
add_definitions(-DSOURCE_DIR="${CMAKE_CURRENT_SOURCE_DIR}")
if (NOT CROSS_COMPILING)
add_subdirectory(tools)
endif()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment