diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-04-11 18:25:39 +0300 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-04-11 18:25:39 +0300 |
commit | 40722b7af7286b3cef2478cc13fff5733819168f (patch) | |
tree | eeb534c32e75eda6d472172ae760b91e4a099379 | |
parent | Use only a MatrixClient as a shared pointer (diff) | |
download | nheko-40722b7af7286b3cef2478cc13fff5733819168f.tar.xz |
Remove capitalization
-rw-r--r-- | CMakeLists.txt | 62 | ||||
-rw-r--r-- | include/ChatPage.h | 2 | ||||
-rw-r--r-- | src/ChatPage.cc | 3 |
3 files changed, 31 insertions, 36 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 3f1db3e0..353333d0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,44 +11,44 @@ set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_INCLUDE_CURRENT_DIR ON) -IF(NOT CMAKE_BUILD_TYPE) - SET(CMAKE_BUILD_TYPE "Debug" CACHE STRING +if(NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." FORCE) - MESSAGE("Setting build type to '${CMAKE_BUILD_TYPE}'") -ELSE(NOT CMAKE_BUILD_TYPE) - MESSAGE("Build type set to '${CMAKE_BUILD_TYPE}'") -ENDIF(NOT CMAKE_BUILD_TYPE) - -IF("${CMAKE_BUILD_TYPE}" STREQUAL "Release") - SET(PATCH_OUT "0") -ELSE("${CMAKE_BUILD_TYPE}" STREQUAL "Release") - FIND_PROGRAM(GIT git) - IF(GIT) - EXECUTE_PROCESS( + message("Setting build type to '${CMAKE_BUILD_TYPE}'") +else(NOT CMAKE_BUILD_TYPE) + message("Build type set to '${CMAKE_BUILD_TYPE}'") +endif(NOT CMAKE_BUILD_TYPE) + +if("${CMAKE_BUILD_TYPE}" STREQUAL "Release") + set(PATCH_OUT "0") +else("${CMAKE_BUILD_TYPE}" STREQUAL "Release") + find_program(GIT git) + if(GIT) + execute_process( WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} COMMAND ${GIT} rev-parse --short HEAD OUTPUT_VARIABLE GIT_OUT OUTPUT_STRIP_TRAILING_WHITESPACE ) - SET(PATCH_OUT "0-${GIT_OUT}") - ELSE(GIT) - SET(PATCH_OUT "0") - ENDIF(GIT) -ENDIF("${CMAKE_BUILD_TYPE}" STREQUAL "Release") - -SET(PROJECT_VERSION_PATCH ${PATCH_OUT}) -SET(CPACK_PACKAGE_VERSION_MAJOR "0") -SET(CPACK_PACKAGE_VERSION_MINOR "1") -SET(CPACK_PACKAGE_VERSION_PATCH ${PROJECT_VERSION_PATCH}) -SET(CPACK_PACKAGE_VERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}) -SET(PROJECT_VERSION_MAJOR ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}) -SET(PROJECT_VERSION ${CPACK_PACKAGE_VERSION}) - -MESSAGE(STATUS "Version: ${PROJECT_VERSION}") - -if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU") + set(PATCH_OUT "0-${GIT_OUT}") + else(GIT) + set(PATCH_OUT "0") + endif(GIT) +endif("${CMAKE_BUILD_TYPE}" STREQUAL "Release") + +set(PROJECT_VERSION_PATCH ${PATCH_OUT}) +set(CPACK_PACKAGE_VERSION_MAJOR "0") +set(CPACK_PACKAGE_VERSION_MINOR "1") +set(CPACK_PACKAGE_VERSION_PATCH ${PROJECT_VERSION_PATCH}) +set(CPACK_PACKAGE_VERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}) +set(PROJECT_VERSION_MAJOR ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}) +set(PROJECT_VERSION ${CPACK_PACKAGE_VERSION}) + +message(STATUS "Version: ${PROJECT_VERSION}") + +if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} \ - -std=gnu++11 \ + -std=c++11 \ -Wall \ -Wextra \ -Werror \ diff --git a/include/ChatPage.h b/include/ChatPage.h index e5d6ee7f..d0edac3a 100644 --- a/include/ChatPage.h +++ b/include/ChatPage.h @@ -18,8 +18,6 @@ #ifndef CHATPAGE_H #define CHATPAGE_H -#include <QByteArray> -#include <QNetworkAccessManager> #include <QPixmap> #include <QTimer> #include <QWidget> diff --git a/src/ChatPage.cc b/src/ChatPage.cc index a2188cf1..db755f4f 100644 --- a/src/ChatPage.cc +++ b/src/ChatPage.cc @@ -19,10 +19,7 @@ #include <QDebug> #include <QLabel> -#include <QNetworkReply> -#include <QNetworkRequest> #include <QSettings> -#include <QWidget> #include "ChatPage.h" #include "Sync.h" |