-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Adding Cmake presets - Enable testing - Documentation - Project structure aligned
- Loading branch information
1 parent
4c341a2
commit faf451d
Showing
20 changed files
with
250 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
build/ | ||
distribution/ | ||
profile.json | ||
*-profile.json | ||
*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,161 @@ | ||
{ | ||
"version": 6, | ||
"configurePresets": [ | ||
{ | ||
"name": "debug", | ||
"displayName": "Debug", | ||
"generator": "Ninja", | ||
"binaryDir": "build/debug", | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": "Debug" | ||
} | ||
}, | ||
{ | ||
"name": "release", | ||
"displayName": "Release", | ||
"generator": "Ninja", | ||
"binaryDir": "build/release", | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": "Release" | ||
} | ||
}, | ||
{ | ||
"name": "xcode-debug", | ||
"displayName": "Debug (Xcode)", | ||
"generator": "Xcode", | ||
"binaryDir": "build/xcode-debug", | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": "Debug" | ||
}, | ||
"condition": { | ||
"type": "equals", | ||
"lhs": "${hostSystemName}", | ||
"rhs": "Darwin" | ||
} | ||
}, | ||
{ | ||
"name": "xcode-release", | ||
"displayName": "Release (Xcode)", | ||
"generator": "Xcode", | ||
"binaryDir": "build/xcode-release", | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": "Release" | ||
}, | ||
"condition": { | ||
"type": "equals", | ||
"lhs": "${hostSystemName}", | ||
"rhs": "Darwin" | ||
} | ||
} | ||
], | ||
"buildPresets": [ | ||
{ | ||
"name": "debug", | ||
"displayName": "Build Debug", | ||
"configurePreset": "debug", | ||
"configuration": "Debug" | ||
}, | ||
{ | ||
"name": "release", | ||
"displayName": "Build Release", | ||
"configurePreset": "release", | ||
"configuration": "Release", | ||
"targets": [ | ||
"App" | ||
] | ||
}, | ||
{ | ||
"name": "xcode-debug", | ||
"displayName": "Build Debug (Xcode)", | ||
"configurePreset": "xcode-debug", | ||
"configuration": "Debug", | ||
"condition": { | ||
"type": "equals", | ||
"lhs": "${hostSystemName}", | ||
"rhs": "Darwin" | ||
} | ||
}, | ||
{ | ||
"name": "xcode-release", | ||
"displayName": "Build Release (Xcode)", | ||
"configurePreset": "xcode-release", | ||
"configuration": "Release", | ||
"targets": [ | ||
"App" | ||
], | ||
"condition": { | ||
"type": "equals", | ||
"lhs": "${hostSystemName}", | ||
"rhs": "Darwin" | ||
} | ||
} | ||
], | ||
"packagePresets": [ | ||
{ | ||
"name": "release", | ||
"displayName": "Distribute Release", | ||
"configurePreset": "release", | ||
"configurations": [ | ||
"Release" | ||
] | ||
}, | ||
{ | ||
"name": "xcode-release", | ||
"displayName": "Distribute Release (Xcode)", | ||
"configurePreset": "xcode-release", | ||
"configurations": [ | ||
"Release" | ||
], | ||
"condition": { | ||
"type": "equals", | ||
"lhs": "${hostSystemName}", | ||
"rhs": "Darwin" | ||
} | ||
} | ||
], | ||
"testPresets": [ | ||
{ | ||
"name": "all", | ||
"displayName": "Test All", | ||
"configurePreset": "debug" | ||
} | ||
], | ||
"workflowPresets": [ | ||
{ | ||
"name": "dist", | ||
"displayName": "Distribution Workflow", | ||
"steps": [ | ||
{ | ||
"type": "configure", | ||
"name": "release" | ||
}, | ||
{ | ||
"type": "build", | ||
"name": "release" | ||
}, | ||
{ | ||
"type": "package", | ||
"name": "release" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "xcode-dist", | ||
"displayName": "Distribution Workflow (Xcode)", | ||
"steps": [ | ||
{ | ||
"type": "configure", | ||
"name": "xcode-release" | ||
}, | ||
{ | ||
"type": "build", | ||
"name": "xcode-release" | ||
}, | ||
{ | ||
"type": "package", | ||
"name": "xcode-release" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Base package settings | ||
set(CPACK_PACKAGE_VENDOR ${PROJECT_COMPANY_NAME}) | ||
set(CPACK_PACKAGE_DIRECTORY distribution) | ||
set(CPACK_PACKAGE_INSTALL_DIRECTORY ${CPACK_PACKAGE_NAME}) | ||
set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${CMAKE_PROJECT_VERSION}") | ||
set(CPACK_PACKAGE_VERSION_MAJOR ${CMAKE_PROJECT_VERSION_MAJOR}) | ||
set(CPACK_PACKAGE_VERSION_MINOR ${CMAKE_PROJECT_VERSION_MINOR}) | ||
set(CPACK_PACKAGE_VERSION_PATCH ${CMAKE_PROJECT_VERSION_PATCH}) | ||
set(CPACK_VERBATIM_VARIABLES YES) | ||
|
||
set(CPACK_GENERATOR TGZ) | ||
|
||
include(CPack) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
add_subdirectory(tests) | ||
add_subdirectory(app) | ||
add_subdirectory(some_library) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
/* | ||
* Copyright (c) 2022 Martin Helmut Fieber <[email protected]> | ||
*/ | ||
#include <exception> | ||
|
||
#include "SomeLibrary/Core/Log.hpp" | ||
#include "SomeLibrary/Debug/Instrumentor.hpp" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
/* | ||
* Copyright (c) 2022 Martin Helmut Fieber <[email protected]> | ||
*/ | ||
|
||
#include "Log.hpp" | ||
|
||
#include <vector> | ||
#include <spdlog/common.h> | ||
#include <spdlog/logger.h> | ||
#include <spdlog/sinks/basic_file_sink.h> | ||
#include <spdlog/sinks/stdout_color_sinks.h> | ||
#include <spdlog/spdlog.h> | ||
|
||
#include "spdlog/sinks/basic_file_sink.h" | ||
#include "spdlog/sinks/stdout_color_sinks.h" | ||
#include <memory> | ||
#include <vector> | ||
|
||
namespace App { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
/* | ||
* Copyright (c) 2022 Martin Helmut Fieber <[email protected]> | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <memory> | ||
#include <spdlog/fmt/ostr.h> | ||
#include <spdlog/spdlog.h> | ||
|
||
#include "spdlog/fmt/ostr.h" | ||
#include "spdlog/spdlog.h" | ||
#include <memory> | ||
|
||
namespace App { | ||
|
||
|
Oops, something went wrong.