Changed C++ standard to C++17 and will implement functionality to retrieve songs, albums, artists, genres, cover art, and year records in json. Will add explicit versioning too

This commit is contained in:
kdeng00
2019-07-30 22:08:55 -04:00
parent 63bee45f95
commit 24a111e8e9
54 changed files with 1334 additions and 1331 deletions
+28 -28
View File
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.2)
cmake_minimum_required(VERSION 3.10)
include("cmake/HunterGate.cmake")
@@ -15,17 +15,17 @@ if(NOT ${CMAKE_VERSION} LESS 3.2)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
else()
message(STATUS "Checking compiler flags for C++11 support.")
# Set C++11 support flags for various compilers
message(STATUS "Checking compiler flags for C++117support.")
# Set C++17 support flags for various compilers
include(CheckCXXCompilerFlag)
check_cxx_compiler_flag("-std=c++11" COMPILER_SUPPORTS_CXX11)
check_cxx_compiler_flag("-std=c++17" COMPILER_SUPPORTS_CXX17)
check_cxx_compiler_flag("-std=c++0x" COMPILER_SUPPORTS_CXX0X)
if(COMPILER_SUPPORTS_CXX11)
message(STATUS "C++11 is supported.")
if(COMPILER_SUPPORTS_CXX17)
message(STATUS "C++17 is supported.")
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=libc++")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -stdlib=libc++")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
endif()
elseif(COMPILER_SUPPORTS_CXX0X)
message(STATUS "C++0x is supported.")
@@ -35,7 +35,7 @@ else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
endif()
else()
message(STATUS "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Please use a different C++ compiler.")
message(STATUS "The compiler ${CMAKE_CXX_COMPILER} has no C++17 support. Please use a different C++ compiler.")
endif()
endif()
@@ -54,24 +54,24 @@ set(SOURCES
src/Utilities/Conversions.cpp
)
set(HEADERS
src/Managers/ActionManager.h
src/Managers/CommitManager.h
src/Managers/FileManager.h
src/Managers/TokenManager.h
src/Managers/UserManager.h
src/Models/API.h
src/Models/Flags.h
src/Models/IcarusAction.h
src/Models/Song.h
src/Models/Token.h
src/Models/UploadForm.h
src/Models/User.h
src/Parsers/APIParser.h
src/Syncers/Delete.h
src/Syncers/Download.h
src/Syncers/SyncerBase.h
src/Syncers/Upload.h
src/Utilities/Conversions.h
include/Managers/ActionManager.h
include/Managers/CommitManager.h
include/Managers/FileManager.h
include/Managers/TokenManager.h
include/Managers/UserManager.h
include/Models/API.h
include/Models/Flags.h
include/Models/IcarusAction.h
include/Models/Song.h
include/Models/Token.h
include/Models/UploadForm.h
include/Models/User.h
include/Parsers/APIParser.h
include/Syncers/Delete.h
include/Syncers/Download.h
include/Syncers/SyncerBase.h
include/Syncers/Upload.h
include/Utilities/Conversions.h
)
@@ -84,4 +84,4 @@ find_package(cpr CONFIG REQUIRED)
add_executable(icd ${SOURCES} ${HEADERS})
target_link_libraries(icd PUBLIC nlohmann_json::nlohmann_json cpr::cpr)
include_directories(src/)
include_directories(include/)