-
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.
🎨 Convert to a header-only library (#6)
- Loading branch information
1 parent
f7fe317
commit c7b0151
Showing
19 changed files
with
1,090 additions
and
1,404 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
AlignConsecutiveAssignments: true | ||
AlignConsecutiveDeclarations: true | ||
AlignTrailingComments: true | ||
AllowShortBlocksOnASingleLine: Empty | ||
AllowShortCaseLabelsOnASingleLine: true | ||
AllowShortIfStatementsOnASingleLine: WithoutElse | ||
BasedOnStyle: Microsoft | ||
BreakBeforeBraces: Allman | ||
ColumnLimit: 130 | ||
Cpp11BracedListStyle: true | ||
FixNamespaceComments: true | ||
IncludeBlocks: Regroup | ||
IndentPPDirectives: BeforeHash | ||
IndentWidth: 4 | ||
Language: Cpp | ||
NamespaceIndentation: All | ||
ReflowComments: true | ||
SortIncludes: true | ||
SortUsingDeclarations: true | ||
SpaceBeforeParens: ControlStatements | ||
SpaceInEmptyParentheses: false | ||
SpacesInParentheses: false | ||
Standard: c++11 | ||
UseTab: Never |
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,21 @@ | ||
name: Build & Test | ||
on: [ push, pull_request ] | ||
jobs: | ||
build: | ||
name: Testing on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ ubuntu-latest, windows-latest, macos-latest ] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Configure | ||
run: cmake -DBUILD_TEST=ON . | ||
|
||
- name: Build | ||
run: cmake --build . | ||
|
||
- name: Test | ||
run: ctest -C Debug . |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,17 @@ | ||
set(Catch2_FOUND TRUE) | ||
|
||
set(CATCH2_VERSION "v2.13.4") | ||
set(CATCH2_INCLUDEDIR "${CMAKE_BINARY_DIR}/catch-${CATCH2_VERSION}") | ||
list(APPEND CMAKE_MODULE_PATH "${CATCH2_INCLUDEDIR}") | ||
|
||
if (NOT EXISTS "${CATCH2_INCLUDEDIR}/catch.hpp") | ||
file(MAKE_DIRECTORY "${CATCH2_INCLUDEDIR}") | ||
message(STATUS "Downloading catch.hpp from https://github.com/catchorg/Catch2/") | ||
file(DOWNLOAD "https://github.com/catchorg/Catch2/releases/download/${CATCH2_VERSION}/catch.hpp" "${CATCH2_INCLUDEDIR}/catch.hpp") | ||
file(DOWNLOAD "https://cdn.statically.io/gh/catchorg/Catch2/${CATCH2_VERSION}/contrib/Catch.cmake" "${CATCH2_INCLUDEDIR}/Catch.cmake") | ||
file(DOWNLOAD "https://cdn.statically.io/gh/catchorg/Catch2/${CATCH2_VERSION}/contrib/CatchAddTests.cmake" "${CATCH2_INCLUDEDIR}/CatchAddTests.cmake") | ||
file(DOWNLOAD "https://cdn.statically.io/gh/catchorg/Catch2/${CATCH2_VERSION}/contrib/ParseAndAddCatchTests.cmake" "${CATCH2_INCLUDEDIR}/ParseAndAddCatchTests.cmake") | ||
endif () | ||
|
||
add_library(Catch2::Catch2 INTERFACE IMPORTED) | ||
set_target_properties(Catch2::Catch2 PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${CATCH2_INCLUDEDIR}") |
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,24 +1,14 @@ | ||
from conans import ConanFile, CMake, tools | ||
import os | ||
from conans import ConanFile | ||
|
||
|
||
class MofilereaderConan(ConanFile): | ||
name = "MofileReader" | ||
version = "1.0.0" | ||
version = "1.1.0" | ||
license = "MIT" | ||
url = "https://github.com/AnotherFoxGuy/conan-MofileReader/" | ||
url = "https://github.com/AnotherFoxGuy/MofileReader/" | ||
description = "This API lets you read .mo-Files and use their content just as you would do with GNUs gettext." | ||
settings = "os", "compiler", "build_type", "arch" | ||
exports_sources = "include*", "src*", "CMakeLists.txt" | ||
|
||
|
||
def build(self): | ||
cmake = CMake(self) | ||
cmake.configure() | ||
cmake.build() | ||
exports_sources = "include*" | ||
|
||
def package(self): | ||
cmake = CMake(self) | ||
cmake.install() | ||
|
||
def package_info(self): | ||
self.cpp_info.libs = tools.collect_libs(self) | ||
self.copy("*.hpp", "include", "include") |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.